Welcome Guest, Not a member yet? Register   Sign In
How to use $this->access->restrict();
#1

[eluser]il_dandi[/eluser]
I've seen many example with

$this->access->restrict();

I've seen that this code is always in constructor

Can you tell me how can I use this function?? And why??

Thanks
#2

[eluser]pistolPete[/eluser]
You need to add one of the many auth libraries to your CI installation, I don't know exactly which of them has this method, but they are quite similar.
Search the "Ignited Code" forum for "auth" and you'll get many results.
#3

[eluser]xwero[/eluser]
That comes from a third party library so i suggest you find out which library it is and then we can help you.
#4

[eluser]il_dandi[/eluser]
Thanks for help me!!

This is a third party example.

Can you tell me the best solution for manage a login page and access to other pages only for logged-in users??? (I would like to use the right solution)

Thanks!!!!
#5

[eluser]il_dandi[/eluser]
Is there a solution for manage user access:
login/password
sessione for allow users to access to specific page
don't allow ussers for modify/add item as other users??? (don't allow to modify the URL for insert/update items as other users)

Thanks for help me!
#6

[eluser]pistolPete[/eluser]
[quote author="pistolPete" date="1236968683"]Search the "Ignited Code" forum for "auth" and you'll get many results.[/quote]

- http://ellislab.com/forums/viewthread/97717/
- http://ellislab.com/forums/viewthread/100280/
- http://ellislab.com/forums/viewthread/106842/
- http://ellislab.com/forums/viewthread/96433/

etc.
#7

[eluser]il_dandi[/eluser]
Thanks for help me!!

I've seen the posts!!

Can you suggest the best library to use?? (and the easiest)

I need only these features:

login/password
sessione for allow users to access to specific page
don’t allow ussers for modify/add item as other users??? (don’t allow to modify the URL for insert/update items as other users)
manage roles




Theme © iAndrew 2016 - Forum software by © MyBB