2012年3月31日

yii 实现 用户验证和rbdc

摘要: 添加文件 controllers/AdminController.php 加入动作indexpublic function actionIndex() { $username = @$_POST['username']; $password = @$_POST['password']; if (@$username && @$password) { $identity = new AdminIdentity($username, $password); if ($ide... 阅读全文

posted @ 2012-03-31 20:00 我叫王鹏飞 阅读(325) 评论(0) 推荐(0) 编辑

yii 双语实现

摘要: 模版页面增加语言连接<ul class="grid_2 right"> <li > <?php echo CHtml::link('简体中文',array('site/index','hl'=>'cn')); ?> </li> <li><?php echo CHtml::link('English',array('site/index','hl'=>'en')); ?&g 阅读全文

posted @ 2012-03-31 19:46 我叫王鹏飞 阅读(366) 评论(0) 推荐(0) 编辑

导航