Wiki articles

Showing 241-260 of 651 items.

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 107 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 687 times
Version: 1.1
Category: Tutorials
Tags: URL

ACL and RBAC

Created 11 years ago by zeroByte, updated 11 years ago by 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: 29 609 times
Version: 1.1
Category: How-tos

Model password confirmation field.

Created 12 years ago by twisted1919, updated 11 years ago by 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: 93 850 times
Version: 1.1
Category: How-tos

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

Publish yii webapp using Git push

Created 11 years ago by rootbear, updated 11 years ago by 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: 19 070 times
Version: 1.1
Category: How-tos
Tags: git

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 806 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 830 times
Version: 1.1
Category: Tutorials
Tags:

Alternative wildcard characters CDbCriteria

Created 11 years ago by maigret, updated 11 years ago by 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: 11 554 times
Version: 1.1
Category: How-tos

How to filter CGridView with From Date and To Date datepicker

Created 11 years ago by kiran sharma, updated 11 years ago by 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: 63 213 times
Version: 1.1
Category: Tips

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 934 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 372 times
Version: 1.1
Category: Tutorials

How to create front and admin side login form

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

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

4 0
15 followers
Viewed: 99 877 times
Version: 1.1
Category: How-tos

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 576 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 552 times
Version: 1.1
Category: Tutorials

How to render a view in Fancybox using ajax

Created 11 years ago by rix.rix., updated 11 years ago by 张 迪.

Sometimes you want to render a view in Fancybox.

4 0
14 followers
Viewed: 30 971 times
Version: 1.1
Category: How-tos

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 326 times
Version: 1.1
Category: Tutorials

Yii behind a reverse proxy, SSL support and correct IP logging

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

If you are hosting Yii behind a reverse proxy, for example nginx, and you are having issues with your logs showing the proxies IP, or the urls being created arn't being created for SSL because your SSL certs are located on your reverse proxy instead of the Yii server, this code may be able to help you. I placed them in the very top of Yii's entry script, index.php

0 0
2 followers
Viewed: 17 838 times
Version: 1.1
Category: Tips

Extending CJuiDialog

Created 11 years ago by dstudio, updated 11 years ago by Maurizio Domba Cerin.

Sometimes you have CJuiDialog with different content but same buttons (or width, height). If you don't want to repeat yourself this is a great solution:

1 2
2 followers
Viewed: 18 302 times
Version: 1.1
Category: How-tos

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 685 times
Version: 1.1
Category: Tutorials