摘要:        
一,在Yii中使用session 1,CHttpSession 与原生态php5的session使用差别是,php5使用session_start();$_session['key'] = $value; 在yii中,session已经被封装。 To start the session, call open(); To complete and send out session data, call close(); To destroy the session, call destroy(). If autoStart is set true, the session wil    阅读全文
        
            posted @ 2012-12-28 16:49
-j神-----
阅读(1534)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
1,给breadcrumbs加超链接 Php代码$this->breadcrumbs=array( 'Message'=>array('message/index'), 'HelloWorld', );$this->breadcrumbs=array(	'Message'=>array('message/index'), 'HelloWorld',);2,给breadcrumbs修改首页为中文 我目前采用的是在config/main.php中设置为zh_ch,但还有另外一种解    阅读全文
        
            posted @ 2012-12-28 16:39
-j神-----
阅读(583)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
1. % YiiRoot/framework/yiic webapp WebRoot/testdrive2.默认Yii框架的URL规则是 http://hostname/index.php?r=controllerName/actionName&id=13. $this->render('index',array('a'=>"123"));4. $hostname=Yii::app()->request->userHost; $status=$_REQUEST['status'];5. '    阅读全文
        
            posted @ 2012-12-28 12:03
-j神-----
阅读(475)
评论(0)
推荐(0)
        
        
                    
                
浙公网安备 33010602011771号