Welcome Guest, Not a member yet? Register   Sign In
The Auth Library 1.0.3 - The Easiest Auth Library for CodeIgniter
#65

[eluser]the1rob[/eluser]
Is there any known breakage with Auth library? In particular, benchmark?

I installed CI stock, then the Auth Lib 1.0.2. Just for the sake of testing Auth out, I extended the welcome controller.

err...changed it like so:

Code:
class Welcome extends Application
{

    function Welcome()
    {
        parent::Application();    
    }
    
    function index()
    {
    
        
        $this->load->view('welcome_message');
    }
    
}

Then added this to the welcome_message.php view...


Code:
<p> <a href="http://www.examplesite.com/index.php/admin/login">Login</a></p>
<p> <a href="http://www.examplesite.com/index.php/admin/register">Register</a></p>
<p> You are currently
&lt;?
    if ($this->auth->logged_in())
        {
            echo "ARE ";
        }
        else
        {
            echo "ARE NOT ";
        }
?&gt;

logged in.</p>

&lt;?php echo $this->benchmark->elapsed_time();?&gt;

The Auth code works fine. But the last line doesn't work anymore. Just shows "{elapsed_time}" in the final html output.

Am I missing something? I've only been playing with CI for a few days now, so please be gentle if I missed something obvious. =)


Messages In This Thread
The Auth Library 1.0.3 - The Easiest Auth Library for CodeIgniter - by El Forum - 03-29-2009, 02:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB