Reputation: 544
I followed this tutorial with only one difference. Instead of naming it hello.php, I named it welcome.php. The sources of my files are identical to that of the tutorials, and they are in the correct paths. What could cause this?
I am referencing it with 'kohana/index.php/welcome' as per the tutorial.
Upvotes: 3
Views: 6491
Reputation: 2151
You have to change your controller's name to Welcome instead of Hello
Class Controller_Welcome extends Controller {
public function action_index()
{
echo 'hello, world!';
}
}
I guess you forgot to change the controller name?
Upvotes: 4
Reputation: 7505
I named it welcome.php. The sources of my files are identical to that of the tutorials
if that is so, you need to rename your controller Controller_Welcome instead of Controller_Hello
Upvotes: 2