Re: [fw-general] Re: [ZF2] Switching layouts between modules.

2012-01-18 Thread Armand Brahaj
There have been some attempts to solve this problem via Plugins in ZF (http://stackoverflow.com/a/2649821/277861) Not the best approach but a dirty solution would be using $this->_helper->layout->setLayout('foobaz') in controllers to switch the Layouts Regards, On Wed, 18 Jan 2012 06:29:2

[fw-general] Re: [ZF2] Switching layouts between modules.

2012-01-18 Thread Razorblade
Sorry, after that I found this problem I temporarily quit study ZF2, so I haven't found a solution yet. Regards -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/ZF2-Switching-layouts-between-modules-tp4190088p4306784.html Sent from the Zend Framework mailin

[fw-general] Re: Zend Form - Setting element required based on a condition

2012-01-18 Thread modul
I tried to you your script, but you missing 'return' - should be: public function isValid($value) { if (array_key_exists('contactBy', $value) && $value['contactBy'] == 'email') { $this->emailAddress->setRequired(true); } *return* parent::isValid($value); } -- View thi