Wiki

Sorted by ratingX
Displaying 51-60 of 468 result(s).

Organize directories for applications with front-end and back-end using WebApplicationEnd behavior

Created 3 years ago by andy_sTutorials18 comments – viewed 42,973 times – ( +25 )
Previously there was described a way to build an application with front-end and back-end. I would like to continue this theme and suggest another way to organize directories using WebApplicationEnd behavior.

Authenticating against phpass hashes with Yii

Created about a year ago by Da:SourcererHow-tos18 comments – viewed 15,727 times – ( +25 )
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.

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

Created 2 years ago by Maurizio DombaHow-tos5 comments – viewed 22,967 times – ( +24 )
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.

How to use an application behavior to maintain runtime configuration

Created about a year ago by zaccariaHow-tos3 comments – viewed 13,783 times – ( +24 )
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.

How to implement multiple page layouts in an application

Created 4 years ago by qiangTutorials2 comments – viewed 56,100 times – ( +23 )
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

Understanding Autoloading, Helper Classes and Helper Functions

Created 2 years ago by Steve FriedlTutorials4 comments – viewed 36,713 times – ( +23 )
Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.

An easy way to display a success page using flash messages

Created 2 years ago by qiangTips2 comments – viewed 13,762 times – ( +23 )
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.

Single sign on across multiple subdomains

Created 2 years ago by ianarĂ©How-tos6 comments – viewed 15,583 times – ( +22 )
This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.

How to use a Widget as an Action Provider

Created 2 years ago by Antonio RamirezHow-tos8 comments – viewed 18,241 times – ( +22 )
As written on the API docs: An Action Provider Widget is a widget that has declared several actions by using its 'public static function actions()'. After, a Controller can easily import all its declared actions on its 'public function actions()'.
tags: Widgets, CAction

Simple RBAC

Created about a year ago by hasanaviTutorials11 comments – viewed 32,046 times – ( +32 / -1 )
If you need simple Role based access control without the long RBAC process then this article is just for you. Lets jump to the point.