i want run transparently method before controllers. how need this?
protected function getfrontbreadcrumb() { $breadcrumbs = $this->get("white_october_breadcrumbs"); $breadcrumbs->additem("Главная", $this->get("router")->generate("front")); }
you must use event listeners :)
http://symfony.com/doc/current/book/internals.html#events
be careful not ask questions answered on stack overflow ^^
Comments
Post a Comment