![]() |
Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#2
|
||||
|
||||
![]()
In 1.3.4, pages are divided into Controller and View. That means for each new page you need a Controller and a View file. The View is what you show to the user and the Controller is basically treating the information and passing it to the View
For example, your yoursite.com/adopt page is built using the files: adopt.php (controller) and adoptview.php (viewer). All view pages are inside view folders (there are two: one in your mysidia folder, related to player pages, and one inside admincp folder for ACP pages). To create an yoursite.com/explore page, you need to: 1) Create an explore.php file (same directory as adopt.php, account.php, etc.) with at least these contents: PHP Code:
2) Create an exploreview.php file (inside the view folder with adoptview.php, accountview.php, etc.): PHP Code:
This is also the same concept for ACP pages.
__________________
![]() ![]() ![]() asp.net stole my soul. Last edited by IntoRain; 09-23-2014 at 06:22 PM. |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating Image Folder | Abronsyth | Questions and Supports | 0 | 10-05-2014 09:12 AM |
Error when creating new levels v.1.3.3 | Hwona | Questions and Supports | 1 | 07-14-2014 02:06 PM |
Creating the actual site? | BunnyWorld | Questions and Supports | 1 | 01-05-2013 09:05 PM |
Creating my own? | konzair | Templates and Themes | 7 | 01-26-2011 03:21 AM |
[request] website creating :P | powerchaos | Webmasters Area | 3 | 04-03-2009 04:37 PM |
What's New? |
What's Hot? |
What's Popular? |