CuteEditor for PHP & Smarty Template Engine.

Last post 08-15-2007, 7:24 PM by ewdx. 3 replies.
Sort Posts: Previous Next
  •  08-14-2007, 12:25 AM 32433

    CuteEditor for PHP & Smarty Template Engine.

    Does anybody have instructions or information on implementing the editor into a smarty template ?
     
     
  •  08-15-2007, 4:36 PM 32514 in reply to 32433

    Re: CuteEditor for PHP & Smarty Template Engine.

    ewdx,
     
    Please follow the steps below:
     
    1. Create an empty template file, name it to editor.tpl.
     
    Copy/paste the following code into this template file:
     
    <html>
    <body>
    {$RenderingCode}
    </body>
    </html>

    2. In your PHP page, copy/paste the following code:
     

    <?php
    include_once("CuteEditor_Files/include_CuteEditor.php") ;
    require 'Smarty.class.php';

    $smarty = new Smarty;
    .....

    $editor=new CuteEditor();
    $editor->ID="Editor1";
    $editor->Text="Type here..";
    $editor->FilesPath="CuteEditor_Files";
             
    $smarty->assign('RenderingCode',$editor->GetString());

    $smarty->display('editor.tpl');

    ?>

    Hope it helps.
     
    Let me know if you have any further questions.
     

     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-15-2007, 5:52 PM 32517 in reply to 32514

    Re: CuteEditor for PHP & Smarty Template Engine.

    Adam,
     
    Works Perfect, thanks....
  •  08-15-2007, 7:24 PM 32522 in reply to 32517

    Re: CuteEditor for PHP & Smarty Template Engine.

    Adam & CuteEditor Team,
     
    Just wanted to say, that we are so happy with this product, it will do everything we need, and now works perfectly within our PHP / Smarty Environments. So easy to configure, and use, and can say it is the fastest of three that we have tested.
     
    To anyone reading this post, would like to say we have no relationship with CuteEditor, and their support is just great.
     
    Keep up the good work guys and gals.
     
    Garry
    EWDX
View as RSS news feed in XML