Use the preDispatch-method to set the layoutPath:
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
//module name=$request->getModuleName()
}
----- Ursprüngliche Mail -----
Von: "K.L." <coviex@gmail.com>
An: fw-mvc@lists.zend.com
Gesendet: Samstag, 28. März 2009 14:34:31 GMT +01:00 Amsterdam/Berlin/Bern/Rom/Stockholm/Wien
Betreff: [fw-mvc] Layout before dispatch
Hi,
I need to set path to layout folder depending on module name.
And as I understand it should be done before front controller dispatch.
But the name of the module by that time is unknown.
Please, suggest some solution.
K.L.
没有评论:
发表评论