Wiki

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

Checking for "expired" sessions/logins on the client side

Created 3 years ago by le_topHow-tos0 comments – viewed 23,278 times – ( +6 / -1 ) – version 1.1
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

get summary of related model via STAT relation

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

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

Created 4 years ago by BoazHow-tos2 comments – viewed 14,771 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 5 years ago by dckurushinHow-tos2 comments – viewed 24,641 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 3 years ago by VINAY Kr. SHARMAHow-tos6 comments – viewed 24,160 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 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 7,750 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 3 years ago by hehbhehbHow-tos1 comment – viewed 29,242 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 3 years ago by ezekielnoobHow-tos6 comments – viewed 13,303 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 13,326 times – ( +5 / -1 ) – version 2.0
1. Create Extension in yii2.

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

Created 3 years ago by InterboyHow-tos1 comment – viewed 24,046 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.