Пример #1
0
 public function preDispatch()
 {
     parent::preDispatch();
     $station_id = (int) $this->getParam('id');
     if ($station_id) {
         $this->station_id = $station_id;
         $this->station = Station::find($station_id);
         $this->view->station_id = $station_id;
         $this->view->station = $this->station;
     }
 }
Пример #2
0
 public function initialize()
 {
     parent::initialize();
 }