[symfony-users] Re: link_to_remote

2009-07-24 Thread DEEPAK BHATIA
Hi, I have removed the body tag from test2Success.php. Even then it is not running. Regards Deepak On Fri, Jul 24, 2009 at 12:04 PM, DEEPAK BHATIA wrote: > Hi, > > Thanks for the info. But the code below in test2Success.php is YUI > Javascript code which is not running. Please help me in this

[symfony-users] Re: link_to_remote

2009-07-24 Thread DEEPAK BHATIA
Hi, I have removed the body tag even then the yahoo ui is not working. Regards Deepak Bhatia On Fri, Jul 24, 2009 at 12:11 PM, Frank Stelzer wrote: > > But your former posted ajax template works (the alert example)?? Why > the hell do use the body tag there? ... > The body tag should be liste

[symfony-users] Re: link_to_remote

2009-07-24 Thread DEEPAK BHATIA
Hello, Yes it is working now. Thanks Deepak On Fri, Jul 24, 2009 at 12:47 PM, DEEPAK BHATIA wrote: > Hi, > > I have removed the body tag even then the yahoo ui is not working. > > Regards > > Deepak Bhatia > > > On Fri, Jul 24, 2009 at 12:11 PM, Frank Stelzer wrote: >> >> But your former poste

[symfony-users] Re: Override default error pages

2009-07-24 Thread Gábor Fási
Via the dev controller you'll always get the symfony error pages to help debugging. Check your pages via the prod controller. On Fri, Jul 24, 2009 at 00:57, Eno wrote: > > > I created an error/error.html.php file in my project's config directory as > documented here: > > http://www.symfony-projec

[symfony-users] Re: Embedding forms / Objects

2009-07-24 Thread -gary-
Thank you for the reply Gareth. I am using Propel. When I: foreach( StatusPeer::doSelect(new Criteria()) as $status_object ) is that incorrect? I var_dubped all over the placec and everything seems to have what is expected. One this I noticed is that $key is 'status_1', 'status_2',... in St

[symfony-users] want to know the behaviour of send function of sfWebResponse class

