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'); }
protected function generateModel($className) { parent::generateModel($className); $this->rules[$className . '\\Model']['instanceOf'] = 'Kriss\\Core\\Model\\ArrayModel'; }