Zend mvc and handling admin vs user

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

Zend mvc and handling admin vs user

by jjsanders :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?


Parent Message unknown Re: Zend mvc and handling admin vs user

by Pádraic Brady :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You're looking for Zend_Acl ;)

Read the documentation for the component and run a Google search for related tutorials. I just published own as part of the ongoing Zend Framework Blog Application Tutorial series over on

http://blog.astrumfutura.com

Best regards,

Paddy
 
Pádraic Brady

http://blog.astrumfutura.com
http://www.patternsforphp.com
OpenID Europe Foundation Member-Subscriber


----- Original Message ----
From: Jigal sanders <jigalroecha@...>
To: fw-mvc@...
Sent: Friday, May 9, 2008 5:33:27 PM
Subject: [fw-mvc] Zend mvc and handling admin vs user

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?

Pádraic Brady

http://blog.astrumfutura.com
http://www.patternsforphp.com
OpenID Europe Foundation - Irish Representative

Re: Zend mvc and handling admin vs user

by jjsanders :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Paddy,
 
What a wonderful blog. Good to see how you take the time to explain so well how it all works. To understand it all well i think I should work through all your tutorials. But I'm afraid there's not enough time for that.
I saw you already took care of the bootstrap file which in my case became polluted because there's just too much in there. So I think this will be the first thing I will do to improve my webapplication. And while I was implementing this I have  the following problem:
 
I have created a bootstrap file. It all works fine. The only problem is that my form's aren't loaded anymore. For example when I go to http://217.149.198.122/login there should be a form loaded. But It' isn't there (it was there previously.)
This is the code in my loginController:
 
public function indexAction(){
     //Load Login form
  $this->view->title = "inloggen";
        $this->view->bodyCopy = "<p >vul dit formulier zo volledig mogelijk in.</p>";
  $form = new forms_LoginForm();
  $this->view->form = $form;
  }
 

Thanks for your help
 
On Fri, May 9, 2008 at 8:07 PM, Pádraic Brady <padraic.brady@...> wrote:
You're looking for Zend_Acl ;)

Read the documentation for the component and run a Google search for related tutorials. I just published own as part of the ongoing Zend Framework Blog Application Tutorial series over on

http://blog.astrumfutura.com

Best regards,

Paddy
 
Pádraic Brady

http://blog.astrumfutura.com
http://www.patternsforphp.com
OpenID Europe Foundation Member-Subscriber


----- Original Message ----
From: Jigal sanders <jigalroecha@...>
To: fw-mvc@...
Sent: Friday, May 9, 2008 5:33:27 PM
Subject: [fw-mvc] Zend mvc and handling admin vs user

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?




LightInTheBox - Buy quality products at wholesale price