[symfony-users] Re: Complex conditional validation, symfony 1.3/4

2010-01-22 Thread ken
create a custom validator that extends sfValidatorSchema $this->mergePostValidator(myValidatorSchemaCustom); all submitted values are passed to its doBind method. this is an example class myValidatorSchemaChangePassword extends sfValidatorSchema { public function __construct($password, $new,

Re: [symfony-users] How works passing information from the Action to the Template?

2010-01-22 Thread Stéphane
You welcome. And without ? :-) Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Sat, Jan 23, 2010 at 2:01 AM, Volkov "BabyWolf" Semjon < volkov.babywolf.sem...@gmail.com> wrote: > 23.01.2010 6:44, Stéphane пише

Re: [symfony-users] How works passing information from the Action to the Template?

2010-01-22 Thread Volkov "BabyWolf" Semjon
23.01.2010 6:44, Stéphane пишет: http://www.symfony-project.org/book/1_0/07-Inside-the-View-Layer " Listing 7-8 - The Action Defines a Variable, in mymodule/actions/actions.class.php class mymoduleActions extends sfActions { public function executeIndex() { $this->total = 100; } }

Re: [symfony-users] Doctrine + PostGreSQL

2010-01-22 Thread Stéphane
And if using Doctrine to insert it, show us the generated sql query, thanks. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! 2010/1/23 Volkov "BabyWolf" Semjon > 21.01.2010 17:01, webasker пишет: > > C

Re: [symfony-users] How works passing information from the Action to the Template?

2010-01-22 Thread Stéphane
http://www.symfony-project.org/book/1_0/07-Inside-the-View-Layer " Listing 7-8 - The Action Defines a Variable, in mymodule/actions/actions.class.php class mymoduleActions extends sfActions { public function executeIndex() { $this->total = 100; } } Listing 7-9 - The Template Passes the

Re: [symfony-users] Doctrine + PostGreSQL

2010-01-22 Thread Volkov "BabyWolf" Semjon
21.01.2010 17:01, webasker пишет: Can someone please help me? I have a database with schema "main" that include a table "User". I get this exception when inserting an entry into table User. Doctrine_Sequence_Exception on demand sequence main."User_Id_seq" could not be created at () in SF_SYMFON

Re: [symfony-users] How works passing information from the Action to the Template?

2010-01-22 Thread Volkov "BabyWolf" Semjon
23.01.2010 6:29, Stéphane пишет: "Dynamic variables", those which aren't declared as action's object properties in the class statement, are put in a variable holder by using magic methods. View get those vars by giving to it the varHolder (which contains dynamic vars). Properties defined as obj

[symfony-users] Re: Doctrine + PostGreSQL

2010-01-22 Thread Dennis
How did you even create the table User? Did you quote any or all of the table/column names. I have Postgres 8.4 and it won't let me even create the user table unless I quote the table names (unfortuately, Doctrine seems to only allow quoting ALL table names AND ALL column names) Probably not much p

Re: [symfony-users] How works passing information from the Action to the Template?

2010-01-22 Thread Stéphane
Hi, "Dynamic variables", those which aren't declared as action's object properties in the class statement, are put in a variable holder by using magic methods. View get those vars by giving to it the varHolder (which contains dynamic vars). Properties defined as object property in the class state

Re: [symfony-users] How works passing information from the Action to the Template?

2010-01-22 Thread Volkov "BabyWolf" Semjon
23.01.2010 6:07, Volkov "BabyWolf" Semjon пишет: I read the definitive guide to symfony. and write this code (apps\frontend\modules\tree\actions\actions.class.php): I used symfony 1.4.1 -- Не пью; не курю; женщинами интересуюсь, но редко. -- You received this message because you are subscribe

[symfony-users] How works passing information from the Action to the Template?

2010-01-22 Thread Volkov "BabyWolf" Semjon
I read the definitive guide to symfony. and write this code (apps\frontend\modules\tree\actions\actions.class.php): class treeActions extends sfActions { public $list = array(); /** * Show the full tree * * @param sfRequest $request A request object */ public function executeSh

Re: [symfony-users] Testing emails in development environment?

2010-01-22 Thread Daniel Lohse
Look here: http://www.symfony-project.org/tutorial/1_4/en/upgrade#chapter_161aacbf11b8cc24bbdc6951ba0fb57d_mailer I'm guessing you're using symfony 1.3/1.4? Cheers, Daniel On 22.01.2010, at 23:03, Darren884 wrote: > How do I get emails to work in the development environment? Is there a > log

[symfony-users] Re: No content

2010-01-22 Thread Pax95
Is there another way to omit settting chmod and clearing cache? I have no access to shell currently. -- 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 g

[symfony-users] Testing emails in development environment?

2010-01-22 Thread Darren884
How do I get emails to work in the development environment? Is there a log I am supposed to check somewhere? Thank you for the help. -- 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

Re: [symfony-users] Complex conditional validation, symfony 1.3/4

2010-01-22 Thread Alexandru-Emil Lupu
maybe ... dunno $this_is_your_form_instance->setPostValidators(new yourCustomValidator()); On Thu, Jan 21, 2010 at 1:25 PM, johnnygri wrote: > Hi there, > > I have a rather complicated form of 50+ fields. The value of one of > the first fields dictates whether validation should be performed on

Re: [symfony-users] problems with the built-in SwiftMailer when multiple SMTP servers are needed

2010-01-22 Thread Alexandru-Emil Lupu
maybe try to make using object inheritance ... dunno :) i have replaced the default routing system using inheritance... Now i have routing.yml in each one of my modules/config/ directory ... clean for me ... irrelevant for the application :) On Thu, Jan 21, 2010 at 3:58 PM, i70013 i70013 wrote:

