Wiki articles in category Tutorials

Showing 101-120 of 259 items.

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: 35 906 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 567 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: 88 381 times
Version: 1.1
Category: Tutorials
Tags: SEO, URL

Using the configuration file, explain what can be configured.

Created 10 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: 76 329 times
Version: 1.1
Category: Tutorials
Tags:

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

Created 10 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: 139 947 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: 30 376 times
Version: 1.1
Category: Tutorials
Tags: URL

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: 289 355 times
Version: 1.1
Category: Tutorials
Tags: AJAX

Working with radiobutton list

Created 7 years ago by vibhaJadwani, updated 7 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: 67 036 times
Version: 1.1
Category: Tutorials

How to setup FCKeditor

Created 11 years ago by krillzip, updated 7 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: 23 816 times
Version: 1.1
Category: Tutorials
Tags:

Auto set model fields values

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

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

5 0
11 followers
Viewed: 26 082 times
Version: 1.1
Category: Tutorials

Working with CGridView in Admin Panel

Created 7 years ago by vibhaJadwani, updated 7 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: 84 403 times
Version: 1.1
Category: Tutorials

How to setup CKeditor

Created 7 years ago by Dark-Sun, updated 7 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: 30 068 times
Version: 1.1
Category: Tutorials

Serve jQuery and jQuery-UI from Google's CDN

Created 8 years ago by Yeti, updated 7 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
19 followers
Viewed: 36 030 times
Version: 1.1
Category: Tutorials

Using CAutoComplete to display one value and submit another

Created 11 years ago by luoshiben, updated 7 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: 57 371 times
Version: 1.1
Category: Tutorials

Simple way to use AutoComplete using different ID and Display Value

Created 7 years ago by raheelk2k, updated 7 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: 32 037 times
Version: 1.1
Category: Tutorials

Custom Number Formatting or Decimal Separators and i18n

Created 7 years ago by c@cba, updated 7 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: 70 286 times
Version: 1.1
Category: Tutorials

Our WebApp that will run without downtime during update/upgrade

Created 8 years ago by Pinoy Coderz, updated 7 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: 11 915 times
Version: 1.1
Category: Tutorials
Tags: tutorial

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

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

Inspired by it I extended the CButtonColumn class like this:

5 0
7 followers
Viewed: 39 411 times
Version: 1.1
Category: Tutorials

Simple RBAC

Created 7 years ago by hasanavi, updated 7 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: 104 707 times
Version: 1.1
Category: Tutorials

Create Yii Project In Cloud9

Created 7 years ago by Ben, updated 7 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: 31 599 times
Version: 1.1
Category: Tutorials