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

[eluser]Adam Griffiths[/eluser]
[quote author="Bionicmaster" date="1238034878"]hi, in function to avoid mandatory use of MY_Controller, I tried with your callback functions inside Auth class, and just call it from Controller as the same name:
<code>
function register_user()
{
return $this->auth->register('admin/register_user');
}
</code>

and then, Application is optional, because you can implement this or another personal controller of your choice.[/quote]

Could you provide clarification of how you did this? Either code example or a bit more detail?

I was under the impression you couldn't have callbacks within libraries. Plus, the register function does not ned a parameter, or is that what you added?

Thanks.


Messages In This Thread
The Auth Library 1.0.3 - The Easiest Auth Library for CodeIgniter - by El Forum - 03-25-2009, 04:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB