Wiki articles

Showing 601-620 of 651 items.

Using search engine and user friendly URLs

Created 15 years ago by qiang, updated 12 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: 104 202 times
Version: 1.1
Category: Tutorials
Tags: SEO, URL

Encapsulate db and module configurations

Created 15 years ago by ricardograna, updated 12 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: 20 957 times
Version: 1.1
Category: Tutorials
Tags: module

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

Created 15 years ago by Ivo Roper, updated 12 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: 49 712 times
Version: 1.1
Category: Tutorials
Tags:

Update content in AJAX with renderPartial

Created 15 years ago by Burzum, updated 12 years ago by hairylunch.

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

43 0
46 followers
Viewed: 360 867 times
Version: 1.1
Category: Tutorials
Tags: AJAX

By Example: CHtml

Created 15 years ago by jonah, updated 8 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
74 followers
Viewed: 993 518 times
Version: 1.1
Category: Tutorials

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

Created 15 years ago by idle sign, updated 12 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: 43 640 times
Version: 1.1
Category: Tutorials
Tags:

How to add ajax-loading indicators

Created 15 years ago by schmunk, updated 12 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: 77 045 times
Version: 1.1
Category: Tutorials
Tags: AJAX

CSS, JS and image URL shortcut methods

Created 15 years ago by jonah, updated 12 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: 37 556 times
Version: 1.1
Category: Tutorials
Tags: URL

Behaviors & events

Created 15 years ago by pestaa, updated 11 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: 161 932 times
Version: 1.1
Category: Tutorials
Tags:

Adding login form to each page

Created 15 years ago by pestaa, updated 12 years ago by Yang He.

After adding proper form to the main layout, like:

3 1
7 followers
Viewed: 50 402 times
Version: 1.1
Category: Tutorials

How to make customizable Db Table prefixes using ActiveRecord

Created 15 years ago by killermonk, updated 14 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: 24 494 times
Version: 1.1
Category: Tutorials
Tags:

How to extend yiic shell commands

Created 15 years ago by qiang, updated 14 years ago by wei.

While yiic shell tool is very convenient at generating skeleton code in our application, the generated code is not always what we want. For example, we may want the generated code to carry specific copyright information; we may want to use our own coding style; we may want to add more features; and so on. All these can be accomplished easily in Yii.

2 0
5 followers
Viewed: 33 757 times
Version: 1.1
Category: Tutorials
Tags: yiic

Enabling Gzip

Created 15 years ago by pestaa, updated 12 years ago by Yang He.

Adding HTTP compression to your application could never have been easier!

6 1
13 followers
Viewed: 39 822 times
Version: 1.1
Category: Tutorials
Tags:

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 15 years ago by mindeh, updated 9 years ago by Boaz.

Original source code and idea are from: PHP, PDO & Nested Transactions.

41 0
26 followers
Viewed: 67 773 times
Version: 1.1
Category: How-tos

Integrating with other frameworks

Created 15 years ago by KJedi, updated 15 years ago by KJedi.

When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps:

4 1
7 followers
Viewed: 28 282 times
Version: 1.1
Category: Tutorials
Tags:

How to use markItUp! on a text field for full WYSIWYG editing

Created 15 years ago by lucifurious, updated 14 years ago by wei.

This tutorial will show you how to use the Pogostick Yii Extension Library to make an HTML TEXTAREA input element into a full-fledged WYSIWYG editor pretty much with very little code.

3 0
3 followers
Viewed: 37 805 times
Version: 1.1
Category: Tutorials

How To Connect With Twitter From Yii

Created 15 years ago by lucifurious, updated 14 years ago by wei.

Here is a quick tutorial for connecting Yii with Twitter using the Pogostick Yii Extensions Library.

4 1
12 followers
Viewed: 33 806 times
Version: 1.1
Category: Tutorials
Tags: twitter

How to log context information to logger (session id, user, ...)

Created 15 years ago by olafure, updated 12 years ago by ajsharma.

Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.

2 0
5 followers
Viewed: 25 116 times
Version: 1.1
Category: Tutorials
Tags: Logging

Organize directories for applications with front-end and back-end

Created 15 years ago by qiang, updated 6 years ago by CeBe.

Large applications are often divided into front-end and back-end (or even more ends) depending on the target user groups. The front-end should be used by common users, while the back-end mainly the administrators or staff members. The two ends usually have dramatically different appearance, even though they may share a lot of code underneath. In this tutorial, we describe a way of organizing direc...

25 0
34 followers
Viewed: 100 058 times
Version: 1.1
Category: Tutorials
Tags:

Manage application configuration in different modes

Created 15 years ago by qiang, updated 12 years ago by 张 迪.

Application configuration determines how an Yii application should behave, because it is the only parameter passed in the entry script. An application, on the other hand, needs to behave differently under different circumstances. For example, an application may need different configurations when running in production mode, development mode and testing mode; In a team development environment, each...

15 0
15 followers
Viewed: 69 053 times
Version: 1.1
Category: Tutorials