Wiki

Sorted by commentsX
Displaying 331-340 of 731 result(s).

Serial Numbers (item counts) in GridView

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

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 2 years ago by Xgamer99Tips3 comments – viewed 10,316 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

How to use YiiBooster Bootstrap Gallery

Created 2 years ago by Antonio RamirezHow-tos3 comments – viewed 22,419 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 63,151 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 9 months ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 6,370 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)

Ativando temas no Zii Widgets

Created 3 years ago by Ivan WilhelmTutorials3 comments – viewed 7,625 times – ( +4 / -2 ) – version 1.1
Um aspecto do design da interface de usuário tem a ver com a coerência do design e da utilização das cores entre os diferentes componentes da interface do usuário utilizada.

PayPal Integration And IPN (Instant Payment Notification)

Created 2 years ago by yasenHow-tos3 comments – viewed 17,481 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.

Profiling user requests

Created 9 months ago by M0kaTutorials3 comments – viewed 1,737 times – ( +1 ) – version 1.1
How to profile user requests so you can determine which actions need an enhancements and optimizations? This wiki going to show you a step by step how to do it.

Handling recursive deletion in Yii

Created 2 years ago by JamesBarnsleyHow-tos3 comments – viewed 7,399 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 22,134 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.