Wiki articles

Showing 41-60 of 802 items.

How to make customizable Db Table prefixes using ActiveRecord

Created 10 years ago by killermonk, updated 9 years ago by killermonk.

Yii's ActiveRecord classes are powerful, but they fall short when you want to have a configurable table prefix for your application.

0 0
1 follower
Viewed: 19 138 times
Version: 1.1
Category: Tutorials
Tags:

Adding login form to each page

Created 10 years ago by pestaa, updated 7 years ago by Yang He.

After adding proper form to the main layout, like:

3 1
7 followers
Viewed: 41 806 times
Version: 1.1
Category: Tutorials

Behaviors & events

Created 10 years ago by pestaa, updated 6 years ago by Gismo.

These features provide endless possibilities and unbelievable flexibility, but as current documentation does not give more than a few examples, it might be difficult to fully understand their internals and requirements.

43 0
48 followers
Viewed: 143 760 times
Version: 1.1
Category: Tutorials
Tags:

CSS, JS and image URL shortcut methods

Created 10 years ago by jonah, updated 7 years ago by jonah.

Below I have created an Html helper with methods to help me locate directories of my assets dynamically. Such assets may include CSS, JavaScript and images.

2 1
4 followers
Viewed: 29 850 times
Version: 1.1
Category: Tutorials
Tags: URL

How to add ajax-loading indicators

Created 10 years ago by schmunk, updated 7 years ago by Yang He.

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.

23 0
25 followers
Viewed: 63 687 times
Version: 1.1
Category: Tutorials
Tags: AJAX

How to use default layout for error pages instead of errorXXX views

Created 10 years ago by idle sign, updated 7 years ago by Yang He.

The issue is covered in "The Definite Guide to Yii" (Error Handling - Handling Errors Using an Action).

4 0
3 followers
Viewed: 34 956 times
Version: 1.1
Category: Tutorials
Tags:

By Example: CHtml

Created 10 years ago by jonah, updated 3 years ago by glicious.

"By Example" cookbook pages will provide coding examples for many of the commonly used classes within Yii. We will try to provide as many usage examples as possible for keep these pages as helpful as possible.

79 0
75 followers
Viewed: 925 418 times
Version: 1.1
Category: Tutorials

Update content in AJAX with renderPartial

Created 10 years ago by Burzum, updated 7 years ago by hairylunch.

The easiest way to update content in AJAX is to use the renderPartial method.

43 0
47 followers
Viewed: 286 574 times
Version: 1.1
Category: Tutorials
Tags: AJAX

Beginner / Intro Tutorials (please add to / update this list)

Created 10 years ago by Ivo Roper, updated 7 years ago by Gerhard Liebenberg.

This is a central location to collect links to "Getting Started" documentation beyond the blog demo and Creating First Yii Application. Please help the community by adding general, introductory links and descriptions to this page.

4 0
8 followers
Viewed: 44 558 times
Version: 1.1
Category: Tutorials
Tags:

Encapsulate db and module configurations

Created 10 years ago by ricardograna, updated 7 years ago by Yang He.

This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/

7 0
9 followers
Viewed: 16 181 times
Version: 1.1
Category: Tutorials
Tags: module

Using search engine and user friendly URLs

Created 10 years ago by qiang, updated 7 years ago by Yang He.

The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.

19 0
31 followers
Viewed: 87 168 times
Version: 1.1
Category: Tutorials
Tags: SEO, URL

Simplified meta tags

Created 10 years ago by Y!!, updated 9 years ago by Y!!.

If we want to set meta tags on a per page (controller-action) basis, we may use the clientScript application component.

13 0
17 followers
Viewed: 48 604 times
Version: 1.1
Category: Tutorials
Tags:

I18n subdomains and url-rules

Created 10 years ago by Y!!, updated 8 years ago by atrandafir.

This guide is for more or less advanced users. If you just started with Yii or didn't worked with any web-framework before, you may should come back later :-)

7 0
17 followers
Viewed: 35 587 times
Version: 1.1
Category: Tutorials
Tags: i18n, URL

Reference: Model rules validation

Created 9 years ago by krillzip, updated 6 years ago by Rodrigo.

This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.

97 0
115 followers
Viewed: 820 452 times
Version: 1.1
Category: How-tos

SQL Logging and Profiling in FireBug (Yii 1.1)

Created 9 years ago by mindplay, updated 9 years ago by qiang.

During development, it's often very handy to have SQL logging and profiling.

6 0
6 followers
Viewed: 31 767 times
Version: 1.1
Category: Tutorials
Tags: Logging

Using the configuration file, explain what can be configured.

Created 9 years ago by atrandafir, updated 7 years ago by Yang He.

The purpose of this post is to let anyone quickly find how to accomplish a configuration task, and list here all the posibilities of the config.php file and also link to pages that explain how is each thing implemented.

17 0
15 followers
Viewed: 74 563 times
Version: 1.1
Category: Tutorials
Tags:

Add information to Yii::app()->user by extending CWebUser

Created 9 years ago by atrandafir, updated 7 years ago by Yang He.

This little tutorial explains a way how you can retrieve more parameters from Yii::app()->user by adding a component that extends CWebUser and retrieves the user information from database table named User.

27 0
38 followers
Viewed: 138 390 times
Version: 1.1
Category: Tutorials
Tags:

Creating a database-driven hierarchical Structure combined with CMenu and superfish

Created 9 years ago by thyseus, updated 8 years ago by thyseus.

Note: Please also take a look at the newer EMenu extension. This works even better that the deprecated CDropDownMenu!

15 0
24 followers
Viewed: 54 337 times
Version: 1.1
Category: Tutorials
Tags: menu

How to use ldap in UserIdentity for authentication

Created 9 years ago by BeerSerc, updated 5 years ago by Navarr.

Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

11 0
18 followers
Viewed: 62 308 times
Version: 1.1
Category: Tutorials

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

Created 9 years ago by andy_s, updated 7 years ago by kiran sharma.

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.

26 0
44 followers
Viewed: 116 895 times
Version: 1.1
Category: Tutorials
Tags: