View Single Post
  #4  
Old 09-23-2014, 06:52 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 22,288
IntoRain is on a distinguished road
Default

I haven't worked with 1.3.3 in a while now and I don't remember having that error x.x but the page building should be almost the same, for example:

PHP Code:
<?php

class ContestController extends AppController{

    const 
PARAM "contest";
    
    private 
$view;
    private 
$subController;
    
    public function 
__construct(){
           
parent::__construct("member");
           
$mysidia Registry::get("mysidia");
           
                   if(
$mysidia->input->action() != "enter" and $mysidia->input->action() != "index" and !$mysidia->input->get("contest")){
                        throw new 
InvalidIDException("Invalid Action");
        }    
      }
    
    public function 
index(){
        
$mysidia Registry::get("mysidia");
        
$document $mysidia->frame->getDocument();
                
$document->setTitle("Contest");
    
            
        
//stuff
        
                 
    
}
    
        public function 
enter(){
            
$mysidia Registry::get("mysidia");
            
$document $mysidia->frame->getDocument();
            
$document->setTitle("Contest");
            
            
//stuff                  
        
    
}
}
----

Did you try making the content simple before building the form to see if it outputs anything? An alternative way of doing forms is in register.php

Do the other pages work (/image/upload for example) or also spit out an Internal Server Error?
__________________


asp.net stole my soul.
Reply With Quote