Advertisement
dragonbe

Untitled

Mar 7th, 2011
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1.     public function getDbUsers()
  2.     {
  3.         $user = new Application_Model_DbTable_User();
  4.         $userList = $user->fetchAll(null, 'name');
  5.         foreach ($userList as $user) {
  6.             $this->addUser(new Application_Model_User(
  7.                 $user->name, sprintf('http://twitter.com/%s', $user->twitter)));
  8.         }
  9.         return $this->getUsers();
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement