开发者

symfony : how to execute an action via a _partial

开发者 https://www.devze.com 2023-01-20 11:39 出处:网络
in my application, I have a menu which is a partial (_menu.php) I need in my menu which is on the entire application, to have access to that :

in my application, I have a menu which is a partial (_menu.php)

I need in my menu which is on the entire application, to have access to that :

$this->user = $this->getUser()->getGuardUser();
$this->unread = Doctrine::getTable('sfSocialMessageRcpt')->countUnreadM开发者_开发知识库essages($this->user);

But how to create an action for my partial which is rendered in the entire application ?

Thanks


ok, i used components instead. it fixed my problem

0

精彩评论

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