1
執行一個動作,我有一個菜單,是部分(_menu.php)的symfony:如何通過在我的應用程序_partial
我需要在我的菜單這是對整個應用程序,能夠訪問即:
$this->user = $this->getUser()->getGuardUser();
$this->unread = Doctrine::getTable('sfSocialMessageRcpt')->countUnreadMessages($this->user);
但如何創建在整個應用程序呈現爲我部分的動作?
由於