background preloader

Tutorial

Facebook Twitter

Howto: CodeIgniter 2.1 + Ckeditor 3.6.1 + kcfinder 2.51. CI & KCFinder integration with CKEditor & how to secure it / Forums / Community / EllisLab. KCFinder Integration Guide - SunHater Projects. To link selected file(s) from KCFinder to your web applications, you should create window.KCFinder object and window.KCFinder.callBack() method for single file or window.KCFinder.callBackMultiple() for multiple files.

KCFinder Integration Guide - SunHater Projects

To avoid collisions it's recommended to add the object and method when KCFinder loads and remove them once the file(s) are selected and KCFinder is closed. Examples: function openKCFinder_singleFile() { window.KCFinder = {}; window.KCFinder.callBack = function(url) { window.KCFinder = null; }; window.open('/kcfinder/browse.php', 'kcfinder_single'); } function openKCFinder_multipleFiles() { window.KCFinder = {}; window.KCFinder.callBackMultiple = function(files) { for (var i; i < files.length; i++) { } window.KCFinder = null; }; window.open('/kcfinder/browse.php', 'kcfinder_multiple'); } The second parameter of window.open() defines the name of the opened popup window. If you are using multiple integrations on one page, it's recommended to use different window names.

How can I use Ckfinder with Ckeditor? BIOSTALL/CodeIgniter-Google-Maps-V3-API-Library · GitHub. 6 CodeIgniter Hacks for the Masters. CodeIgniter is a simple and powerful open source web application framework for PHP.

6 CodeIgniter Hacks for the Masters

Today, we'll do some core "hacks" to this framework to change and improve its functionality. In the process, you'll gain a better understanding of the intricacies of CodeIgniter. It is not recommended to apply these hacks to an existing project. Since they change some of CodeIgniter's core functionality, it can break the existing code.As of this writing, CodeIgniter 1.7.2 is the latest stable release. These hacks are not guaranteed to work for future (or past) releases.Even though CodeIgniter is designed to be PHP 4 compatible, some of these hacks are not. On the left side, you see the regular way of loading a model in CodeIgniter, from within a Controller.

There are two more side effects of this hack. And you no longer have to add a require_once call before you do model class inheritance. All we need to do is add a PHP 5 style autoloader function. Now you can not have a URL like this: Same file, line 158: Benedmunds/CodeIgniter-Ion-Auth · GitHub. Setup HMVC with Codeigniter 2.1.4 - ExtraDRM : Design Ressource Management. HMVC is an evolution of the MVC pattern used for most web applications today.

Setup HMVC with Codeigniter 2.1.4 - ExtraDRM : Design Ressource Management

It came as an answer to the salability problems within applications which used MVC. This extension for CodeIgniter enables the use of the Hierarchical Model View Controller(HMVC) pattern and makes your application modular. This allows easy distribution of independent components (MVC) in a single directory across other CodeIgniter applications. All modules are grouped in their own folder and can have their own controller, model, view, library, config, helper and language files. The image below illustrates how this works : Key advantages to implementing the HMVC pattern : in the development cycle, these advantages will allow you to get more out of your application with less problems. How to set up HMVC in CodeIgniter It is very simple to setup HMVC in codeigniter : Step 1.

Step 2. Step 3. Step 4. Step 5. Important notes about HMVC with Codeigniter 2.1.3 $this->load->model('module/model'); How tu use Modules Run. The best way to make codeigniter website multi-language. calling from lang arrays depends on lang session?