View Full Version : Cannot Make custom .php pages on site- Redirect issue
Infernette
06-07-2013, 07:57 PM
I've been trying to make a battle system for my site but I have found an issue with the fact that whenever I try to access a page that I have made it redirects to the index page. I have tried to keep the 'top' part before the code the same as the other pages that work, but to no avail.
Any help?
Hall of Famer
06-10-2013, 06:58 PM
It redirects to the index page if you do not create a page with the correct controller format. Assume your file name is battle.php, it should look like this:
class BattleController extends AppController{
public function __construct(){
parent::__construct("member");
}
public function index(){
// index action for the battle page
}
}
If you try to create a page with the same format as Mys v1.3.1 or v1.3.2, you will be redirected to the index page.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.