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
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
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-
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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).
20 matches
Mail list logo