Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 61-70 of 306 result(s).

Filter / Search with CListView

Created 2 years ago by JohnPollardHow-tos7 comments – viewed 30,465 times – ( +26 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

Popup AJAX DialogBox without any extension

Created about a year ago by KonApazHow-tos6 comments – viewed 11,824 times – ( +7 / -1 )
In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.

How to insert a Simple Dialog Box

Created 2 years ago by bluyellHow-tos6 comments – viewed 20,126 times – ( +5 / -2 ) – version 1.1
I build this simple PHP class (DialogBox.php at the bottom of this wiki) to help you in the dialog box usage on Yii applications. The goal is run any Yii actions into this dialog box and return the resulting value to the calling instance.

Yii HMVC

Created about a year ago by ezekielnoobHow-tos6 comments – viewed 6,789 times – ( +5 / -1 )
Right now we can use widgets + action provider like in this tutorial: How to use a Widget as an Action Provider

Storing your images in your table's blob field and displaying that stored images.

Created 2 years ago by sirin kHow-tos6 comments – viewed 20,479 times – ( +8 / -1 ) – version 1.1
He im giving you a very simple example ie how you can store an image to your blob field in a table.Hope you already familiar with the normal image upload.
tags: blob, image

Publish yii webapp using Git push

Created 2 years ago by rootbearHow-tos6 comments – viewed 7,090 times – ( +2 ) – version 1.1
I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;
tags: git

Using setFlash for displaying various kind of messages

Created 3 years ago by TrejderHow-tos6 comments – viewed 41,137 times – ( +4 / -5 ) – version 1.1
In this short how-to I will show how to customize setFlash() to display messages (flashes) styled to be success confirmation, error report or notice information. And how to achieve displaying errors in other way.
tags: flash, error, message

Update CGridview row separately using ajax request

Created 4 months ago by KonApazHow-tos6 comments – viewed 3,183 times – ( +5 ) – version 1.1
There are cases you want to update a record on CGridview directly

Hyphenation of routes in URL management

Created about a year ago by qiangHow-tos6 comments – viewed 13,617 times – ( +18 ) – version 1.1
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL

Save and Display Date/Time Fields in different formats in Yii2

Created 3 months ago by Kartik VHow-tos6 comments – viewed 3,247 times – ( +24 ) – version 2.0
You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.