[symfony-users] Re: sfOutputEscaper behaviour

2010-04-06 Thread Apul Gupta
I haven't use that but I know that it will work. But, Can't we get un- escaped data without doing any YML changes as It is mentioned in Documentation that, We will get raw data by using $sf_data- >getRaw('sf_content'); Why this is not working expectedly? I am using Symfony 1.4.2 version. Any idea

Re: [symfony-users] Re: Fatal error: Cannot instantiate abstract class BaseNewsGeneratorConfiguration

2010-04-06 Thread Robert Heim
What I did: I developed under windows+XAMPP, everything works fine.. uploaded the files to the server and all backend-modules work fine except the news-module. When I try to access http://v2.purveyor.de/backend_dev.php/news there is not shown a login-screen, but the error about that abstract-c

Re: [symfony-users] Re: Fatal error: Cannot instantiate abstract class BaseNewsGeneratorConfiguration

2010-04-06 Thread Robert Heim
Ok I found it.. I don't know what was going on, when I uploaded the folder, but the /apps/backend/modules/news/lib folder was not uploaded?!! That's strange, but uploading that dir fixed the problem of course... thanks! Am 06.04.2010 09:20, schrieb Robert Heim: What I did: I developed under

[symfony-users] Re: Fatal error: Call to undefined function remote_function()

