1

一个在本地看起来不错的应用程序在现场引发了以下异常:

CException

Alias "application.extensions.TheCKEditor.theCKEditorWidget" is invalid. 
Make sure it points to an existing PHP file and the file is readable. 

代码:

   <?php $this->widget('application.extensions.TheCKEditor.theCKEditorWidget',array(
        'model'=>$model,                # Data-Model (form model)
        'attribute'=>'wordMeaning',         # Attribute in the Data-Model
        'height'=>'400px',
        'width'=>'100%',
        'toolbarSet'=>'Full',          # EXISTING(!) Toolbar (see: ckeditor.js)
        'ckeditor'=>Yii::app()->basePath.'/../assets/ckeditor3.6.5/ckeditor.php',
                                        # Path to ckeditor.php
        'ckBasePath'=>Yii::app()->baseUrl.'/assets/ckeditor3.6.5/',
                                        # Relative Path to the Editor (from Web-Root)
        //'css' => Yii::app()->baseUrl.'/css/index.css',
                                        # Additional Parameters
    ) ); ?>  

任何的想法 ?

4

2 回答 2

2

检查路径 ./protected/extensions/TheCKEditor/theCKEditorWidget。还要检查路径 TheCKEditor 的大小写

于 2012-12-27T05:23:00.577 回答
1

扩展文件名为TheCKEditorWidget.php,它被称为theCKEditorWidget.php

更改案例解决了我的问题。

于 2012-12-27T04:57:35.070 回答