View Single Post
  #2  
Old 07-16-2014, 09:53 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,427
IntoRain is on a distinguished road
Default

1.3.3? This is the pattern for a page:

PHP Code:
<?php

//substitute (PageName) with your page, for example if it's yoursite.com/quests you will name it QuestsController
class (PageName)Controller extends AppController{

    public function 
__construct(){//check other files to check their constructor function, for permissions if you need
        
parent::__construct("member");    
    }
    
//this will be your /quests page's content
    
public function index(){
        
$mysidia Registry::get("mysidia");
        
$document $mysidia->frame->getDocument();
        
$document->setTitle("title");//gotta have a title!
        
    
}

/*any other public function you add that has a title like in index(), will work as a page.
 If you add a public function like:

public function reward(){
$mysidia = Registry::get("mysidia");
        $document = $mysidia->frame->getDocument();
        $document->setTitle("title");//gotta have a title!
}

the page will be yoursite.com/quests/reward
*/
    
}
?>
This stays in the public_html folder pretty much. Create a file in class folder when you want to create a new object or something
__________________


asp.net stole my soul.

Last edited by IntoRain; 07-16-2014 at 10:02 PM.
Reply With Quote