Пример #1
0
 /**
  * function to show page based on passed column name
  *
  * @param string $column 
  * @param string $page_req 
  * @return void
  * @author Andy Bennett
  */
 protected function show_view($model, $page_req)
 {
     if (!$model->loaded or !$model->status) {
         Kohana::show_404($page_req, 'common/error_404');
     }
     $data['row'] = $model;
     $data['controller'] = $this->setup['name'];
     // run the view event
     $r = array('view' => $this->setup['view'] . '_view', 'data' => $data);
     Event::run('steamcore.item_view_' . Restful::instance()->extension(), $r);
 }
Пример #2
0
 /**
  * Constructor to setup the hook
  *
  * @author Sam Clark
  */
 public function __construct()
 {
     $resful = Restful::instance();
 }