CodeIgniter Forums
controller not working live, but works on MAMP. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: controller not working live, but works on MAMP. (/showthread.php?tid=33112)



controller not working live, but works on MAMP. - El Forum - 08-16-2010

[eluser]Unknown[/eluser]
Hi guys,

I have a very weird problem. I built an application using codeigniter, and have just done a live testrun.

However, while all of my other controllers work without any issue, there is one that doesn't load (as in, it just loads a white page without errors). This controller works without problems on my local installation. This is the constructor and index (there are a bunch of other functions as well, but none of them work when called):

Code:
<?php
class Beheer extends Controller {
    function Beheer()
    {
        parent::Controller();    
        $this->load->library(array('Erkanaauth', 'session'));
        $this->load->helper('form');
    }
    
    function index()
    {
        $this->authorize();
        $data['productcats'] = $this->crud_model->getAll('productcat');  
        $this->load->view('beheer/beheerView', $data);
    }

I have tried doing this:
Code:
<?php
class Beheer extends Controller {
    function Beheer()
    {
        parent::Controller();    
    }
    
    function index()
    {
     echo "test";
    }

But that didn't work either. I am kind of dumbfounded as to what the problem could be.
I also tried running it without using .htaccess to rewrite the url (so with index.php in the url and no htaccess).

Any ideas as to what this could be?


controller not working live, but works on MAMP. - El Forum - 08-16-2010

[eluser]Unknown[/eluser]
Solved it. Tried deleting this thread, but cant Smile. Thanks though!