/** * Compile plain view. This can be used if not the table and id should be add by default. */ protected function compilePlainView() { if ($this->getConfigAttribute('table') === true) { $this->setConfigAttribute('table', $this->model->getProviderName()); } if ($this->getConfigAttribute('id') === true) { $this->setConfigAttribute('id', $this->model->getId()); } if ($this->getConfigAttribute('rt')) { $this->setConfigAttribute('rt', \RequestToken::get()); } if (!$this->getConfigAttribute('append')) { $href = $this->buildHref(); if ($href) { $this->view->setHref($href); } } else { $this->view->setHref(\Controller::addToUrl($this->buildHref())); } }