It looks like you're new here. If you want to get involved, click one of these buttons!
//$this->load->view('auth/login_form', $data);
$page_init = array('location' => 'auth/login');
$this->load->module_library(FUEL_FOLDER, 'fuel_page', $page_init);
$fuel_page->add_variables($vars);
$fuel_page->render();
<div style="float: left; width: 40%; padding: 0 5px;"><a href="auth/login">Sign In</a></div>
<div style="float: left; width: 40%; padding: 0 5px 0 10px;"><a href="auth/register">Register</a></div>
Comments
I have a view that needs to be accessed only by logged in users.
In my controller I put this code:
function index() { $this->load->library('Tank_auth'); if($this->tank_auth->is_logged_in()): ... }
When I browse the page I get this error:
Severity: Notice
Message: Undefined index: Tank_auth
Filename: fuel/Loader.php
Line Number: 206
Fatal error: Cannot access empty property in C:\wamp\www\clarensads\fuel\application\third_party\fuel\Loader.php on line 215
Can someone please give me an example of how to implement Tank_auth with fuel cms?
Thank you
$this->load->library('tank_auth')
And not Tank_authNow how do I call the login_form within the main layout.
Why is it loading the file without the header and footer blocks?
http://www.getfuelcms.com/forums/discussion/comment/2120/#Comment_2120
Thank you
The tank_auth is working, but when a controller of mine redirects to the login form it does not get the main layout.
I have added this
fuel_set_var('layout', 'main')
to the login_form file but still, no layout.How do I add the main layout to all the tank_auth views?
Thank you.