Witam ponownie,
dlaczego po zmianie nazwy kontrolera Welcome na Base, oraz zmianie w pliku bootstrap.php
z
Route::set('default', '(<controller>(/<action>(/<id>)))')
->defaults(array(
'controller' => 'Welcome',
'action' => 'index',
));
na
Route::set('default', '(<controller>(/<action>(/<id>)))')
->defaults(array(
'controller' => 'base',
'action' => 'index',
));
pojawia mi się taka oto strona z komunikatem błędu?
View_Exception [ 0 ]: The requested view template could not be found
SYSPATH\classes\Kohana\View.php [ 257 ]
252 */
253 public function set_filename($file)
254 {
255 if (($path = Kohana::find_file('views', $file)) === FALSE)
256 {
257 throw new View_Exception('The requested view :file could not be found', array(
258 ':file' => $file,
259 ));
260 }
261
262 // Store the file path locally
Przecież podmieniłem tylko nazwę kontrolera i w takim wypadku powinna pojawiać się strona początkowa kohany czyli "Hello World" ?
Base.php wygląda tak:
<?php defined('SYSPATH') or die('No direct script access.');
class Controller_Base extends Controller_Template {
public function action_index()
{
$this->response->body('hello, world! ttttttttt');
}
} // End Welcome
?>