Welcome Guest, Not a member yet? Register   Sign In
Blank Page Problem
#1

[eluser]extra_rice[/eluser]
i've searched the entire forum but the solutions doesn't seem to work for me...

this is a function in my controller and the method redirect to user_list() gives me a blank white page...
Code:
function user()
    {
        $method = $this->uri->segment(3);
        $param = $this->uri->segment(4);
        
        if ( !empty($method) )
        {
            switch ( $method )
            {
                case 'login':
                    $this->user_login();
                break;

                case 'list':
                    $this->user_list($param); //param here is offset
                break;

            }
            
            exit;
        }
        else
        {
            $this->load->view('login');
        }
    }

    function user_list($offset=0)
    {
        $this->load->library('pagination');

        $cf['base_url'] = 'http://mysite.com/admin/user/list/';
        $cf['total_rows'] = $this->user->getCount();
        $cf['per_page'] = '10';

        $this->pagination->initialize($cf);

        $data['list'] = $this->user->getList(10, $offset);
        $data['count'] = $this->user->getCount();

        $this->load->view('list', $data);
    }

anybody know what im doing wrong?

UPDATE: when i do a http://mysite.com/admin/user_list/ it works... wonder why my current setup doesn't...


Messages In This Thread
Blank Page Problem - by El Forum - 07-09-2008, 09:05 AM
Blank Page Problem - by El Forum - 07-09-2008, 09:40 AM
Blank Page Problem - by El Forum - 07-09-2008, 08:31 PM
Blank Page Problem - by El Forum - 07-09-2008, 10:58 PM
Blank Page Problem - by El Forum - 07-10-2008, 12:17 AM
Blank Page Problem - by El Forum - 07-10-2008, 07:20 AM
Blank Page Problem - by El Forum - 07-10-2008, 08:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB