Re: PHP MVC

From: Date: Thu, 30 Mar 2006 06:09:37 +0000
Subject: Re: PHP MVC
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-232887@lists.php.net to get a copy of this message
On Thu, 2006-03-30 at 15:58 +1000, SLaVKa wrote: > So you only have one level of actions/views , what happens in a > situation where the page you are loading has various sections which want > either displayed or hidden? > We use a finely grained permissions system. ACL and groups will determine what the user will see on the final rendering of the templates. The actions are simple, things like "backupdb" and "view". The permissions system then takes over and will either allow/deny the user to proceed. In many of our modules, we use something along these lines: if($this->objUser->isAdmin()) { //allow the user to do something } else { //redirect the user to another action or module $this->nextAction('anotherAction', 'anotherModule'); } --Paul

« previous php.general (#232887) next »