Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2013, 07:57 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,857
Infernette is on a distinguished road
Default 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?
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #2  
Old 06-10-2013, 06:58 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 333,076
Hall of Famer is on a distinguished road
Default

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.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Longer Custom Pages through the AdminCP? Kyttias Questions and Supports 1 12-15-2014 11:23 AM
Custom pages redirect to index Vaporman87 Questions and Supports 6 02-21-2014 06:57 PM
Certain Pages Redirect? Brookreed Questions and Supports 11 08-19-2013 01:12 AM
Make users make their own website on your site ... kitty08 Mys v1.2.x Mods 0 10-27-2011 03:49 PM
custom pages RoconzaArt Questions and Supports 2 03-15-2011 12:10 AM


All times are GMT -5. The time now is 03:16 AM.

Currently Active Users: 9781 (0 members and 9781 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636