[symfony-users] how can I get day from sfWidgetFormDate ??

2009-12-08 Thread dziobacz
I have form: $this-setWidgets(array( 'description' = new sfWidgetFormInput(), 'test' = new sfWidgetFormJQueryDate(array('format' = '%day%/ %month%/%year%', 'culture' = 'pl')), )); $this-widgetSchema-setNameFormat('data[%s]');

[symfony-users] Disabling admin-generated actions

2009-12-08 Thread Joel Cuevas
Hi list, The thing is, in an auto generated admin module, if I don't want to use, lets say, the edit action (and I don't want that the users be able reach in any way), it's enough to delete the edit element from the actions array in the route collection to not generate its route or it compromises

[symfony-users] Re: How change an admin generator filter to use a multiple choose select field

2009-12-08 Thread Joel Cuevas
I'm guessing, so try it and let us know. In your filter class add this: public function addDescriptionTypeIdColumnQuery(Doctrine_Query $query, $field, $value) { $query-leftJoin('r.DescriptionType d')-andWhereIn('d.id', $value); } Note the name of the method (it includes the camel-cased name of

[symfony-users] Re: i18n:extract not generating translation file

2009-12-08 Thread Joel Cuevas
You need to specify the target language in order to create its folder, i.e., symfony i18n:extract --auto-save frontend fr Note the fr at the end of the line. With this you should now have an /apps/frontend/i18n/fr folder with messages.xml inside it. The order (or location) of the optional

[symfony-users] Actions method returning XML yields extra line break

2009-12-08 Thread filmaj
Hi everyone, Recently came back to using symfony after an extended absence and basically re-learned everything. Love the framework - huge fan. I have a bit of a problem... Basically, I have a module and I've added a new action to it that returns nothing but XML. I set the content-type to XML and

[symfony-users] sfWidgetFormInputText and date formatting

2009-12-08 Thread Evgeny
Hello, I'm using this code in my form: $this-widgetSchema['birthday']=new sfWidgetFormInputText(); Birthday in Doctrine-schema: birthday: date How can I format date to be output in this widget (d.m.Y) ? I had resolve any issues about validating and saving date in my format. But I cannot

[symfony-users] How to add autocomplete in a filter field (admin generator)

2009-12-08 Thread Pedro Casado
Im trying to replace a *filter* widget: $controller = sfContext::getInstance()-getController(); $this-widgetSchema['endereco'] = new sfWidgetFormChoice(array('choices' = array())); $this-widgetSchema['endereco']-setOption('renderer_class', 'sfWidgetFormPropelJQueryAutocompleter');

Re: [symfony-users] Re: How change an admin generator filter to use a multiple choose select field

2009-12-08 Thread Pedro Casado
Im using Propel. Is the same name? i'll look for addXXXColumnQuery.. Att, Pedro Casado On Tue, Dec 8, 2009 at 8:01 AM, Joel Cuevas in...@joelcuevas.com wrote: I'm guessing, so try it and let us know. In your filter class add this: public function

[symfony-users] Re: how can I get day from sfWidgetFormDate ??

2009-12-08 Thread dziobacz
Maybe I should include in action helper Date and use function format_date() ? But is it a good solution ? I thought that helpers are only for views, not for actions ? On 8 Gru, 09:38, dziobacz aaabbbcccda...@gmail.com wrote: I have form: $this-setWidgets(array(       'description'  = new

[symfony-users] link_to_remote issue

2009-12-08 Thread DEEPAK BHATIA
Hi, I have a $link variable as given below in template. $link = https://10.0.2.118/wbrt/web/tool_staging.php/admin/projectselected?project=.$data0[$i ]; td?php echo link_to_remote($displayname, array('update' = 'reportx','url' = $link,'script' = true))?/td The above works correctly. But if

[symfony-users] Re: Error using sfFacebookConnectPlugin and sfGuardPlugin

2009-12-08 Thread Fabrice Bernhard
Hi Zach, You don't need any sfFacebookConnect filters in a standard implementation. Better documentation will soon be online as part of the symfony 2009 advent calendar :-) Cheers, Fabrice -- http://www.theodo.fr On Dec 8, 7:28 am, Alexandre Salomé alexandre.sal...@gmail.com wrote: Hi,  

Re: [symfony-users] sfGuardUserProfile in admin backend

2009-12-08 Thread Daniel Lohse
Yes, you need to add the fields of the profile form to the generator.yml file. It won't work otherwise, but that's understandable because there's no magic going on that adds new fields you add to the model automatically to the generator.yml as this file is already written to disk. Cheers,

[symfony-users] Sf 1.2.10+Docrine 1.0 vs Sf1.4+Doctrine 1.2 ???

2009-12-08 Thread Frédéric Quié
Hello, I have 1 Database and 2 Symfony projects. The first project run on Sf 1.2.10+Docrine 1.0, The second one on Sf1.4+Doctrine 1.2. Both have been installed the same way, but the fisrt one display the list of the executeIndex method, and the second on doesn't, it says for

[symfony-users] Re: Sf 1.2.10+Docrine 1.0 vs Sf1.4+Doctrine 1.2 ???

2009-12-08 Thread Frédéric Quié
Ok, the new branch, providing symfony 1.4.2-DEV and Doctrine 1.2.1 has solved the problem. A bug was also discovered in the Doctrine plugin that affected magic accessors for columns ending with an underscore followed by a digit. Abd it was my case.

[symfony-users] pkToolkitPlugin gems: pkToolkit:deploy

2009-12-08 Thread Tom Boutell
We've noticed a lot of situations where project:deploy gets us into trouble: * The permissions are acceptable locally (because MAMP runs as the same user as the developer) but not remotely * Migrations don't get run automatically on the far end * symfony cc doesn't get run automatically on the

Re: [symfony-users] Re: Add column

2009-12-08 Thread James Collins
Hi Alecs, I wasn't aware of the new migration features in Doctrine 1.2 (symfony 1.3/1.4). I've done some research, and this article tutorial ( http://www.denderello.com/publications/guide-to-doctrine-migrations) contains some great information on how the feature works. I'm now successfully

[symfony-users] Re: Multiple Doctrine Databases / Sf1.4 Issues

2009-12-08 Thread Dave
I am getting this issue with the Symfony 1.3.1 tag as well A workaround that seems to work at the moment is to put Doctrine_Manager::getInstance()-bindComponent(model classname, connection name); lines into the ProjectConfiguration file. Dave -- On Nov 26, 9:51 am, Jonathan Wage

Re: [symfony-users] Re: How change an admin generator filter to use a multiple choose select field

2009-12-08 Thread Pedro Casado
Thanks. This link also helped me too. http://snipt.net/Tram/symfony-12-add-a-custom-filter-field-for-generated-admin/ Att, Pedro Casado On Tue, Dec 8, 2009 at 9:12 AM, Pedro Casado pdr...@gmail.com wrote: Im using Propel. Is the same name? i'll look for addXXXColumnQuery.. Att, Pedro

Re: [symfony-users] pkToolkitPlugin gems: pkToolkit:deploy

2009-12-08 Thread Pablo Godel
Great Tom, this will be very helpful. We see all the time that deployment is one of the places where there are always problems. Thanks for sharing. Pablo On Tue, Dec 8, 2009 at 5:18 PM, Tom Boutell t...@punkave.com wrote: We've noticed a lot of situations where project:deploy gets us into