Need more help with tank_auth

edited June 2012 in News & Announcements
I want to have a page with a login block on the left and a register block on the right, that will be called every time a user tries to access a page that requires a login.

What I did:
In my controller I have this code in the index function:
if($this->tank_auth->is_logged_in()): //Call the view file....code here else: $vars = array('page_title' => 'Login : Clarens Ads'); //$this->ci->load->view('auth/auth/login_form'); $page_init = array('location' => 'auth/auth/login_form'); $this->load->module_library(FUEL_FOLDER, 'fuel_page', $page_init); $this->fuel_page->add_variables($vars); $this->fuel_page->render();

When I call the page: localhost/mysite/test I get a blank page.

Can someone please help?

Comments

  • edited 10:03PM
    What is the name of the controller and method rendering the above code?
  • edited 10:03PM
    The name of the controller is: Postanad

    The method is: index
  • edited 10:03PM
    Have you rerouted mysite/test to postanad/index?
  • edited 10:03PM
    Ok, I was confused here.

    There is no test, there is only mysite/postanad

    Calling mysite/postanad - I get blank page
  • edited 10:03PM
    Might help to post your full controller.

    Any different calling mysite/postanad/index?

    If not can you output anything in the classes contructor?
Sign In or Register to comment.