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.
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?
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.