Wiki

Sorted by ratingX
Displaying 91-100 of 786 result(s).

Creating a parameterized LIKE query

Created 6 years ago by Steve FriedlFAQs6 comments – viewed 94,005 times – ( +25 / -1 ) – version 1.1
It's common to see users wishing to make substring DB queries, using the % metacharacter used to match anything; in this FAQ we'll search the tbl_comments table from the blog tutorial hoping to find the text in $match in the content column

How to show ajax delete status in CGridView like flash messages

Created 6 years ago by hasanaviHow-tos12 comments – viewed 46,859 times – ( +25 / -1 ) – version 1.1
I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully deleted or if there are some problem in flash style (setFlash() / getFlash())

How to implement multiple page layouts in an application

Created 8 years ago by qiangTutorials2 comments – viewed 106,966 times – ( +24 / -1 ) – version 1.1
In this tutorial, we describe how to implement multiple layouts for action views in an application. As an example, we assume that the pages in our application will use three different layouts:
tags: layout

Keeping a running total in a CGridView

Created 6 years ago by Steve FriedlHow-tos4 comments – viewed 32,159 times – ( +24 / -1 ) – version 1.1
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
tags: CGridView

Use crypt() for password storage

Created 4 years ago by fsbTutorials16 comments – viewed 97,902 times – ( +24 / -1 ) – version 1.1
Update: This wiki has been rewritten to be in line with Yii 1.1.14. Since many of the detailed complexities are now handled by Yii, the article focuses on how the crypt() built-in function works and why it's important to use it correctly.

PHPStorm & NetBeans autocomplete problem

Created 4 years ago by StagelineTips3 comments – viewed 14,057 times – ( +24 / -1 ) – version 1.1
The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.

CJuiDialog and AjaxSubmitButton

Created 7 years ago by tydeas_drTutorials22 comments – viewed 103,799 times – ( +37 / -3 ) – version 1.1
Hello ppl. Even though i have a small experience with yii I though of writing this to help people which want to do something similar.
tags: AJAX

How to use PHPExcel external library with Yii

Created 6 years ago by Antonio RamirezHow-tos14 comments – viewed 102,957 times – ( +30 / -2 ) – version 1.1
Trying to learn and help some other programmers to find their solutions on the Yii Forum (I think is a superb way to learn the framework), I was facing one challenge with an external library that a fellow programmer wanted to use -quite good indeed: PHPExcel. And what is PHPExcel?

How to validate CSRF token with session

Created 5 years ago by yangmlsHow-tos2 comments – viewed 57,123 times – ( +23 / -1 ) – version 1.1
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session

Setting and maintaining the language in Application (i18n)

Created 8 years ago by olafureTutorials12 comments – viewed 105,306 times – ( +23 / -1 ) – version 1.1
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation