KONTROLER w application/classes/controller:
class Controller_Home extends Controller { public function action_index() { $view = new View('home'); $view->render(true); } }
WIDOK w application/views:
Kod
Przykładowa treść
Jednak otrzymuję błąd:
Kohana_View_Exception [ 0 ]: The requested view views/home could not be found
SYSPATH/classes/kohana/view.php [ 252 ] 247 */ 248 public function set_filename($file) 249 { 250 if (($path = Kohana::find_file('views', $file)) === FALSE) 251 { 253 ':file' => $file, 254 )); 255 } 256 257 // Store the file path locally
Nie wiem jak to poprawić, nie widzi mi widoku, ale co mam zrobić ? Próbowałem dać kontroler w application/controller ale nie pomogło