system
(system)
May 16, 2009, 11:30am
1
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
…
Error 500
"model" have to be set!
The above error occurred when the Web server was processing your request.
qwerty
(qwerty)
May 16, 2009, 12:02pm
2
Hi,
could you enter the code you are using?
system
(system)
May 16, 2009, 1:24pm
3
ok im using yii 1.0.4
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
<?php $this->widget('application.extensions.fckeditor.FCKEditorWidget',array(
"model"=>$page,
"attribute"=>'content',
"height"=>'400px',
"width"=>'100%',
"fckeditor"=>Yii::app()->basePath."/../fckeditor/fckeditor.php",
"fckBasePath"=>Yii::app()->baseUrl."/fckeditor/",
"config" => array("EditorAreaCSS"=>Yii::app()->baseUrl.'/css/index.css',),
) ); ?>
thats all
if its important im using xampp on linux os … and thank you for help
qwerty
(qwerty)
May 16, 2009, 5:57pm
4
Hi,
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:
http://127.0.0.1/www…r/fckeditor.php
and first of all check the web server logs. Maybe you have wrong permissions to the directory?
system
(system)
May 16, 2009, 9:52pm
5
error 404 the page not found
and i don't have ie im using linux … also i give all the folders 777 permission
any suggestions
Ascomae
(Ckuetbach)
May 18, 2009, 6:55pm
6
Quote
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])
Christian