After discussing this with the creators of the editor, a
partial conclusion
is that because of the structure of the editor, the files
can not be inside
the application, but have to reside in the public folders.
So I moved the
wysiwygPro folder to:
application
library
Zend
views
helpers
Editor.php
www
_editor
wysiwygPro
index.php
However, calling the:
require_once('../editor/wysiwygPro/wysiwygPro.class.php')
;
Will generate an error.
Can anyone tell me how I can include the class file that is
outside the
application? It is called from:
application
library
Zend
views
helpers
Editor.php
etopian wrote:
>
> Ok, I've got a little further with this, so here's more
details on the
> question.
>
> I've created a View Helper called Editor, this should
create the editor
> when calling the helper. What I run into now is that
the framework router
> catches the call to the editor and gives an error
message:
>
> "Uncaught exception
'Zend_Controller_Dispatcher_Exception' with message
> 'Invalid controller specified (www) in
>
/home/7373-61/etopiademo.nl/application/library/Zend/Control
ler/Dispatcher/Standard.php:249"
>
> And this is the code for the helper:
>
> <?
>
>
require_once('library/wysiwygPro/wysiwygPro.class.php') ;
>
>
> class Zend_View_Helper_Editor {
> public function Editor($instance = 'content',
$value='Enter text here',
> $height= 600, $width=600){
> $view=$this->view;
>
> $editor = new wysiwygPro();
>
> $editor->editorURL =
>
'/www/etopiademo.nl/HTML/application/library/wysiwygPro/';
>
> $editor->loadPlugins(array('tagPath',
'eConfig'));
>
> $editor->name = $instance;
> $editor->width = $width;
> $editor->height = $height;
> $editor->value = $value;
>
> $editor->display();
>
> }
>
> public function setview(Zend_view_Interface
$view){
> $this->view = $view;
> return $this;
> }
>
>
> }
>
>
> Can anyone tell me what needs to be done to get this
working? Do I have to
> add a rule to the .htaccess?
>
>
>
>
> etopian wrote:
>>
>> Hi,
>>
>> I'm trying to get wysiwygPro to work inside a Zend
Framework application.
>> So far I've written a view helper, which correctly
calls the wysiwygPro
>> class, but will not display the editor. This has
probably got to do
>> something with the WPRO_EDITOR_URL or the
editorURL. The directory
>> structure used is as follows:
>>
>> application
>> library
>> wysiwygPro
>> Zend
>> views
>> helpers
>> Editor.php
>> www
>> index.php
>>
>>
>> Did anyone else successfully implement a wysiwygPro
editor in Zend
>> Framework? Or can anyone tell me how to get it
working?
>>
>> Thanks!
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.
com/how-to-implement-wysiwygPro-into-Zend-Framework-tp175299
65p17751126.html
Sent from the Zend Framework mailing list archive at
Nabble.com.
|