Welcome Guest, Not a member yet? Register   Sign In
How to use Zend ACL within CI (Matt Stones blog post)
#1

[eluser]suntrop[/eluser]
Hi there.
I want to use an ACL for my CI project and read a lot of blog and forum posts. Finally, the one by Matt Stone seems to be the best and easiest one. But I need some further help to get things started.

How do I get the resource variable to be filled with the current URL?

I don't know the Modular Extensions and what if I don't want to use it. Is there any other way?

Hope some of you can help. Thanks a lot!
#2

[eluser]osci[/eluser]
The article you posted has code that has nothing to do with HMVC, nor that it is required. The author just states that he uses HMVC to organize his application (thus create modules).

Quote:How do I get the resource variable to be filled with the current URL?
In the start of every function in your controller set what the resource is? Keep in mind that your url could change (routing), you should check for non-routed controller/method, so for controller blabla with index and other methods you would have 2 resources, blabla/index, blabla/other.
#3

[eluser]suntrop[/eluser]
Thanks for your answer.

Ok, so I don't need the extension. :-)

I thought it is better to manage the resources and permissions in the DB. But you're right. They can change and I have another place to watch what's going on.




Theme © iAndrew 2016 - Forum software by © MyBB