i cant use any extension
Posted 16 May 2009 - 06:30 AM
i m beginner in this framework and im trying to use the editor extension
or the fckeditor extension but nothing work with me
can any buddy Please show me a detailed steps of installing extension
i have for example this error in the fckeditor when i try to put the editor in the protected/views/post/_form.php
"model" have to be set!
The above error occurred when the Web server was processing your request.
Posted 16 May 2009 - 08:24 AM
and in trying to add the fckeditor to the blog example which is came with the demo
1- extracted the extension in /protected/extensions/ As fckeditor [folder]
2- as i want to use it in the posting i added this code to /protected/views/post/_form.php
"config" => array("EditorAreaCSS"=>Yii::app()->baseUrl.'/css/index.css',),
) ); ?>
if its important im using xampp on linux os ... and thank you for help
Posted 16 May 2009 - 12:57 PM
it`s look fine. I try this cody by me and work. Make sure that you do not have the error by entering the URL to the editor in browser, ie:
and first of all check the web server logs. Maybe you have wrong permissions to the directory?
Posted 18 May 2009 - 01:55 PM
You have to set this configuration parameter.
In http://www.yiiframew...start.first-app you can read how to create a Datamodel. That model must exist. It must be a valid entry from the Databease (should be valid if you only edit the [tt]/protected/model/<YOUR_MODEL>/update.php[/tt])