Re: Question about dividing user /administation pages

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Question about dividing user /administation pages

by Andrew Sledge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jigal,

The functionality you are looking for is located in Zend_Acl.  There have been quite a few posts in relation to using it and there are numerous how-to's out there.  Take a look at the listserv archive at http://framework.zend.com/archives.  Also, check out the following resources that I have found useful:

http://framework.zend.com
http://weierophinney.net/matthew/
http://www.zfforums.com/

On Fri, May 9, 2008 at 11:11 AM, Jigal sanders <jigalroecha@...> wrote:
Hello everyone.
 
I would like to ask how do you divide your admin pages and user pages.
For example, lets say you have a blog. The user can only see the posts on the blogs. But the Administrator can see the posts but can also edit them and create new posts.
 
So how would you divide this up into your mvc?

--
Met vriendelijke groet,

Jigal Sanders
A.J. Ernststraat 739
1082 LK Amsterdam
Mobiel: 06-42111489



--
Andrew Sledge

Re: Question about dividing user /administation pages

by jjsanders :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks,

I have a question about this.
Please let me explain:

I have two modules: blog and administration. The administration module is accessible of admins only and the blog module for guests and registered users.
Lets say that in my blog module i have a model with a function which selects information about a blog entry from the database. An admin should also be able to use this function. The only problem is that from the admin module i can't get to the blog functions in its model.

How would you address this problem?

On Fri, May 9, 2008 at 7:48 PM, Andrew Sledge <andrew.j.sledge@...> wrote:
Hi Jigal,

The functionality you are looking for is located in Zend_Acl.  There have been quite a few posts in relation to using it and there are numerous how-to's out there.  Take a look at the listserv archive at http://framework.zend.com/archives.  Also, check out the following resources that I have found useful:

http://framework.zend.com
http://weierophinney.net/matthew/
http://www.zfforums.com/


On Fri, May 9, 2008 at 11:11 AM, Jigal sanders <jigalroecha@...> wrote:
Hello everyone.
 
I would like to ask how do you divide your admin pages and user pages.
For example, lets say you have a blog. The user can only see the posts on the blogs. But the Administrator can see the posts but can also edit them and create new posts.
 
So how would you divide this up into your mvc?

--
Met vriendelijke groet,

Jigal Sanders
A.J. Ernststraat 739
1082 LK Amsterdam
Mobiel: 06-42111489



--
Andrew Sledge



--


Re: Question about dividing user /administation pages

by Daniel Skinner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jigal,

I think you are approaching the problem from the wrong direction.

The model that represents Blog is one model, which, as well as
supporting 'view' functionality, should also provide administrative
functionality. Then, apply an ACL implementation of sorts to the Blog
module so that only people who can authenticate as an administrator are
able to make use of the administrative functions of the Blog model.

So, in summary, Blog is a single domain model, a single module to which
access to functionality is controlled by an ACL (in the controller).

Daniel

Jigal sanders wrote:

> Thanks,
>
> I have a question about this.
> Please let me explain:
>
> I have two modules: blog and administration. The administration module
> is accessible of admins only and the blog module for guests and
> registered users.
> Lets say that in my blog module i have a model with a function which
> selects information about a blog entry from the database. An admin
> should also be able to use this function. The only problem is that
> from the admin module i can't get to the blog functions in its model.
>
> How would you address this problem?
>
> On Fri, May 9, 2008 at 7:48 PM, Andrew Sledge
> <andrew.j.sledge@... <mailto:andrew.j.sledge@...>> wrote:
>
>     Hi Jigal,
>
>     The functionality you are looking for is located in Zend_Acl.
>     There have been quite a few posts in relation to using it and
>     there are numerous how-to's out there.  Take a look at the
>     listserv archive at http://framework.zend.com/archives.  Also,
>     check out the following resources that I have found useful:
>
>     http://framework.zend.com
>     http://weierophinney.net/matthew/
>     http://www.zfforums.com/
>
>
>     On Fri, May 9, 2008 at 11:11 AM, Jigal sanders
>     <jigalroecha@... <mailto:jigalroecha@...>> wrote:
>
>         Hello everyone.
>          
>         I would like to ask how do you divide your admin pages and
>         user pages.
>         For example, lets say you have a blog. The user can only see
>         the posts on the blogs. But the Administrator can see the
>         posts but can also edit them and create new posts.
>          
>         So how would you divide this up into your mvc?
>
>         --
>         Met vriendelijke groet,
>
>         Jigal Sanders
>         A.J. Ernststraat 739
>         1082 LK Amsterdam
>         Mobiel: 06-42111489
>
>
>
>
>     --
>     Andrew Sledge
>
>
>
>
> --
>