Re: [symfony-users] Re: No content

2010-01-22 Thread Alexandru-Emil Lupu
run 2 things: symfony project:permissions symfony cc i don't know other method.. maybe to reinstall symfony in "lib/vendor/symfony" A. On Fri, Jan 22, 2010 at 3:30 PM, Pax95 wrote: > I haven't installed Symfony project with tutorials on official site. I > just downloaded sandbox, create

Re: [symfony-users] sfForm: can't save because of missing foreign key

2010-01-22 Thread Alexandru-Emil Lupu
check the sfFormExtraPlugin, especially the sfAutocompleterWidget (or something like that)... it will give the answer... On Fri, Jan 22, 2010 at 3:43 PM, EddieG wrote: > Hi everybody, > > I have two tables...: > - simpleTable (with attributes id and fk_veryFullTable) > - veryFullTable (with attr

[symfony-users] Re: Applying Filter to JS/CSS for CDN support

2010-01-22 Thread dancablam
Thanks Paulo. Your suggestion put me on the right track. After playing AssetHelper.php I decided I didn't want to override the entire helper so I extended sfWebResponse's getJavascripts() and getStylesheets() and was able to achieve the same results. Thanks so much for the advice. ~Dan On Jan 21,

[symfony-users] Re: Symfony's Database Session's table structure.

2010-01-22 Thread Richtermeister
I agree with Alex, all I see in the docs is that the column holds a "timestamp"... to me that said the column should be of the type "timestamp" as well, and that doesn't work. Daniel On Jan 21, 4:11 pm, "a...@speedypin.com" wrote: > I guess not enough where you reference Eno, because it’s a bi

[symfony-users] sfForm: can't save because of missing foreign key

2010-01-22 Thread EddieG
Hi everybody, I have two tables...: - simpleTable (with attributes id and fk_veryFullTable) - veryFullTable (with attributes id and URL) ... where simpleTable has a foreign key to veryFullTable. And I want to use an admin generator form to add an entry to my simpleTable. In the default setting I

[symfony-users] Re: No content

2010-01-22 Thread Pax95
I haven't installed Symfony project with tutorials on official site. I just downloaded sandbox, created app - palmgames, copied palmgames.php to the same directory but with name index.php and added simple content (not using Models, so Doctrine too). Maybe I have forgotten to change chmods? Errors:

Re: [symfony-users] Coda and symfony

2010-01-22 Thread Eno
On Thu, 21 Jan 2010, espo wrote: > im quite new to symfony and Coda too. Is there a way to get > autocompletion for symfony features in Coda. > Because its quite anoying to have no autocompletion for symfony > features. > > Maybe someone can point me on a howto or give me a hand on this. Did you

Re: [symfony-users] No content

2010-01-22 Thread Gareth McCumskey
And I just went to the link you provided and all looks good On Fri, Jan 22, 2010 at 2:25 PM, Gareth McCumskey wrote: > Use the dev environment controller as this will show you any error > messages generated. For example, if your applications name is frontend > you would load http://www.linuxpl.c

Re: [symfony-users] No content

2010-01-22 Thread Gareth McCumskey
Use the dev environment controller as this will show you any error messages generated. For example, if your applications name is frontend you would load http://www.linuxpl.com/frontend_dev.php Also, make sure that permissions of the files on the server are correct and also do a symfony cc on the p

[symfony-users] multiple databases & switching btwn them

2010-01-22 Thread gamename
Hi Guys, I have multiple databases set up like this in database.yml: test: foo: class: sfPropelDatabase param: dsn: 'mysql://root:@localhost/test_foo' foo1: class: sfPropelDatabase param: dsn: 'mysql://root:@localhost/test_foo1'

Re: [symfony-users] PROBLEM WITH SFJQUERYRELOADEDPLUGIN

2010-01-22 Thread Alexandru-Emil Lupu
If you are not experienced with javascript, i would suggest to put some ";" after the end of the "upload" and "complete". This might be the source of your problems. Please do not feel unconfortable that i have take you hard on steps 1 & 2. It is nothing personal. First step it would be to remove t

[symfony-users] Re: processing hidden input in forms

2010-01-22 Thread el-sid
thanks for the reply...i thought i had the logic down but it wasnt showing any errors or warnings. I finally stumbled upon a method that works--probably the way its supposed to be done. I moved the logic from the controller to the model in a save method like this: public function save(Doctrine_Co

Re: [symfony-users] PROBLEM WITH SFJQUERYRELOADEDPLUGIN

2010-01-22 Thread Sorom Uzomah
Hi Alecs, Thanks a lot 1. Didnt intend to draw attention as such, just wrote the title in CAPs 2. I thought that by putting 2 issues in the initial post i made it a bit clumsy so I tried to place just one 3. No problem 4. Okay 5. Like i commented in the c