开发者

Slot not being passed from action to layout in Symfony 1.4

开发者 https://www.devze.com 2022-12-21 07:20 出处:网络
I\'m using the following to set a slot in an action but I can\'t retrieve it in the layout. $this->getResponse()-&g开发者_如何学JAVAt;setSlot(\'global_message\', \'You have already completed this

I'm using the following to set a slot in an action but I can't retrieve it in the layout.

$this->getResponse()-&g开发者_如何学JAVAt;setSlot('global_message', 'You have already completed this contest.');

But if you set this in the template file, it works fine.

Anyone have any ideas on this one?


It should work. Please provide some code about your controller, view and layout.

0

精彩评论

暂无评论...
验证码 换一张
取 消