Wiki articles in category Tutorials

Showing 101-120 of 264 items.

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

Created 14 years ago by idle sign, updated 11 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: 42 971 times
Version: 1.1
Category: Tutorials
Tags:

Encapsulate db and module configurations

Created 14 years ago by ricardograna, updated 11 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 271 times
Version: 1.1
Category: Tutorials
Tags: module

Using search engine and user friendly URLs

Created 14 years ago by qiang, updated 11 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: 101 673 times
Version: 1.1
Category: Tutorials
Tags: SEO, URL

Using the configuration file, explain what can be configured.

Created 14 years ago by atrandafir, updated 11 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: 90 699 times
Version: 1.1
Category: Tutorials
Tags:

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

Created 14 years ago by atrandafir, updated 11 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: 151 117 times
Version: 1.1
Category: Tutorials
Tags:

CSS, JS and image URL shortcut methods

Created 14 years ago by jonah, updated 11 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: 36 695 times
Version: 1.1
Category: Tutorials
Tags: URL

Update content in AJAX with renderPartial

Created 14 years ago by Burzum, updated 11 years ago by hairylunch.

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

43 0
46 followers
Viewed: 351 694 times
Version: 1.1
Category: Tutorials
Tags: AJAX

Working with radiobutton list

Created 11 years ago by vibhaJadwani, updated 11 years ago by vibhaJadwani.

This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.

9 0
10 followers
Viewed: 129 814 times
Version: 1.1
Category: Tutorials

How to setup FCKeditor

Created 15 years ago by krillzip, updated 11 years ago by Dark-Sun.

Next to do is to download the Yii FCKeditor extension, created by Ascomae. Extract the downloaded file, and place the fckeditor/ widget folder in your web applications protected/extensions/ directory.

3 1
5 followers
Viewed: 30 833 times
Version: 1.1
Category: Tutorials
Tags:

Auto set model fields values

Created 11 years ago by vibhaJadwani, updated 11 years ago by vibhaJadwani.

This is a tutorial for how to auto set model values without any code.

5 0
11 followers
Viewed: 30 939 times
Version: 1.1
Category: Tutorials

Working with CGridView in Admin Panel

Created 11 years ago by vibhaJadwani, updated 11 years ago by vibhaJadwani.

This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

21 1
41 followers
Viewed: 90 376 times
Version: 1.1
Category: Tutorials

How to setup CKeditor

Created 11 years ago by Dark-Sun, updated 11 years ago by Dark-Sun.

To start with you need to download the latest stable release of CKeditor. Extract the downloaded file and place the ckeditor/ folder in your applications webroot directory. (beside "protected" and "css" and other directories)

3 0
8 followers
Viewed: 34 577 times
Version: 1.1
Category: Tutorials

Serve jQuery and jQuery-UI from Google's CDN

Created 12 years ago by Yeti, updated 11 years ago by fad.

There are good reasons to use Google's Content Delivery Network (CDN) to serve jQuery and jQuery UI on your site:

14 0
17 followers
Viewed: 42 553 times
Version: 1.1
Category: Tutorials

Using CAutoComplete to display one value and submit another

Created 15 years ago by luoshiben, updated 11 years ago by mohammad sharif ahrari.

Have you ever wanted to use an auto-complete field to look up a user or some other data, but want the database ID of that user or data returned as well so that you can more easily perform some function when the form is submitted? Thanks to Yii's CAutoComplete widget and [jQuery's Autocomplete plugin](http://plugins.jquery.com/project/jq-autocomp...

7 3
11 followers
Viewed: 64 333 times
Version: 1.1
Category: Tutorials

Simple way to use AutoComplete using different ID and Display Value

Created 11 years ago by raheelk2k, updated 11 years ago by raheelk2k.

Usually when we use AutoComplete in a project, We need to show "title" or "name" in the list, while when the form is posted, we need some sort of integer ID referring to the selected value. Out of the Box, CJuiAutoComplete widget doesn't provides different display text and post values.

6 0
13 followers
Viewed: 62 689 times
Version: 1.1
Category: Tutorials

Custom Number Formatting or Decimal Separators and i18n

Created 11 years ago by c@cba, updated 11 years ago by c@cba.

By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...

4 0
16 followers
Viewed: 86 361 times
Version: 1.1
Category: Tutorials

Our WebApp that will run without downtime during update/upgrade

Created 12 years ago by Pinoy Coderz, updated 11 years ago by Maurizio Domba Cerin.

How many of us wonder how we can upgrade the website without hurting the operation of our WebApp?

8 2
7 followers
Viewed: 14 162 times
Version: 1.1
Category: Tutorials
Tags: tutorial

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

Created 11 years ago by bluezed, updated 11 years ago by bluezed.

Inspired by it I extended the CButtonColumn class like this:

5 0
7 followers
Viewed: 43 307 times
Version: 1.1
Category: Tutorials

Simple RBAC

Created 11 years ago by hasanavi, updated 11 years ago by Stageline.

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.

33 1
43 followers
Viewed: 118 462 times
Version: 1.1
Category: Tutorials

Create Yii Project In Cloud9

Created 11 years ago by Ben, updated 11 years ago by Ben.

This tutorial will guide you through the process of creating a yii application using Cloud9. We will use a git workspace to enable version control and also show how to link the Cloud9 workspace to GitHub.

2 0
5 followers
Viewed: 37 830 times
Version: 1.1
Category: Tutorials