http://blog.sina.com.cn/s/blog_685213e70101mo4i.html 1)首先在model文件夹中新建文件 LoginForm.php 代码如下 <?php class LoginForm extends CFormModel{ public $username; public $password; public $rememberMe; private $_identity; public function rules() { return array(…
跳转到不同module Redirect to module after login Yii $this->redirect( array('/tradesman/default/index') ) 怎么移除 URL 里的 index.php Removing index.php from URL cause 404 in yii 在webapp的根目录下添加.htaccess文件.记住是根目录(md,我看protect下有一个.htaccess就没多想,害我调整了一上午,真是sb) Rewri…