Exemplo n.º 1
0
 /**
  * Returns the current entity asked by the URL ('page' or 'article')
  *
  * @return array
  *
  */
 public function get_entity()
 {
     if (is_null(self::$_entity)) {
         self::$_entity = self::$ci->url_model->get_by_url(self::$ci->uri->uri_string());
     }
     return self::$_entity;
 }