2009-07-24 Thread Dheeraj Kumar Aggarwal
Hi all, i want to send response from filters, not from actions what i did is i just called sendResponse function in one of my filters the function is -- public static function sendResponse($response, $status_code, $content_type = 'text/plain', $content = null) { $response->clearHttpHeade

[symfony-users] Re: Embedding forms / Objects

2009-07-24 Thread -gary-
Also, I tried: $this->status_objects = StatusPeer::doSelect(new Criteria()); and var_dump'd and got the form and data as expected. The only problem is that I get this error at the bottom of the page: Fatal error: Cannot use object of type sfFormField as array in ... in the template. On Jul

[symfony-users] Re: Access an Embedded form from Actions.class.php

2009-07-24 Thread Gandalf
try something like this: $_eForms = $this -> form -> getEmbeddedForms() ; $e_Forms['embeded_form']->setDefault('combo', 'value'); On 7/23/09, Germana Oliveira wrote: > Hi!! > > Im trying to access my embedded form from my actions class, so i can set > a default value to a combo Box, i did this

[symfony-users] Re: want to know the behaviour of send function of sfWebResponse class

2009-07-24 Thread Eno
On Fri, 24 Jul 2009, Dheeraj Kumar Aggarwal wrote: > i want to send response from filters, not from actions Why? > i don't want any execution after calling send function > So, how to do this Why? -- --~--~-~--~~~---~--~~ You received this message beca

[symfony-users] Reading mail from smtp with symfony.

2009-07-24 Thread Crafty_Shadow
Everybody knows how to send e-mails from symfony, or php in general. It's a trivial task. However, I am now faced with the need to do the reverse - use imap to read e-mails. >From what I gather, one way to do so would be a task that is called through a cron job If anyone has any experience with t

[symfony-users] Re: want to know the behaviour of send function of sfWebResponse class

2009-07-24 Thread Dheeraj Kumar Aggarwal
actually i am implementing a web service and i am checking a condition in filters if that condition is true then execution will go further ie executes the actions class code else i have to send response containing "Bad Request " and not to execute further code. On Fri, Jul 24, 2009 at 6:28 PM, E

[symfony-users] Re: Reading mail from smtp with symfony.

2009-07-24 Thread Gábor Fási
I have a site that needs to regularly collect info from other locations, not mails though, but websites. I achieved this via tasks scheduled with cron. They all boil down to the simple connect-process-store steps, I believe a similar approach is ok for you. On Fri, Jul 24, 2009 at 15:08, Crafty_S

[symfony-users] autoloading custom symfony core class before core classes...possible?

2009-07-24 Thread Roland Cruse
Hi I can not get around it, I need to change the sfWidget.class.php. Extending it is too much trouble because its so high in the extended tree. Is there a way to have symfony see my sfWidget.class.php instead of the one in the core classes (which I do not want to touch)? Autoloading seems to onl

[symfony-users] saving data to multiple tables

2009-07-24 Thread mirfan
i have a parent form Patients now i need another to embed in this form which is PatientMedicalHistory, i am a very fresh symfony user please some one help me how i will embed this form and how i will save the forms in database and also the edit process i am really boored and thinking to quit the p

[symfony-users] Task - The "default" context does not exist

2009-07-24 Thread JackJones
Hi All I try to run a task - but everytime i receive the follow error: The "default" context does not exist. I have no idea, how i could fix this problem. Anyone a idea? My used code is: addArguments(array( // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My

[symfony-users] Re: Datagrid for Doctrine

2009-07-24 Thread kev
Same here, i actually posted a message on the forum too : http://forum.symfony-project.org/index.php/m/82477/?srch=datagrid#msg_82477 I also found the sfDataGrid plugin which is unfortunately only for Propel. How about the http://www.symfony-project.org/plugins/swToolboxPlugin ? It says it provide

[symfony-users] Re: loading choices from the database using sfWidgetFormSelectDoubleList

2009-07-24 Thread Tommaso D'Argenio
Thanks a lot. this solved my problem. Documentation should more clear to address problems like this .. I understand sometimes is the lack of knowledge and experience and if someone keep trying it will solve it at the end, but how much time wasted... cheers. 2009/7/24 adrianrz > > Hi, > > Yes

[symfony-users] More form widgets, ajax live search in input field?

2009-07-24 Thread Tommaso D'Argenio
Hi all, I would like to enrich my Article's edit form, for example If I want to associate my article with other articles I have used a sfWidgetFormSelectDoubleList but soon I've realized this is nice when the database contains few articles what when the articles will be hundreds or more? So I wou

[symfony-users] Re: saving data to multiple tables

2009-07-24 Thread Germana Oliveira
Here i give you my code. (i speak Spanish, so im gonna try to translate what i did ) - I have a form named 'Denuncia', in this form i embed 1 form 2 times. widgetSchema['fecha'] = new sfWidgetFormInputHidden(); $this->widgetSchema['correlativo'] = new sfWidgetFormInputHidden(); $this-

[symfony-users] Re: Embedding forms / Objects

2009-07-24 Thread -gary-
If I, in the template: I get the whole form and fields. I just need to get these row by row. Is this possible? On Jul 24, 8:35 am, -gary- wrote: > Also, I tried: > > $this->status_objects = StatusPeer::doSelect(new Criteria()); > > and var_dump'd and got the form and data as expected. >

[symfony-users] Re: Embedding forms / Objects

2009-07-24 Thread -gary-
If I, in the template: I get the whole form and fields. I just need to get these row by row. Is this possible? On Jul 24, 8:35 am, -gary- wrote: > Also, I tried: > > $this->status_objects = StatusPeer::doSelect(new Criteria()); > > and var_dump'd and got the form and data as expected. >

[symfony-users] Re: Embedding forms / Objects

2009-07-24 Thread Gareth McCumskey
Don't do that. Rather do: $status_objects = StatusPeer::doSelect(new Criteria()); foreach ($status_objects as $status_object) - Original Message - From: "-gary-" To: "symfony users" Sent: Friday, July 24, 2009 11:11:36 AM GMT +02:00 Harare / Pretoria Subject: [symfony-users] Re: Emb

[symfony-users] Re: Embedding forms / Objects

2009-07-24 Thread Gareth McCumskey
echo $form['field_name']->renderLabel(); echo $form['field_name']; ;) - Original Message - From: "-gary-" To: "symfony users" Sent: Friday, July 24, 2009 5:02:45 PM GMT +02:00 Harare / Pretoria Subject: [symfony-users] Re: Embedding forms / Objects If I, in the template:

[symfony-users] Re: Embedding forms / Objects

2009-07-24 Thread -gary-
If I, in the template: I get the whole form and fields. I just need to get these row by row. Is this possible? On Jul 24, 8:35 am, -gary- wrote: > Also, I tried: > > $this->status_objects = StatusPeer::doSelect(new Criteria()); > > and var_dump'd and got the form and data as expected. >

[symfony-users] Re: Embedding forms / Objects

2009-07-24 Thread -gary-
Thank you again for replying. I have tried this but I get an error on the page: Fatal error: cannot use object of type sfFormField as array On Jul 24, 11:08 am, Gareth McCumskey wrote: > > > echo $form['field_name']->renderLabel(); > > > echo $form['field_name']; > > > ;) > > - Ori

[symfony-users] Re: Datagrid for Doctrine

2009-07-24 Thread Thomas Rabaix
Hello, The class is abstract because you need to extends the swDoctrineDatagrid with your filters and the buildQuery method This is how to use a datagrid, class swBlogPostsDatagrid extends swDoctrineDatagrid { public function getModelName() { return "swBlogPost"; } public func

[symfony-users] Re: Embedding forms / Objects

2009-07-24 Thread -gary-
Thank you again for replying. I have tried this but I get an error on the page: Fatal error: cannot use object of type sfFormField as array On Jul 24, 11:08 am, Gareth McCumskey wrote: > > > echo $form['field_name']->renderLabel(); > > > echo $form['field_name']; > > > ;) > > - Ori

[symfony-users] frontend and backend

2009-07-24 Thread juaninf
Hi everyone.. Please i want to know when put modules within on the backend or within frontend, for example. If I have a user module this have that stay in frontend or both? or that criteria I have that do. --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] Re: Embedding forms / Objects

