Reputation: 6860
An app that seems fine in local throwing me following exception on live:
CException
Alias "application.extensions.TheCKEditor.theCKEditorWidget" is invalid.
Make sure it points to an existing PHP file and the file is readable.
Code:
<?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
) ); ?>
Any idea ?
Upvotes: 1
Views: 1061
Reputation: 5207
Check path ./protected/extensions/TheCKEditor/theCKEditorWidget. Also check case of path TheCKEditor
Upvotes: 2
Reputation: 6860
The extension file name was TheCKEditorWidget.php and it was called like theCKEditorWidget.php
Changing case solved my problem.
Upvotes: 1