Wiki articles in category Tutorials

Showing 201-220 of 265 items.

Use different environments (development, production, etc) in your app with EASY Environment Class

Created 14 years ago by nancoder, updated 13 years ago by marcovtwout.

Hi, I was having problems each time I had to test the site or edit something on my local machine, like changing the db connection, change the debug mode to false, the trace level to 0, disable Gii, etc. So I created a class to resolve all my problems, hope to help you in your projects!

7 0
7 followers
Viewed: 78 262 times
Version: 1.1
Category: Tutorials
Tags:

CJuiDialog and AjaxSubmitButton

Created 14 years ago by tydeas_dr, updated 13 years ago by phazei.

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.

33 1
45 followers
Viewed: 128 254 times
Version: 1.1
Category: Tutorials
Tags: AJAX

Display an AJAX tree from your DB using CTreeView

Created 14 years ago by François Gannaz, updated 12 years ago by François Gannaz.

This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).

19 0
21 followers
Viewed: 73 383 times
Version: 1.1
Category: Tutorials

Ordering Models by Weight with CJuiSortable

Created 14 years ago by Matt Kelliher, updated 11 years ago by Phil Loaiza.

In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.

9 0
10 followers
Viewed: 16 978 times
Version: 1.1
Category: Tutorials
Tags:

Installing and configuring the Yii User Management Module under a fresh skeleton application generated by yiic

Created 14 years ago by thyseus, updated 14 years ago by Orteko.

p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module.

12 2
15 followers
Viewed: 96 327 times
Version: 1.1
Category: Tutorials

XSS safe model content

Created 14 years ago by phiras, updated 14 years ago by phiras.

In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.

4 0
1 follower
Viewed: 13 106 times
Version: 1.1
Category: Tutorials
Tags:

i18n for your model in just 1 line

Created 14 years ago by mintao, updated 14 years ago by Orteko.

A simple trick to get the localized version of a model field is to add this little method to your models.

12 0
9 followers
Viewed: 19 853 times
Version: 1.1
Category: Tutorials
Tags: i18n

Performance - A Guide For Best Practice

Created 14 years ago by Y!!, updated 13 years ago by ajsharma.

In this guide I will explain best practise regarding performance in MySQL, PHP and of course our loved Yii Framework. Since this is a complex topic, I will start with some basics and then expand this guide from time to time. Since this wiki can become big, you may click on View history - there you can see what changes have been made, so you don't miss anything.

9 5
10 followers
Viewed: 27 881 times
Version: 1.1
Category: Tutorials

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

Created 14 years ago by andy_s, updated 12 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: 142 092 times
Version: 1.1
Category: Tutorials
Tags:

How to use ldap in UserIdentity for authentication

Created 14 years ago by BeerSerc, updated 10 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: 96 924 times
Version: 1.1
Category: Tutorials

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

Created 14 years ago by thyseus, updated 13 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: 64 122 times
Version: 1.1
Category: Tutorials
Tags: menu

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

Created 14 years ago by atrandafir, updated 12 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: 153 152 times
Version: 1.1
Category: Tutorials
Tags:

Using the configuration file, explain what can be configured.

Created 14 years ago by atrandafir, updated 12 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
14 followers
Viewed: 92 216 times
Version: 1.1
Category: Tutorials
Tags:

SQL Logging and Profiling in FireBug (Yii 1.1)

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

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

6 0
6 followers
Viewed: 37 540 times
Version: 1.1
Category: Tutorials
Tags: Logging

I18n subdomains and url-rules

Created 15 years ago by Y!!, updated 13 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: 46 409 times
Version: 1.1
Category: Tutorials
Tags: i18n, URL

Simplified meta tags

Created 15 years ago by Y!!, updated 14 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: 56 720 times
Version: 1.1
Category: Tutorials
Tags:

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: 105 126 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: 21 040 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 808 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: 361 173 times
Version: 1.1
Category: Tutorials
Tags: AJAX