Created
December 27, 2010 20:27
-
-
Save shanestillwell/756521 to your computer and use it in GitHub Desktop.
Create an instance of Zend_Auth with the user_id you want.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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