Skip to content

Instantly share code, notes, and snippets.

@shanestillwell
Created December 27, 2010 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanestillwell/756521 to your computer and use it in GitHub Desktop.
Save shanestillwell/756521 to your computer and use it in GitHub Desktop.
Create an instance of Zend_Auth with the user_id you want.
protected function _logIn($id = 4)
{
$user = Doctrine_Core::getTable('Default_Model_User')->find(4);
Zend_Auth::getInstance()->getStorage()->write($user);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment