Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 131-140 of 308 result(s).

Serial Numbers (item counts) in GridView

Created about a year ago by PeRoChAkHow-tos3 comments – viewed 6,605 times – ( +1 ) – version 1.1
Sometime we need to display numbers of items per page with their counting as a serial number.

Image resize on the fly

Created about a year ago by TpoxaHow-tos3 comments – viewed 12,894 times – ( +4 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize

How to use YiiBooster Bootstrap Gallery

Created about a year ago by Antonio RamirezHow-tos3 comments – viewed 20,092 times – ( +4 ) – version 1.1
Since version 1.0.4, Yii developers can make use of the image gallery provided by Sebastian Tshan, a great javascript developer that has created some true gems like the jquery file upload plugin.

Configuring controller access rules to default-deny

Created 3 years ago by Steve FriedlHow-tos3 comments – viewed 57,170 times – ( +11 ) – version 1.1
Starting with the blog tutorial, Yii developers are familiar with the notion of access rules defined in the controller, where the actions are allowed or denied depending on the user's name or role.

Update specific cgridview html row after AJAX request

Created 4 months ago by KonApazHow-tos3 comments – viewed 3,371 times – ( +2 ) – version 1.1
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

PayPal Integration And IPN (Instant Payment Notification)

Created about a year ago by yasenHow-tos3 comments – viewed 15,125 times – ( +9 ) – version 1.1
Had to implement PayPal payments for a client and would like to share part of my code with you. Because the tutorial will become too long, I'll leave some code to be done by you, e.g. creating models, controllers and db tables for products, orders.

Handling recursive deletion in Yii

Created about a year ago by JamesBarnsleyHow-tos3 comments – viewed 6,729 times – ( +3 ) – version 1.1
As a lead developer at Mutable Labs I was tasked to find a way to do recursive deletion in Yii. As I asked other developers and looked around the internet the usual answers all came up, use a plugin or use cascade delete at the DB level, but I did not want to do either of these.

Converting an Artisteer Theme to Yii

Created 3 years ago by bgleeHow-tos3 comments – viewed 20,875 times – ( +9 ) – version 1.1
There are two approaches to converting an Artisteer theme. The first is to simply copy an existing Artisteer – based Yii theme, overlay the CSS and images, then make any necessary tweaks to the layout files. This is undoubtedly the fastest route, but won't teach you as much as doing it from scratch. That's ok. Sometimes getting the job done is the top priority. The second approach is more general and will apply to some extent to other HTML templates that you may want to convert. I'll be covering the first approach in detail, while the second will be more of a general discussion.

Save uploaded file with any filename characters

Created 3 months ago by KonApazHow-tos3 comments – viewed 1,607 times – ( +1 ) – version 1.1
First of all this is a very common problem, for more details see this post http://www.yiiframework.com/forum/index.php/topic/52052-upload-file-with-any-charset/

Extending an ActiveRecord model

Created about a year ago by BogseyHow-tos3 comments – viewed 10,664 times – ( +2 / -3 ) – version 1.1
Introduction