2010-04-06 Thread Belgacem TLILI
i have include if i use i will get an error (i thinks for sf 1.4 we must use JavascriptBase On 6 avr, 00:24, Robert Heim wrote: > Oh I'm sorry.. I did not know that remote_function(..) is a built-in > support for ajax in symfony.. I thought it was meant as a JS function.. > > So you might want

RE: [symfony-users] access object from validator

2010-04-06 Thread NOOVEO - Christophe Brun
Hi. I'm #far# from mastering Symfony but here are my two cents. I would say that validators are not intented to know anything else than the bunch of values to clean and validate, hence I don't see any way for them to know the form's object. But the form has access to all the values you need : ta

Re: [symfony-users] Re: Fatal error: Call to undefined function remote_function()

2010-04-06 Thread DEEPAK BHATIA
Hi, I think remote_function are obsoleted in the Symfony 1.4. I think this can be achieved using JQuery. Regards Deepak On Tue, Apr 6, 2010 at 3:14 PM, Belgacem TLILI wrote: > i have include > > > if i use i will get an error > (i thinks for sf 1.4 we must use JavascriptBase > > On 6 avr, 00

Re: [symfony-users] Re: Fatal error: Call to undefined function remote_function()

2010-04-06 Thread Robert Heim
yeah I was confused, because there are some blog and forum-posts on the internet, that use 1.4 and remote_function.. To solve the problem, you might use this jQuery plugin? http://www.symfony-project.org/plugins/sfJqueryReloadedPlugin Am 06.04.2010 12:20, schrieb DEEPAK BHATIA: Hi, I think r

[symfony-users] Re: a question about lucene in symfony

2010-04-06 Thread Lee Joseph
Oh, I use pdo too, thank you too! On 4月6日, 下午2时05分, Gábor Fási wrote: > I created a task that fetches all the data in the table (via pdo > instead of propel, so it uses a lot less memory), and add them to the > index one by one. Probably not the prettiest one out there, but here's > my > task:h

[symfony-users] Re: REST webservices

2010-04-06 Thread James Cauwelier
You can manipulate headers and so on all by yourself in Symfony. There is no component in Symfony that delivers API functionality by default, not for REST and not for SOAP. There is a plugin for it: http://www.symfony-project.org/plugins/sfRestAdminPlugin I wouldn 't recommend the plugin, because

Re: [symfony-users] Re: no web debug toolbar in symfony 1.2.12

2010-04-06 Thread Peter Peltonen
Hi, On Fri, Mar 26, 2010 at 6:25 PM, Tom Ptacnik wrote: > Which frontend controller are you using for browsing? index.php, > frontend_dev.php? .. look into it if there is the toolbar switched on. Thanks for this tip! This was indeed my problem: frontend_dev.php contained a whitelist where I need

[symfony-users] sf_method requirement being ignored...

2010-04-06 Thread Jonathan Franks
I'm trying to make my code enforce a PUT request on a certain url... basket_add: url:/basket/add/:class/:id param: { module: jbShoppingBasket, action: add } class: sfRequestRoute requirements: sf_method:[put] ./symfony

[symfony-users] Re: How would you reverse the "notnull:true" in a schema of a plugin?

2010-04-06 Thread Javier Garcia
Other opinions? Javi On Apr 3, 2:26 pm, Tom Haskins-Vaughan wrote: > Hi Javi, > > While some good points are made in that post, I'm not too concered, > and I will continue to store emails in the username field. > > "If you store email in username field, you have to be really careful > when using

[symfony-users] One Product to Many Categories

2010-04-06 Thread Bill P.
I would like to be able to assign an item to multiple categories. I've been reading about how to assign many to many i think, but the association doesnt seem right. I should end up with a third table that records the item ID as well as the category ID that it is assigned to. Am I missing somethi

Re: [symfony-users] One Product to Many Categories

2010-04-06 Thread Robert Heim
Yep, here you go: http://www.doctrine-project.org/documentation/manual/1_0/ru/defining-models:relationships:foreign-key-associations:one-to-many-and-many-to-one Greets Robert Am 06.04.2010 20:45, schrieb Bill P.: I would like to be able to assign an item to multiple categories. I've been readi

[symfony-users] Initial Setup

2010-04-06 Thread Azda
Hi all, Right - to put it bluntly - I have no idea what I'm doing with Symfony! The situation is that I have been asked to move a site from one hosting company to another. So now, I have uploaded the site to the new server and now I'm assuming I need to edit the settings, but I have no idea where

[symfony-users] Symfony 1.4 Switching among multiple databases

2010-04-06 Thread MP
Hello all, I am developing an application with Symfony 1.4.0 . For this application I need a common database for all clients and then another database for each client. The common database is for the application configuration that is common for all clients, but then each clients have his own custom

[symfony-users] Symfony performance handling batch import objects

2010-04-06 Thread Roland Cremer
Hi, I've made a model for a bookstore and i have to import new books. I've generated a symfony task to import a csv file and loop thru the records and genarate the book object and related objects. The problem is that the script is not performing. Inserting 4000 books takes more than 30 minutes. I

Re: [symfony-users] Symfony performance handling batch import objects

2010-04-06 Thread Thomas Rabaix
Don't hydrate objects in batch script, just use the insert method from the doctrine's connection object ... On Tue, Apr 6, 2010 at 9:10 PM, Roland Cremer wrote: > Hi, > > I've made a model for a bookstore and i have to import new books. I've > generated a symfony task to import a csv file and loo

[symfony-users] TinyMCE works in IE but not other browsers

2010-04-06 Thread nurikabe
Weird. This has got to be the frist time I've ever had something work for me in IE but not anywhere else. I'm using Symfony 1.0.x and the lastest version of TinyMCE (3.3.2). Anyone have an idea of why TinyMCE pops up in IE but nowhere else? -- If you want to report a vulnerability issue on symf

Re: [symfony-users] TinyMCE works in IE but not other browsers

2010-04-06 Thread Michał Piotrowski
Hi, 2010/4/7 nurikabe : > Weird.  This has got to be the frist time I've ever had something work > for me in IE but not anywhere else. Weird, indeed. In my case it works fine on FF, Opera, Chrome, but not IE. > > I'm using Symfony 1.0.x and the lastest version of TinyMCE (3.3.2). > Anyone have

[symfony-users] Re: TinyMCE works in IE but not other browsers

2010-04-06 Thread nurikabe
Tried it. Now it only works in Lynx. Ha ha. No, now it say tinyMCE is not defined. Hmmm. Going to trace through the other version. On Apr 6, 8:18 pm, Michał Piotrowski wrote: > Hi, > > 2010/4/7 nurikabe : > > > Weird.  This has got to be the frist time I've ever had something work > > for me

Re: [symfony-users] Re: TinyMCE works in IE but not other browsers

2010-04-06 Thread Michał Piotrowski
2010/4/7 nurikabe : > Tried it.  Now it only works in Lynx. :) > > Ha ha.  No, now it say tinyMCE is not defined.  Hmmm.  Going to trace > through the other version. If you have a git repo you can save some time on downloading different versions http://www.kernel.org/pub/software/scm/git/docs/gi

[symfony-users] Re: sfOutputEscaper behaviour

2010-04-06 Thread rekarnar
Try $sf_data->get('variable_name',ESC_RAW); On Apr 6, 7:18 pm, Apul Gupta wrote: > I haven't use that but I know that it will work. But, Can't we get un- > escaped data without doing any YML changes as It is mentioned in > Documentation that, We will get raw data by using $sf_data- > > >getRaw('s

[symfony-users] Re: TinyMCE works in IE but not other browsers

2010-04-06 Thread nurikabe
Turns out that older symfony/helper/sfRichTextEditorTinyMCE.class.php tries to load a flash module: tinyMCE.init({ mode: "exact", language: "'.strtolower(substr($culture, 0, 2)).'", elements: "'.$id.'", plugins: "table,advimage,advlink,flash", ... which I guess has now been replaced wit

[symfony-users] Re: Unable to use namespaces with symfony

2010-04-06 Thread godbout
If I'm not talking crazy, namespaces are available in symfony 2 using php 5.3. I wouldn't expect them to work in 1.4 yet. On Apr 3, 11:25 pm, Amadeus wrote: > Hi > > I am trying to use classes with namespaces such as Doctrine 2 or my > own stuff but not matter what I use symfony gives me a Fatal

[symfony-users] Difference in Components & component slots

2010-04-06 Thread Apul Gupta
Hi, I am not clear with the difference of Components & component slots. Can anyone suggest some examples so that it make sense to me where to use Components & Component Slots. Please use code based examples because I read that from Docs but, I am not very clear. So, Please discuss on this to he

Re: [symfony-users] Re: Remove embedded forms / update object runtime

2010-04-06 Thread Pedro Casado
Patter, can you show me your removeEmbedded ? Thanks Att, Pedro Casado On Thu, Mar 5, 2009 at 7:49 PM, isleshocky77 wrote: > > Patter, > So I just updated my plugin which is using a lot of this. I think > what I ended up doing is actually pretty clean. I took some cues from > what you said

[symfony-users] Re: sfOutputEscaper behaviour

2010-04-06 Thread Apul Gupta
No rekarnar, still it doesn't Work. Any other suggestion? I am getting this in browsers: == http://www.abcd.com";>Welcome Text == and in HTML: ==

[symfony-users] Search feature with multiple models/tables

Hi, Please suggest me, "How can I implement the search functionality for multiple models/tables". I found the solution using Zend Search Lucent but it doesn't work in case of multiple table search using one search form. I have one search form & want to search the keyword in 2 or more tables. How