Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Writing an Application
I'm following the "A Quick-Start Guide to Writing Applications in Vanilla" guide and got to the point of a "HomepageController" but some of the code is missing, so I guessed at:
<?php if (!defined('APPLICATION')) exit();
class HomepageController extends WelcomeController {
public function index() {
Render();
}
}
Sadly when I navigate to /welcome/homepage I get a "Page Not Found", am I doing something wrong or is it possible my application is not set up right?
Thanks for any help.
<?php if (!defined('APPLICATION')) exit();
class HomepageController extends WelcomeController {
public function index() {
Render();
}
}
Sadly when I navigate to /welcome/homepage I get a "Page Not Found", am I doing something wrong or is it possible my application is not set up right?
Thanks for any help.
Tagged:
0
Best Answer
-
sahotataran ✭✭✭well then you will have to check through each and every step again
and i think you first line should be if you are making an application 'welcome'
class WelcomeController extends HomePageController {There was an error rendering this rich post.
0
Answers
<?php if (!defined('APPLICATION')) exit(); ?> <br /> <?php class HomepageController extends WelcomeController { public function index() { Render(); } } ?>
note -
can not go as such in php
There was an error rendering this rich post.
There was an error rendering this rich post.
and i think you first line should be if you are making an application 'welcome'
class WelcomeController extends HomePageController {
There was an error rendering this rich post.
Thanks.