|
Project Information
|
CFileBrowserWidgetThis is a widget for use within the Yii PHP framework. It uses the jQuery File Tree plugin to render the file browser.
Installation & UsageThe widget relises on a 'connector' that gets called via AJAX requests to display a folders contents. You can cut and paste the code in the ControllerActionSample file located in the extensions' folder into the controller of your choice. You can then call the widget like this... <?php $this->widget('application.extensions.cfilebrowser.CFileBrowserWidget',array(
'script'=>array('site/filebrowser'),
'root'=>'/var/',
'folderEvent'=>'click',
'expandSpeed'=>1000,
'collapseSpeed'=>1000,
'multiFolder'=>true,
'loadMessage'=>'File Browser Is Loading...hang on a sec',
'callbackFunction'=>'alert("I selected " + f)'
)); ?>Options
|