[symfony-users] Re: frontend and backend

2009-07-26 Thread Jake Barnes
On Jul 24, 11:18 am, juaninf juan...@gmail.com wrote: 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. The first 2 sites I did, I

[symfony-users] why do the objects take so long to dump to screen?

2009-07-26 Thread Lawrence
I was pursuing a rare bug involved with saving a form, so I opened sfForm.class.php and I added in a print_r() statement: public function getErrorSchema() { echo the error schema: ; print_r($this-errorSchema); die(); return $this-errorSchema; } I simply wanted to see what the

[symfony-users] Re: why do the objects take so long to dump to screen?

2009-07-26 Thread Bernhard Schussek
Hi Lawrence I suppose you are using Doctrine. The problem with dumping Doctrine records is that they contains cyclic references. That means, a record references a table, which references the record, which references the table ... you get the drill. If you try to dump this record, PHP tries to

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

2009-07-26 Thread Bernhard Schussek
Could it be that yo have overwritten DemoAccountPeer::doSelect() to use sfContext? I suggest you to read the following article if you want to learn more about that error: http://webmozarts.com/2009/07/01/why-sfcontextgetinstance-is-bad/ Bernhard -- Software Architect Engineer Blog:

[symfony-users] Re: why do the objects take so long to dump to screen?

2009-07-26 Thread Jake Barnes
On Jul 26, 7:19 am, Bernhard Schussek bschus...@gmail.com wrote: Hi Lawrence I suppose you are using Doctrine. The problem with dumping Doctrine records is that they contains cyclic references. That means, a record references a table, which references the record, which references the

[symfony-users] Form Validation based on a tainted value?

2009-07-26 Thread johnwards
Hello, I have a form containing dates, I have two fields called: Auction date Baseline required by Auction date must be after the baseline date, now I can do this on existing objects by using the date validator and the min field. However, I need the tainted value for edits and new data. The

[symfony-users] Re: why do the objects take so long to dump to screen?

2009-07-26 Thread John - White October
If you can, install xdebug and use var_dump rather than print_r. It stops recursion after a configurable amount of times. Also makes errors pretty... On Jul 26, 6:32 pm, Jake Barnes lkrub...@geocities.com wrote: On Jul 26, 7:19 am, Bernhard Schussek bschus...@gmail.com wrote: Hi Lawrence

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

2009-07-26 Thread John - White October
We use the Zend Mail class from Zend Framework. As recommended in the Jobeet tutorial! Cheers John On Jul 25, 1:43 pm, Sherif sherifgmans...@gmail.com wrote: Thanks for sharing.. interesting + creative method On Jul 25, 6:37 pm, Crafty_Shadow vankat...@gmail.com wrote: In the end, I went

[symfony-users] Re: Form Validation based on a tainted value?

2009-07-26 Thread Gábor Fási
I'm not sure I get what you mean. If you want to make sure one date is later than another one, I suggest you set up an sfValidatorSchemaCompare [1] instance as a post validator. [1] http://www.symfony-project.org/forms/1_2/en/B-Validators#chapter_b_sub_sfvalidatorschemacompare On Sun, Jul 26,

[symfony-users] dynamic input fields

2009-07-26 Thread mirfan
hi, i am working with a very dynamic form that is i can add and remove fields from admin side into a form and all the fields are saved in database table and the form will load all the fields when loaded the table will be id