Installing / Integrate FCKEditor as form_helper extension. |
[eluser]Josepzin[/eluser]
I have used this in CI 1.7, but i do same changes... I want to load the fckeditor ONLY when i use it, then i have created a independent helper into my application. I have used the 3 steps from the begin of this post, but i do same modifications... Step 1. Copy the FCKeditor files into my aplication plugins folder: application\plugins\fckeditor Step 2. In my config.php i have changed this line from the original: Code: $config['fckeditor_basepath'] = 'application/plugins/fckeditor/'; // without the first "/" Step 3. I have created a helper fckeditor_helper.php in my aplication helper folder: application\helpers\fckeditor_helper.php And i have changed this line: Code: // require_once( $_SERVER["DOCUMENT_ROOT"] . $fckeditor_basepath. 'fckeditor.php' ); <<<< BEFORE Becouse my web is in a subfolfer, and all my webs are in subfolders when are in my local computer. ej: http://localhost/proyect1, http://localhost/proyect2, etc... Usage: Add in the controller: Code: $this->load->helper('fckeditor'); |
Welcome Guest, Not a member yet? Register Sign In |