Cannot Make custom .php pages on site- Redirect issue

Forum
Last Post
Threads / Messages

Infernette

CODE CODE CODE CODE CODE
Member
Joined
Jan 29, 2013
Messages
164
Points
0
Location
Where I live? I live home.
Mysidian Dollar
15,625
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?
 
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:

PHP:
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.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,278
Messages
33,127
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top