2009-07-24 Thread -gary-
Thank you again for replying. I have tried this but I get an error on the page: Fatal error: cannot use object of type sfFormField as array On Jul 24, 11:08 am, Gareth McCumskey wrote: > > > echo $form['field_name']->renderLabel(); > > > echo $form['field_name']; > > > ;) > > - Ori

[symfony-users] Re: Embedding forms / Objects

2009-07-24 Thread -gary-
Thank you again for replying. I have tried this but I get an error on the page: Fatal error: cannot use object of type sfFormField as array On Jul 24, 11:08 am, Gareth McCumskey wrote: > > > echo $form['field_name']->renderLabel(); > > > echo $form['field_name']; > > > ;) > > - Ori

[symfony-users] Re: Embedding forms / Objects

2009-07-24 Thread -gary-
Thank you again for replying. I have tried this but I get an error on the page: Fatal error: cannot use object of type sfFormField as array On Jul 24, 11:08 am, Gareth McCumskey wrote: > > > echo $form['field_name']->renderLabel(); > > > echo $form['field_name']; > > > ;) > > - Ori

[symfony-users] Re: Embedding forms / Objects

2009-07-24 Thread -gary-
Thank you again for replying. I have tried this but I get an error on the page: Fatal error: cannot use object of type sfFormField as array On Jul 24, 11:08 am, Gareth McCumskey wrote: > > > echo $form['field_name']->renderLabel(); > > > echo $form['field_name']; > > > ;) > > - Ori

