Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表单评论。我想从中获取用户 IDZend_Auth以插入我的数据库。我该怎么做?
Zend_Auth
如果Zend_Auth已实例化,则:
获取它的一个实例: $auth = Zend_Auth::getInstance();
$auth = Zend_Auth::getInstance();
获取身份验证成功时必须存储的身份: $identity = $auth->getIdentity();
$identity = $auth->getIdentity();
根据您存储的模型使用身份。