Yii抛出异常

时间:2012-12-26 04:36:08

标签: yii ckeditor yii-extensions

一个应用程序看起来很好,在本地抛出我的现场例外:

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
    ) ); ?>  

有什么想法吗?

2 个答案:

答案 0 :(得分:2)

检查路径./protected/extensions/TheCKEditor/theCKEditorWidget。还要检查路径TheCKEditor

的大小写

答案 1 :(得分:1)

扩展程序文件名为 TheCKEditorWidget.php ,其名称类似于 theCKEditorWidget.php

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