filter some data(row) in zend view
Posted
by Behrang
on Stack Overflow
See other posts from Stack Overflow
or by Behrang
Published on 2010-05-02T09:43:49Z
Indexed on
2010/05/02
9:47 UTC
Read the original article
Hit count: 323
zend-framework
|php
I have
1.Table:user(userId,userName,userGroup)
2.Model:userModel
3.usercontroller
there i a simple code:
Controller:
class UserController extends Zend_Controller_Action
{
public function getuser()
{
$userModel = new userModel();
$this->view->usergroup = $userModel;
}
}
Model:
class Model_UserGroupModel extends Zend_Db_Table_Abstract { public function getuser( { $select = $this->select(); return $this->fetchAll($select); } }
view:
please tell me what code I must insert in view to only have user with specific row like user with group teacher also i use partialoop???
© Stack Overflow or respective owner