function index() { $inner['labels'] = array('id' => 'Id', 'name' => 'Name', 'action' => 'Action'); $this->inner = $inner; $this->index_view = 'region/index'; parent::index(); }
public function index() { $category = M('Category')->where(array('status' => 1))->select(); $tmp = array(); foreach ($category as $val) { $tmp[$val['id']] = $val['name']; } $this->category = $tmp; parent::index(); }
public function index() { parent::index('RunLog'); }