Класс Request Kohana
Дата: 27-09-2013// From within a controller $this->request->action(); $this->request->controller(); $this->request->directory(); //Can be used anywhere Request::current()->action(); Request::current()->controller(); Request::current()->directory(); Таким образом мы можем в любом месте нашего приложения определить текущий контроллер, action и директорию.
Категория: PHP