开发者

symfony : how to execute an action via a _partial

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