Wiki

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

How to create nice modal login widget with a CJuiDialog

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

Real Time Logging

Created 6 years ago by lucifuriousTips3 comments – viewed 26,737 times – ( +14 / -1 ) – 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 6 years ago by Paul ApostolHow-tos3 comments – viewed 28,456 times – ( +12 / -1 ) – version 1.1
Install a Wordpress site (mine is in "http://localhost/test/wordpress")

Serial Numbers (item counts) in GridView

Created 5 years ago by PeRoChAkHow-tos3 comments – viewed 10,245 times – ( +1 / -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 3 years ago by CTalaTips3 comments – viewed 18,727 times – ( +4 / -1 ) – version 2.0
Guys,

Yii 2 list of path aliases available with default basic and advanced app.

Created 3 years ago by Kartik VTips3 comments – viewed 99,234 times – ( +53 / -6 ) – version 2.0
If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

Using your own forked version of extensions with composer

Created 3 years ago by Kartik VTutorials3 comments – viewed 11,487 times – ( +39 / -5 ) – 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 5 years ago by Xgamer99Tips3 comments – viewed 14,726 times – ( +1 / -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 3 years ago by Kartik VHow-tos3 comments – viewed 37,237 times – ( +39 / -6 ) – 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 6 years ago by Steve FriedlHow-tos3 comments – viewed 86,229 times – ( +12 / -1 ) – 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.