Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Cannot Make custom .php pages on site- Redirect issue (http://www.mysidiaadoptables.com/forum/showthread.php?t=4158)

Infernette 06-07-2013 07:57 PM

Cannot Make custom .php pages on site- Redirect issue
 
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:

PHP Code:

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.


All times are GMT -5. The time now is 08:19 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.