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; } }
public function initialize() { parent::initialize(); }