Exemplo n.º 1
0
 public function addResponses()
 {
     parent::addResponses();
     $this->addResponse($this->router, 'GET', '/' . $this->prefix . '/edit/', 'edit');
     $this->addResponse($this->router, 'PUT', '/' . $this->prefix . '/', 'update');
     $this->addResponse($this->router, 'GET', '/' . $this->prefix . '/delete/', 'delete');
     $this->addResponse($this->router, 'DELETE', '/' . $this->prefix . '/', 'remove');
 }
Exemplo n.º 2
0
 protected function generateModel($className)
 {
     parent::generateModel($className);
     $this->rules[$className . '\\Model']['instanceOf'] = 'Kriss\\Core\\Model\\ArrayModel';
 }