[symfony-users] Re: Reading mail from smtp with symfony.

2009-07-24 Thread Richtermeister
Hey Gabor, I'd be interested in what software you use to access the imap servers. Any pointers? :) Thanks, Daniel On Jul 24, 6:33 am, Gábor Fási wrote: > I have a site that needs to regularly collect info from other > locations, not mails though, but websites. I achieved this via tasks > sch

[symfony-users] Re: frontend and backend

2009-07-24 Thread Eno
On Fri, 24 Jul 2009, juaninf wrote: > Please i want to know when put modules within on the backend or within > frontend, > for example. If I have a user module this have that stay in frontend > or both? or that criteria > I have that do. Not sure what you're asking: generally the frontend would

[symfony-users] Re: More form widgets, ajax live search in input field?

2009-07-24 Thread Eno
On Fri, 24 Jul 2009, Tommaso D'Argenio wrote: > I would like to enrich my Article's edit form, for example If I want to > associate my article with other articles > I have used a sfWidgetFormSelectDoubleList but soon I've realized this is > nice when the database contains few articles > what when

[symfony-users] Re: Reading mail from smtp with symfony.

2009-07-24 Thread Gábor Fási
You misunderstood me :) I fetch data from websites, not mail accounts. On Fri, Jul 24, 2009 at 18:17, Richtermeister wrote: > > Hey Gabor, > > I'd be interested in what software you use to access the imap servers. > Any pointers? :) > > Thanks, > Daniel > > > > On Jul 24, 6:33 am, Gábor Fási wro

[symfony-users] Tooltip in Object_Actions for generator.yml

2009-07-24 Thread Tommaso D'Argenio
Hi All, I know I can add tooltip for single column in the List and Edit section of the generator.yml, but It seems it doesn't work for the Object_Actions .. If I have something like this: config: list: object_actions: _delete: ~ _edit:~ myaction: { help: Tooltip for m

[symfony-users] More questions on Generator: date picker, custom filter, joins

2009-07-24 Thread Tommaso D'Argenio
Hi All, I'm playing around with the backend and the magical Generator.yml. I'm running in some issues which I can't find a solution for as yet, hope somebody in the list can assist me. First of all the queries for the list, they are too much and can be reduced by multiple join.. now according to

[symfony-users] Re: link_to + parameter - my parameters get overridden

2009-07-24 Thread mlu...@gmail.com
Hi! Problem is solved. I have nested partial calls and I forgot to use $sf_data->getRaw() in the parameter array for the nested call. regards, Michael http://www.kineticarm.com http://www.dikeytus.com http://www.lueftenegger.at On 23 Jul., 20:08, Eno wrote: > On Thu, 23 Jul 2009, mlu...@

[symfony-users] Re: More form widgets, ajax live search in input field?

2009-07-24 Thread Tommaso D'Argenio
Hi, yes I was talking about Auto-Complete... I've read the plugin blog post to use the sfWidgetFormPropelJQueryAutocompleter but I want to integrate this with the sfWidgetFormSelectDoubleList... or alternatively have this auto-complete input box and a simple SelectList which contains all the assoc

[symfony-users] Re: More form widgets, ajax live search in input field?

2009-07-24 Thread Eno
On Fri, 24 Jul 2009, Tommaso D'Argenio wrote: > yes I was talking about Auto-Complete... I've read the plugin blog post to > use > the sfWidgetFormPropelJQueryAutocompleter but I want to integrate this with > the > sfWidgetFormSelectDoubleList... or alternatively have this auto-complete > input >

[symfony-users] Re: Possible bug in Propel 1.3

2009-07-24 Thread Jake Barnes
It seems to me the mistake is yours. If "it is perfectly legal for no SubscriberUnitCoordinate to exist" then you can not define a foreign key involving it. Defining a foreign key makes it required, even if you set "required" to "false" in your schema.yml. On Jul 16, 2:52 pm, Trevor Lanyon wrot