setLayout('layout') //The layout file. Will be \app\views\layout.php ->setYield('yield', 'error/404'); //The index yield. Will be \app\views\error\404.php return $v; //Pass the object to the engine } }