2009年7月23日星期四

Re: [fw-mvc] FKCeditor

Roozbeh Matloobi wrote:
> Hi,
>
> I installed a editor named FCKeditore. and I want to use for CMS
> interface.
> $oFCKeditor = new FCKeditor('FCKeditor1') ;
> var_dump($oFCKeditor);
> //print($oFCKeditor);
> $oFCKeditor->BasePath = $this->baseurl.'/library/fckeditor/' ;
> $oFCKeditor->Value = '<p>This is some <strong>sample text</strong>.
> You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
> var_dump($oFCKeditor->Value);
> *$oFCKeditor->Create() ;*
>
> but I have this bug
> *Fatal error*: Uncaught exception
> 'Zend_Controller_Dispatcher_Exception' with message 'Invalid
> controller specified (library)' in
> C:\roozbeh\repo\newskool\repo\library\Zend\Controller\Dispatcher\Standard.php:241
> Stack trace: #0
> C:\roozbeh\repo\newskool\repo\library\Zend\Controller\Front.php(934):
> Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
> Object(Zend_Controller_Response_Http)) #1
> C:\roozbeh\repo\newskool\repo\htdocs\index.php(112):
> Zend_Controller_Front->dispatch() #2 {main} thrown in
> *C:\roozbeh\repo\newskool\repo\library\Zend\Controller\Dispatcher\Standard.php*
> on line *241
>
> much appriciate for any comments.
>
> Thanks,
> Roozbeh
> *
>
Your FCKEditor directory needs to be in public rather than library for
it to work, as it has javascript and html dependencies that wont be
available outside of the public.

Hope that helps

Nick

没有评论: