Take into account however, that the new jquery plugin does not have a complete wiki yet. mostly missing examples.
This post has been edited by Asgaroth: 06 July 2011 - 11:51 AM
Posted 06 July 2011 - 10:28 AM
This post has been edited by Asgaroth: 06 July 2011 - 11:51 AM
Posted 06 July 2011 - 10:54 AM
Posted 06 July 2011 - 11:50 AM
jacmoe, on 06 July 2011 - 10:54 AM, said:
Posted 05 August 2011 - 06:41 AM
Asgaroth, on 06 July 2011 - 11:50 AM, said:
Posted 05 August 2011 - 08:08 AM
Sergey Tsivin, on 05 August 2011 - 06:41 AM, said:
Posted 26 August 2011 - 12:11 AM
Posted 13 March 2012 - 10:46 AM
Ashok Poudel, on 04 March 2012 - 06:30 AM, said:
Posted 14 March 2012 - 07:05 AM
<?php echo CHtml::ajaxLink('Upload',array('upload/index'),array( 'success'=>'js:function(data){ $("#uploadFile").dialog("open"); document.getElementById("upload").innerHTML=data; }'),array('id' => 'ty'.uniqid())); $this->beginWidget('zii.widgets.jui.CJuiDialog',array( 'id'=>'uploadFile', 'options'=>array( 'title'=>'Upload files', 'autoOpen'=>false, 'modal'=>'true', 'width'=>'auto', 'height'=>'auto', ), )); echo "<div id='upload'></div>"; $this->endWidget('zii.widgets.jui.CJuiDialog'); ?>
public function actionIndex() { $model = new XUploadForm; $this->render('multiple', array( 'model' => $model, )); }
<?php $this->widget('ext.xupload.XUploadWidget', array( 'url' => Yii::app()->createUrl("site/upload", array("parent_id" => 1)), 'model' => $model, 'attribute' => 'file', 'multiple' => true, )); ?>.
Posted 14 March 2012 - 09:28 AM
public function actionIndex() { $model = new XUploadForm; renderPartial('multiple', array( 'model' => $model, ), false, true); }
Posted 16 March 2012 - 12:10 AM
Posted 16 March 2012 - 09:59 AM
MAHESH.E.U, on 16 March 2012 - 12:10 AM, said:
Posted 01 April 2012 - 07:11 PM
Posted 14 May 2012 - 11:17 PM
<?php Yii::import("xupload.models.XUploadForm"); class SiteController extends Controller { public function actions() { return array( 'upload' => array( 'class' => 'xupload.actions.XUploadAction', 'path' => Yii::app() -> getBasePath() . "/../images/uploads", "publicPath" => Yii::app()->getBaseUrl()."/images/uploads", 'subfolderVar'=>false, ), ); } /** * This is the default 'index' action that is invoked * when an action is not explicitly requested by users. */ public function actionIndex() { // renders the view file 'protected/views/site/index.php' // using the default layout 'protected/views/layouts/main.php' $model = new XUploadForm; $this -> render('index', array('model' => $model, )); } /** * This is the action to handle external exceptions. */ public function actionError() { if ($error = Yii::app() -> errorHandler -> error) { if (Yii::app() -> request -> isAjaxRequest) echo $error['message']; else $this -> render('error', $error); } } }
if ($this -> subfolderVar !== null) { $this -> _subfolder = Yii::app() -> request -> getQuery($this -> subfolderVar, date("mdY")); } else if ($this -> subfolderVar !== false) { $this -> _subfolder = date("mdY"); }
This post has been edited by manuelpm: 14 May 2012 - 11:18 PM
Posted 15 May 2012 - 02:46 PM
if ($this -> subfolderVar !== null && $this -> subfolderVar !== false) { $this -> _subfolder = Yii::app() -> request -> getQuery($this -> subfolderVar, date("mdY")); } else if ($this -> subfolderVar === null) { $this -> _subfolder = date("mdY"); }
Posted 15 May 2012 - 03:46 PM
Posted 11 September 2012 - 01:41 AM
Posted 05 December 2012 - 09:02 AM
rizaarsyi, on 11 September 2012 - 01:41 AM, said:
$( ".form-upload .fileinput-button" ).addClass("disabled").find("input[type=file]").attr("disabled", "disabled");