[fw-general] Re: problem on routing

2013-09-09 Thread nhchola
/application/index/add ==> also not working, giving the same 404 error -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/problem-on-routing-tp4660931p4660944.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: fw-general@lists.ze

Re: [fw-general] Re: zf2 - zend acl dynamic assertions; when/how to load the resource?

2013-09-09 Thread Richard Jennings
Only one ACL config / instance required, with the FQCN of the Entity the Resource, the action (edit/update ..) the Privilege, and the role dynamically determined by the users association to the blog post the Role. If you are using Doctrine ORM I believe the events are already there http://docs.doct

[fw-general] Re: zf2 - zend acl dynamic assertions; when/how to load the resource?

2013-09-09 Thread Martijn Korse
Hi Richard Sounds interesting and where it concerns database _changes_ i think it's also possible. I already have an abstract controller class with a method "writeDbChanges()" that takes a Zend-Form as argument. This form as a doctrine entity bound to it, so i see a lot of possibilities there. Th

Re: [fw-general] Re: zf2 - zend acl dynamic assertions; when/how to load the resource?

2013-09-09 Thread Richard Jennings
Hi I would bind the creation/update/editing of your models to an ACL checking listener which can derive ACL parameters from the model(s) associations. On Mon, Sep 9, 2013 at 11:01 AM, Martijn Korse wrote: > Hi Michael > > Thanks for the response. However, i'm afraid it didnt really help. > Every

[fw-general] Re: zf2 - zend acl dynamic assertions; when/how to load the resource?

2013-09-09 Thread Martijn Korse
Hi Michael Thanks for the response. However, i'm afraid it didnt really help. Everything works fine, except the assertion-part. My Problem is this: 1. De resource (the blog-post) is loaded in the controller. This works fine. 2. The acl-check is done _before_ the controller loads the blog-post. If

Re: [fw-general] zf2 - zend acl dynamic assertions; when/how to load the resource?

2013-09-09 Thread Michael Gooden
Well there are two ways you can do this, (well three, but we will get to that). You can do checks based on the requested route or controller and action, and do generic checks like, can a user of type 'guest' access the 'edit' action of my 'postcontroller', or if user of type 'guest' can access rou

[fw-general] zf2 - zend acl dynamic assertions; when/how to load the resource?

2013-09-09 Thread Martijn Korse
i'm creating a zend framework 2 application and i'm sort of trying to implement what is explained here: http://ralphschindler.com/2009/08/13/dynamic-assertions-for-zend_acl-in-zf The demonstration that the code works is really nice, but it doesn't really apply to how a framework (utilizing mvc) w