Articles in category "how-tos", sorted by ratingX
Displaying 161-170 of 355 result(s).

get summary of related model via STAT relation

Created 4 years ago by rootbearHow-tos2 comments – viewed 18,306 times – ( +7 / -2 ) – version 1.1
typical scenario: invoice, invoice items.

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Created 5 years ago by rAWTAZHow-tos1 comment – viewed 39,901 times – ( +7 / -2 ) – version 1.1
This article intends to summarize the steps taken to set up PHPUnit and Selenium for a Yii project, with IntelliJ IDEA Ultimate (the IDE). It was done on Mac OS X 10.6.

How to "masquerade" a non-required form element as 'required' one (in the view only)

Created 5 years ago by BoazHow-tos2 comments – viewed 16,708 times – ( +7 / -2 ) – version 1.1
In a nutshell, the task at hand is to mark (or render) a model attribute in the typical "_form.php" view file with the 'required' red asterisk while this attribute is not marked as required in the model's rule() method. If you're interested only in the solution, jump ahead to the 'solution' section below.

Yii registry, how to use it, does it exist at all?

Created 6 years ago by dckurushinHow-tos2 comments – viewed 26,205 times – ( +7 / -2 ) – version 1.1
From time to time people ask about registry...

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created 4 years ago by VINAY Kr. SHARMAHow-tos6 comments – viewed 26,153 times – ( +5 / -1 ) – version 1.1
CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

using editors of yiibooster - fix issues - configuration

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 8,463 times – ( +5 / -1 ) – version 1.1
if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.

how to make a dynamic progress bar to show the percentage or status

Created 4 years ago by hehbhehbHow-tos1 comment – viewed 32,488 times – ( +5 / -1 ) – version 1.1
Yii have a CJuiProgressBar, but it is static. If we want a dynamic progress bar to show the percentage or status, we have to do more things. I make it successfully and am glad to share it with you.

CGridView Date Range Without Cookies or Session (External Filtering)

Created 4 years ago by ezekielnoobHow-tos6 comments – viewed 15,426 times – ( +5 / -1 ) – version 1.1
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below:

How to create yii2 extension and push to github and register into packagist to allow end user install from composer

Created 2 years ago by Scott_HuangHow-tos1 comment – viewed 16,444 times – ( +5 / -1 ) – version 2.0
1. Create Extension in yii2.

How to create CJui Tabs : Render partial, Ajax tabs, color tabs

Created 4 years ago by InterboyHow-tos1 comment – viewed 26,030 times – ( +5 / -1 ) – version 1.1
Hey guys, today we will show you how to make a Yii CJuitabs as example. Some feature cases such as Static tabs, render partial tabs, Ajax tabs, color tabs... You can see our code, there are simple 3 steps to make it work.