Welcome Guest, Not a member yet? Register   Sign In
Problem with building the constructor
#1

[eluser]spaceflunk[/eluser]
Hey
I am very new to this. I have this code:

Code:
<?php

class Pos extends Controller {
    
//    function Pos();
//    {
//        parent::Controller();
//        
    //    $this->load->helper('url');
        
//    }
    
    
    function index()
    {
        $data['title'] = "RJ Pos System - Start";
        $this->load->view('pos_start', $data);
        
    }
    
    function nytSalg()
    {
        
        $data['title'] = "RJ Pos System - Nyt Salg";
        $this->load->view('nytSalg_view', $data);
        
                
    }
    
    
    
    
    
}

?>

But as soon as i remove the commentary outlining from the constructor, my page is totally empty. No errors, no nothing. Not even in the log. Am i forgetting something?

Cheers!
#2

[eluser]cahva[/eluser]
Code:
//    function Pos();
Remove ; from the end




Theme © iAndrew 2016 - Forum software by © MyBB