yii1 The verification code is not displayed because the accessRule blocks the verification code. The solution is to add the action of the verification code and then give it visible permissions to everyone.
Specific question:
I added in the controller:
public function filters(){ return array( 'accessControl', ); } public function accessRules(){ return array( array( 'allow', 'actions' => array('setmessage','actions'), 'users'=> array('@') ), array('deny','users'=> array('*') ) ); }
Access control is good Yes, but the verification code is not displayed?
Recommended: "yii Tutorial"
Solution:
Your accessRule blocks the verification code, you Add the verification code action there, and then give it visible permissions to everyone
The above is the detailed content of What should I do if the yii1 verification code does not display?. For more information, please follow other related articles on the PHP Chinese website!