Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Model_Users
- {
- protected $tb_users;
- protected $tb_profiles;
- public function __construct()
- {
- $this->tb_users = new Zend_Db_Table('users');
- $this->tb_profiles = new Zend_Db_Table('profiles');
- }
- public function fetchAll($where="")
- {
- $rows = $this->tb_users->fetchAll(
- $this->tb_users->select()
- ->where($where)
- ->order("rating DESC")
- );
- return $rows;
- }
- }
Add Comment
Please, Sign In to add comment