public function getLayoutPath() { if ($this->useAppLayoutPath) { $this->setLayoutPath('@app/views/' . $this->id . '/layouts'); } return parent::getLayoutPath(); }