Zend and AJAX

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Postby John Cartwright » Tue Mar 27, 2007 1:20 am

The Ninja Space Goat wrote:
Jcart wrote:
The Ninja Space Goat wrote:nope it's right just where it is :)


Not always.. I like to create a map of my application mixed in with user permissions and implement it either using the init() function in controller parent class automatically, or even through a plugin which could redirect if their session permission did not meet the requested action.


yea I've seen something sort of similar to that before... where privileges to controllers / actions were mapped back to a database table that was checked in my application controller and if the user doesn't have access, they never even make it to the controller/action. That is something I may implement for a system I'm working on right now, but for right now, this method is fine.


Yup, nothing wrong with the method you've used. I would say it's simply a matter of the needs of the application.
Code: Select all
if ($toBe || $notToBe) echo 'That is the question'

ATTENTION: Please read the Forum Rules, and take the Forum Tour before posting!
User avatar
John Cartwright
Extreme Guru Moderator
 
Posts: 10583
Joined: Tue Dec 23, 2003 3:10 am
Location: Toronto

Previous

Return to PHP - Theory and Design

Who is online

Users browsing this forum: No registered users and 1 guest