最新回答 / Totn
                                
                                                            这个是语法报错,你首先要去检查E:\WWW\blog\hyii2\frontend\web\index.php 这个文件,在第17行的语法错误如果你没有动过这个文件,那么可能是你的PHP版本不符合要求yii2要求PHP版本至少5.4
                            
                        
                        2016-12-19
                
            
                                最赞回答 / yanxiaoli
                                
                                                            RewriteEngine on ##  # 如果是一个目录或者文件,就访问目录或文件 RewriteCond %{REQUEST_FILENAME} !-d  # 如果文件存在,就直接访问文件,不进行下面的RewriteRule RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . index.php1、首先确定Apache是否加载了Mod_rewrite 模块方法: 检查 httpd.conf 中是否存在以下两段代码 (具体路径可能会有所不同,但形式基本是...
                            
                        
                        2016-12-17
                
            
                                最赞回答 / tabjin
                                
                                                            <?phpnamespace frontend\controllers;use frontend\controllers\base\BaseController;use frontend\models\PostForm;use common\models\Cats;use Yii;use yii\filters\AccessControl;use yii\filters\VerbFilter;use common\models\PostExtends;class PostController ext...
                            
                        
                        2016-12-17
                
            默认带的有每页的数量per-page 如果你不想显示该参数,设置pageSizeParam=false就好
$pages = new Pagination([
'totalCount' => $totalCount,
'pageSizeParam' => false,
]);
                $pages = new Pagination([
'totalCount' => $totalCount,
'pageSizeParam' => false,
]);
                    
                    2016-12-15
                
            视频中使用with('relate.tag, extend'),这种形式。我这里出错,with('relate.tag','extend')则可以,你们有这样错误的可以看一下
                
                    
                    2016-12-15
                
             
             
        








