How to upload image(photo), and path entry in database with update functionality

View : Model : Controller : I saw many posts that community newbie is confuse in image/photo upload with random name. so I post this topic covering all useful things regarding to image/photo upload(not covering image attribute related functionality) View :  _form.php file: ..//form options array…’htmlOptions’ => array( ‘enctype’ => ‘multipart/form-data’, ),…..//Other elements….<div class=”row”> <?php… Continue reading How to upload image(photo), and path entry in database with update functionality

How to upload image(photo), and path entry in database with update functionality

View : Model : Controller : I saw many posts that community newbie is confuse in image/photo upload with random name. so I post this topic covering all useful things regarding to image/photo upload(not covering image attribute related functionality) View :  _form.php file: ..//form options array…’htmlOptions’ => array( ‘enctype’ => ‘multipart/form-data’, ),…..//Other elements….<div class=”row”> <?php… Continue reading How to upload image(photo), and path entry in database with update functionality

yii change sorting sort order by drag drop Creating a jQueryUI Sortable CGridView Yii Framework

The article below is copied from this URL http://www.yiiframework.com/wiki/238/creating-a-jqueryui-sortable-cgridview/ . That linked article has a small error which i have removed here: —————————————————————————————- I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you… Continue reading yii change sorting sort order by drag drop Creating a jQueryUI Sortable CGridView Yii Framework