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 9:04AM
    What is the name of the controller and method rendering the above code?
  • edited 9:04AM
    The name of the controller is: Postanad

    The method is: index
  • edited 9:04AM
    Have you rerouted mysite/test to postanad/index?
  • edited 9:04AM
    Ok, I was confused here.

    There is no test, there is only mysite/postanad

    Calling mysite/postanad - I get blank page
  • edited 9:04AM
    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.