Wiki articles

Showing 241-260 of 826 items.

Enabling Gzip

Created 17 years ago by pestaa pestaa, updated 14 years ago by Yang He Yang He.

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

6 1
13 followers
Viewed: 45 552 times
Version: 1.1
Category: Tutorials
Tags:

Adding login form to each page

Created 16 years ago by pestaa pestaa, updated 14 years ago by Yang He Yang He.

After adding proper form to the main layout, like:

3 1
7 followers
Viewed: 56 321 times
Version: 1.1
Category: Tutorials

How to add ajax-loading indicators

Created 16 years ago by schmunk schmunk, updated 14 years ago by Yang He 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: 84 846 times
Version: 1.1
Category: Tutorials
Tags: AJAX

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

Created 16 years ago by idle sign idle sign, updated 14 years ago by Yang He Yang He.

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

4 0
3 followers
Viewed: 46 855 times
Version: 1.1
Category: Tutorials
Tags:

Encapsulate db and module configurations

Created 16 years ago by ricardograna ricardograna, updated 14 years ago by Yang He 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: 24 943 times
Version: 1.1
Category: Tutorials
Tags: module

Using search engine and user friendly URLs

Created 16 years ago by qiang qiang, updated 14 years ago by Yang He 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: 116 073 times
Version: 1.1
Category: Tutorials
Tags: SEO, URL

Using the configuration file, explain what can be configured.

Created 16 years ago by atrandafir atrandafir, updated 14 years ago by Yang He 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: 99 669 times
Version: 1.1
Category: Tutorials
Tags:

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

Created 16 years ago by atrandafir atrandafir, updated 14 years ago by Yang He 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: 161 385 times
Version: 1.1
Category: Tutorials
Tags:

CSS, JS and image URL shortcut methods

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

ACL and RBAC

Created 14 years ago by zeroByte zeroByte, updated 14 years ago by kevinkorb kevinkorb.

This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obs...

0 0
3 followers
Viewed: 36 411 times
Version: 1.1
Category: How-tos

Model password confirmation field.

Created 14 years ago by twisted1919 twisted1919, updated 14 years ago by PashaL PashaL.

I had some troubles with the password confirmation field for when adding updating user records, so i thought that i should share the way i got it working.

8 0
19 followers
Viewed: 100 987 times
Version: 1.1
Category: How-tos

Update content in AJAX with renderPartial

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

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

43 0
46 followers
Viewed: 392 492 times
Version: 1.1
Category: Tutorials
Tags: AJAX

Publish yii webapp using Git push

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

I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;

2 0
8 followers
Viewed: 22 723 times
Version: 1.1
Category: How-tos
Tags: git

Working with radiobutton list

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

How to setup FCKeditor

Created 17 years ago by krillzip krillzip, updated 14 years ago by Dark-Sun 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: 39 275 times
Version: 1.1
Category: Tutorials
Tags:

Alternative wildcard characters CDbCriteria

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

In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $...

1 0
2 followers
Viewed: 13 694 times
Version: 1.1
Category: How-tos

How to filter CGridView with From Date and To Date datepicker

Created 14 years ago by kiran sharma kiran sharma, updated 14 years ago by kiran sharma kiran sharma.

This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

9 0
26 followers
Viewed: 67 225 times
Version: 1.1
Category: Tips

Auto set model fields values

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

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

5 0
11 followers
Viewed: 34 447 times
Version: 1.1
Category: Tutorials

Working with CGridView in Admin Panel

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

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

21 1
41 followers
Viewed: 94 849 times
Version: 1.1
Category: Tutorials

How to create front and admin side login form

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

In this WIKI you can learn how to create front and admin login form, using database.

4 0
15 followers
Viewed: 104 779 times
Version: 1.1
Category: How-tos