Yii 1.1: eimagefinder

Input field with CKFinder Image Browser

This widget will generate an input box (), with a "Select" button which when clicked will bring CKFinder's window allowing one to browse through the file repository.

There is no integration with CKEditor (there are other extensions that will do that, e.g. http://www.yiiframework.com/extension/ckeditor-ckfinder.

Please note, CKFinder is not free, but it is worth the cost in my experience.


CKfinder from http://ckfinder.com/download - version 2.1 is included with the current package.


  1. Extract the entension to your /protected/extensions folder.
  2. Edit the extension file and change the following to suit your needs:
// Please change the config below to suit your needs
        $this->uploadPath = dirname(Yii::app()->request->scriptFile) .'/themes/frontend/uploads/';
        $this->uploadUrl = Yii::app()->getRequest()->hostInfo . Yii::app()->baseUrl.'/themes/frontend/uploads/';
  1. Invoke the widget in your view as below.
  1. Once everything is working, open CKFinder's config file to put the appropriate license in.


Suggestions/comments are welcomed.


Cassiano Surek - www.surek.co.uk

Total 1 comment

#10646 report it
MAR at 2012/11/11 04:37am
One error

Please, add to view finder.selectActionFunction = SetFileField; before finder.popup();

Leave a comment

Please to leave your comment.

Create extension