Wiki

Sorted by ratingX
Displaying 61-70 of 601 result(s).

How to add ajax-loading indicators

Created 4 years ago by schmunkTutorials5 comments – viewed 37,465 times – ( +26 ) – version 1.1
With yii you're able to create ajax requests and updates easily. But most times you always want to show a loading indicatior to your user.
tags: AJAX

Saving CGridView filter

Created 2 months ago by sefburhanTutorials2 comments – viewed 1,694 times – ( +26 ) – version 1.1
In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

X-Sendfile - serve large static files efficiently from web applications

Created 3 years ago by Maurizio Domba CerinHow-tos5 comments – viewed 35,468 times – ( +26 ) – version 1.1
Normally when we want users to download a file, that file is put in a folder under the web application root and the web server does the rest.

An easy way to display a success page using flash messages

Created 3 years ago by qiangTips2 comments – viewed 21,123 times – ( +26 ) – version 1.1
We often need to display a success page after the user has submitted a form without problem. We may show some welcome message after a user registers a new account. There are many ways to implement this workflow. In this article, I will explain a method that exploits flash messages.

Drills : Search by a HAS_MANY relation

Created about a year ago by softarkTutorials11 comments – viewed 20,167 times – ( +26 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

How to use an application behavior to maintain runtime configuration

Created 2 years ago by zaccariaHow-tos3 comments – viewed 21,422 times – ( +26 ) – version 1.1
In this tutorial will be explained a method to manage some configuration runtime. This excellent tutorial follows a similar approach, but requires to write a masterclass which all controllers are supposed to extend, following this wiki you can achieve the same by only editing the configuration.

Authenticating against phpass hashes with Yii

Created 2 years ago by Da:SourcererHow-tos18 comments – viewed 20,540 times – ( +26 ) – version 1.1
The Portable PHP password hashing framework allows advanced password hashing offering increased security over simple MD5- or SHA1-hashed passwords. phpass is already in use in some larger projects such as WordPress (since v2.5), Drupal 7 and phpBB 3.

Understanding Scenarios

Created 2 years ago by Luke JurgsTutorials11 comments – viewed 65,435 times – ( +25 ) – version 1.1
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

How to implement multiple page layouts in an application

Created 5 years ago by qiangTutorials2 comments – viewed 74,418 times – ( +24 ) – 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 3 years ago by Steve FriedlHow-tos4 comments – viewed 20,394 times – ( +24 ) – version 1.1
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
tags: CGridView