Wiki

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

Setting and getting systemwide static parameters

Created 5 years ago by Steve FriedlHow-tos3 comments – viewed 93,845 times – ( +12 ) – version 1.1
Occasionally one wishes to set systemwide parameters for an application, such as a contact address for email, an application name, or setting an option that guides major behavior. Yii provides for setting of static parameters in the configuration file, and this article talks about how to do it conveniently.
tags: config

Enforcing "You must agree" requirements in forms

Created 5 years ago by Steve FriedlHow-tos3 comments – viewed 21,878 times – ( +29 ) – version 1.1
Checkboxes have two possible values, true and false, but some applications require that the user select one particular value before proceeding. Examples might be:
tags: validation

CJuiTabs Content

Created 3 years ago by mbalaTips3 comments – viewed 13,902 times – ( +6 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

Javascript and AJAX with Yii

Created 3 years ago by Fran├žois GannazHow-tos3 comments – viewed 128,493 times – ( +41 ) – version 1.1
This page intends to provide an exhaustive guide of how to use Javascript (JS) in Yii. It does not explain how to learn coding in JS, but how to deal with it "the Yii way".
tags: javascript, AJAX

How to create nice modal login widget with a CJuiDialog

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

Real Time Logging

Created 5 years ago by lucifuriousTips3 comments – viewed 24,239 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 5 years ago by Paul ApostolHow-tos3 comments – viewed 24,862 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 9,075 times – ( +1 ) – version 1.1
Sometime we need to display numbers of items per page with their counting as a serial number.

Using your own forked version of extensions with composer

Created 2 years ago by Kartik VTutorials3 comments – viewed 7,114 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 3 years ago by Xgamer99Tips3 comments – viewed 12,954 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.