Wiki

Sorted by commentsX
Displaying 351-360 of 784 result(s).

Serial Numbers (item counts) in GridView

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

Yii2 default values for Index data Provider

Created 2 years ago by CTalaTips3 comments – viewed 15,932 times – ( +4 ) – version 2.0
Guys,

Using your own forked version of extensions with composer

Created 2 years ago by Kartik VTutorials3 comments – viewed 9,688 times – ( +39 / -4 ) – version 2.0
So you want to use a fork of any existing vendor extension with your Yii 2 install and use the fork, instead of original source. This does not need you to push any update or register your package on packagist.org. You are recommended to follow the approach below:

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

Created 4 years ago by Xgamer99Tips3 comments – viewed 13,862 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.

Displaying uploaded file from DB for update with FileInput widget

Created 2 years ago by Kartik VHow-tos3 comments – viewed 32,642 times – ( +39 / -5 ) – version 2.0
This is for folks who are using \kartik\widgets\FileInput to upload files from your client. How do you display an image for update after you have uploaded it to the server using the widget?

Configuring controller access rules to default-deny

Created 5 years ago by Steve FriedlHow-tos3 comments – viewed 81,921 times – ( +12 ) – 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 2 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 12,226 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 5 years ago by Ivan WilhelmTutorials3 comments – viewed 9,232 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 4 years ago by yasenHow-tos3 comments – viewed 23,958 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 2 years ago by M0kaTutorials3 comments – viewed 3,213 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.