Example #1
0
 /**
  * set default method and id value
  */
 public function __construct()
 {
     $uri = Uri::getPathAsArray();
     $this->setName('dashboard');
     if (isset($uri[0])) {
         $this->setName($uri[0]);
     }
     $this->setMethod(self::_list);
     if (isset($uri[1])) {
         $this->setMethod($uri[1]);
     }
     if (isset($uri[2])) {
         $this->setID($uri[2]);
     }
 }