Sorted by commentsX
Displaying 341-350 of 761 result(s).

How to create nice modal login widget with a CJuiDialog

Created 4 years ago by Igor IvanovicTutorials3 comments – viewed 48,173 times – ( +9 / -1 ) – version 1.1
...folder /protected/components/UserLoginWidget.php... ...extending the CWidget class...
tags: user, login, modal, widget

Real Time Logging

Created 4 years ago by lucifuriousTips3 comments – viewed 22,680 times – ( +14 ) – version 1.1
I've seen a lot of people asking about the logging facilities in Yii and thought I'd share a nice little class I wrote that provides near real-time logging.

Run an Yii Application inside an Wordpress page

Created 4 years ago by Paul ApostolHow-tos3 comments – viewed 22,952 times – ( +12 ) – version 1.1
Install a Wordpress site (mine is in "http://localhost/test/wordpress")

Serial Numbers (item counts) in GridView

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

Handling tabular data loading and validation in Yii 2

Created about a year ago by Kartik VTutorials3 comments – viewed 19,157 times – ( +41 / -5 ) – version 2.0
How do you read and handle tabular data submission via form in Yii framework 2.0? Sometimes we want to collect user input in a batch mode. That is, the user can enter the information for multiple model instances and submit them all at once. We call this tabular input because the input fields are often presented in an HTML table.

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

Created 3 years ago by Xgamer99Tips3 comments – viewed 11,775 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 about a year ago by Kartik VHow-tos3 comments – viewed 17,232 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 4 years ago by Steve FriedlHow-tos3 comments – viewed 71,875 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 about a year ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 9,052 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 4 years ago by Ivan WilhelmTutorials3 comments – viewed 8,294 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.