Defining a function to a Row
Posted
by Siedrix
on Stack Overflow
See other posts from Stack Overflow
or by Siedrix
Published on 2010-03-19T04:38:46Z
Indexed on
2010/03/19
4:41 UTC
Read the original article
Hit count: 164
zend-framework
Hi, im making an application and i need to implement diferent level of user permits.
I coul have the function
$this->view->users->hasPermits($this->view->user);
By declaring a function on the model, an things could be easy to implement. But i would like to be able to have the next function doing the same:
$this->view->user->hasPermits();
Is there a way to do this? do i need to extend the Zend_Db_Table_Row class? any ideas?
© Stack Overflow or respective owner