예제 #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();
 }