Re: [symfony-users] forms and validation

2009-11-28 Thread Gareth McCumskey
In your action, when you bind the submitted form to your form class then the validators kick in. So process kinda is: - Action checks if form submitted, and it has not, so create instance of form class with defaults and let view display form. - User interacts with form (and your client-side javasc

[symfony-users] sfWidgetFormTextareaTinyMCE class

2009-11-28 Thread Antony
Hello, I'm banging my head against the wall after trying to make this work.. Here is the setting: I have a form "email like" and I wanted to add TinyMCE for the main body. I installed the sfFormExtraPlugin, and TinyMCE in my js/ folder. Then I opened my emailForm.class.php and added: public f

[symfony-users] forms and validation

2009-11-28 Thread Paul Witschger
OK, newbie question here. I used doctrine to build my forms. I then used the non-base class to customize my forms since I don't need every single field in the form (all I'm doing is unsetting the fields I don't want). In the BaseContactForm class, it is setting all the fields as well as $this-

[symfony-users] How to add additional info to cache key for some (not all) actions?

2009-11-28 Thread Mateusz Papiernik
Hi! Is there any possibility in Symfony (1.2 at that point) to alter cache key generation algorithm for actions, or supply own cache_key just like it is possible with partials and components? I've read how to enable cache with PHP code for particular actions, and not with static cache.yml, using

[symfony-users] issue about selecting objects in an inheritance context

2009-11-28 Thread Patrick NDJIENTCHEU
Hi symfony people, I have an issue that is quite annoying. My environment is symfony 1.2 and propel. I have a model where I have implemented inheritance using the single-table strategy. So, here is an excerpt of my model: *Ad* (id, posted_date, description) then *RealEstateAd*(location, price, tran

[symfony-users] Re: sfValidatorDate in sf1.3/14 ?

2009-11-28 Thread goofy
No error i always get the today date … Ex : type 27/11/09 -> 2009-11-28 ( i try in two different module with differents forms) On 28 nov, 01:33, Alexandre SALOME wrote: > What's the outputed error ? > > 2009/11/27 goofy > > > > > Hi, > > > after migration 1.2 to 1.3, ny sfvalidatordate dont wor

[symfony-users] Re: symfony upgrade from 1.2 to 1.3 fails

2009-11-28 Thread micon
RESOLVED got the svn version of 1.3 and everthing works fine ! On 28 Nov., 17:14, micon wrote: > i wanted to upgrade a 1.2 project to 1.3 > i followed the upgrade howto exactly > > i receive the following error message: > 500 | Internal Server Error | sfParseException > Configuration file "/var/w

[symfony-users] symfony upgrade from 1.2 to 1.3 fails

2009-11-28 Thread micon
i wanted to upgrade a 1.2 project to 1.3 i followed the upgrade howto exactly i receive the following error message: 500 | Internal Server Error | sfParseException Configuration file "/var/www/felderweb/nr1-devel/lib/vendor/ symfony-1.3.0RC2/lib/config/config/filters.yml" specifies category "commo

[symfony-users] Re: sfDoctrine2Plugin, generating models from class metadata instead of YAML mapping?

2009-11-28 Thread Marijn
For anybody interested, this is possible by using the configureDoctrineConnection hook in your ProjectConfiguration class. See the following gist for an example: http://gist.github.com/244558 On Oct 18, 12:03 am, Marijn wrote: > Hi, > > Is it possible to generate the database from the phpdoc met

Re: [symfony-users] Re: yaml and mvc

2009-11-28 Thread Stéphane
I would prefer saying "uses of YAML in Symfony" (or how symfony makes use of yaml -adding why -talking of benefits in a KISS approach ? -vs strictness of semantic and syntax of xmi/xml/emf for example)? And explains that it is a "supported" representation of data used for : configuring framework sy

[symfony-users] Re: yaml and mvc

2009-11-28 Thread mini_alexander
But we can also configure Symfony using YAML and include javascript etc. - so model rather not. I think I will create special section for YAML - section with name 'Configuration'. Good idea ? On 28 Lis, 16:23, gato chlr wrote: > In symfony, it is a tool that help us to generate our model classes

Re: [symfony-users] generate:project directory exists?

2009-11-28 Thread Stéphane
You can also put in your environment path the path where reside the symfony bins (the directory where resides symfony and symfony.bat and other files, can't remember path). So you'll be able to run "symfony generate:project $" everywhere you will want to. Note, you won't be able to run symfony gen

Re: [symfony-users] generate:project directory exists?

2009-11-28 Thread Gábor Fási
You need to run generate:project in the folder where it'll reside, not in symfony/data/bin According to your paths, go to d:\wamp\www\sf_test, and run php lib\vendor\symfony\data\bin\symfony generate:project jobeet Later on you can use `php symfony`, this is the only time you'll need to use that

Re: [symfony-users] yaml and mvc

2009-11-28 Thread gato chlr
In symfony, it is a tool that help us to generate our model classes, so, if it is needed , i put YAML inside the model section. In the model section you can explain in the apendix a bit about YAML and then explain the purpose of its use. Of course, don't forget that there is another ways to define

[symfony-users] generate:project directory exists?

2009-11-28 Thread Mech7
D:\wamp\www\sf_test\lib\vendor\symfony\data\bin>symfony generate:project jobeet A symfony project already exists in this directory (D:\wamp\www\sf_test \lib\ve ndor\symfony\data\bin). I am trying the jobeet tutorial.. I am using 1.4 rc2 but when i run generate project it doesn't work can anybody

[symfony-users] Re: sfWidgetFormJQueryDate as default in auto generated code

2009-11-28 Thread Massimiliano Arione
On 27 Nov, 14:18, kev wrote: > Hey Massimiliano, > > i'd be more than happy to try your solution, but to be honest you page > is not that clear and definitely not symfony oriented. Maybe you could > describe what exactly is needed, where to put it and what file to > update for your solution to wor

Re: [symfony-users] yaml and mvc

2009-11-28 Thread Lee Bolding
YAML is a representation of a simple data structure used mostly for configuration purposes. I wouldn't class it as part of MVC at all - the same as I wouldn't XML or JSON. However, as it's a representation of data, the closest fit would be a model On 28 Nov 2009, at 09:14, mini_alexander wrote:

[symfony-users] Re: config/error/erro.html.php cannot be shown

2009-11-28 Thread isyairazu
Yes Lawrence, I will do your way. Thank you for your response! -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+uns

[symfony-users] yaml and mvc

2009-11-28 Thread mini_alexander
I must write something about YAML in Symfony. To which group should I classify YAML: model, view or controller ? I think about view or controller or maybe both ? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email

[symfony-users] Re: Doctrine: execute vs fetchArray

2009-11-28 Thread Adrien Mogenet
Thanks :-) I'll keep my lovely objects ! Adrien On 28 nov, 01:17, Alexandre SALOME wrote: > Yes, it's faster with a simple array hydrating... You don't instanciate your > objects, just map their configuration. > > Objects are useful for executing some business logic (sometimes, very > complex).