Wiki

Sorted by commentsX
Displaying 421-430 of 784 result(s).

Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

Created 3 years ago by Gerhard LiebenbergHow-tos2 comments – viewed 53,150 times – ( +6 / -2 ) – version 1.1
I have a table (account) which contains "General Ledger" accounts. Each account has its own account_description - such as 'inventory', 'sales', etc.

Using CJuiDialog to display flash Messages in Dialogues

Created 6 years ago by thyseusTutorials2 comments – viewed 22,969 times – ( +11 / -1 ) – version 1.1
In order to nicely display flash Messages, create view like this called views/site/dialog.php :

A universal model attribute for its synthetic representation

Created 11 months ago by Alexandre RodichevskiTips2 comments – viewed 4,030 times – ( -1 ) – version 2.0
It is convenient to use the same identification attribute, say info, in all of the active records of your application. It should be a virtual read-only attribute defined by a getter method, its label being the model name.

Access log output from unit tests

Created 5 years ago by MikeTips2 comments – viewed 8,140 times – ( +4 / -1 ) – version 1.1
Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

Create/Develop View files with plain HTML (Without using ActiveForm Class)

Created 3 years ago by kalpitHow-tos2 comments – viewed 12,415 times – ( +2 / -3 ) – version 1.1
Today i want to share with you is "How can we write HTML Code in view files? I am writing this article because many times we can not use CActiveForm to design our form...
tags: views, tutorial

Update a part of content using AJAX when select a GridView row

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 19,998 times – ( +4 / -1 ) – version 1.1
Suppose you want to refresh a form or any content when a single row of CGridView is selected

How to hide `index` action from URL

Created 5 years ago by rootbearHow-tos2 comments – viewed 16,932 times – ( +3 / -3 ) – version 1.1
Here is my experiment inspired by my own question and others from the forum.
tags: index

Ajax update

Created 6 years ago by zaccariaTips2 comments – viewed 48,515 times – ( +21 / -3 ) – version 1.1
Often happens to have the need of change a part of the page with ajax.
tags: AJAX

Working with relational removals by yii2

Created 7 months ago by AndroideLPTutorials2 comments – viewed 7,448 times – ( +1 / -1 ) – version 2.0
This tutorial shows you how to safely remove records between relationships.

How to Create Pdf Report / Excel Report By Using Parameters (From - Until)

Created 3 years ago by ruderbytesHow-tos2 comments – viewed 26,703 times – ( +2 / -3 ) – version 1.1
Asslamualaikum Wr.Wb Hello I'm Fahmi Azain i will share wiki tutorial about Creating Pdf Report / Excel Report by using Parms / Parameters.