Re: PHP MVC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux