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
精彩评论