Wiki articles

Showing 81-100 of 650 items.

Reading the doc

Created 9 years ago by zaccaria, updated 9 years ago by Orteko.

Almost all the information you need whilst working with yii is written in the Class Reference.

21 0
3 followers
Viewed: 9 577 times
Version: 1.1
Category: Tips
Tags: doc

Ajax update

Created 9 years ago by zaccaria, updated 9 years ago by zaccaria.

Often happens to have the need of change a part of the page with ajax.

16 2
14 followers
Viewed: 52 702 times
Version: 1.1
Category: Tips
Tags: AJAX

CSS Naming Conventions

Created 9 years ago by qiang, updated 10 months ago by samdark.

In this article, we introduce a set of CSS naming conventions that we have applied in several big projects and achieved success. The goal of these naming conventions is to eliminate the possibility of naming conflicts, facilitate debugging and maintenance, and to simplify the naming process.

35 0
24 followers
Viewed: 36 115 times
Version: 1.1
Category: Tutorials

Module based login

Created 9 years ago by suriyansuresh, updated 9 years ago by suriyansuresh.

If you want to add module based login to a site without using RBAC, please follow these guidelines.

13 0
18 followers
Viewed: 63 820 times
Version: 1.1
Category: Tutorials

Using the jamselect widget with min and max values

Created 9 years ago by got 2 doodle, updated 9 years ago by wei.

The keywords will be stored in a text field in a comma delimited format. The keywords will be created by the site administrator.

2 0
1 follower
Viewed: 14 164 times
Version: 1.1
Category: How-tos

Implementing cron jobs with Yii

Created 9 years ago by samdark, updated 9 years ago by samdark.

There are two ways to run a cron job:

27 2
27 followers
Viewed: 97 443 times
Version: 1.1
Category: How-tos
Tags: cli, cron

Configuring PhpStorm IDE for Yii 1.1

Created 9 years ago by samdark, updated a year ago by samdark.
  • Complete code: Ctrl+Space.
  • Show method arguments: Ctrl+Q.
59 1
53 followers
Viewed: 135 925 times
Version: 1.1
Category: Tips
Tags: IDE, PhpStorm

Using the jqueryslidemenu plugin with CMenu

Created 9 years ago by Antonio Ramirez, updated 9 years ago by pc131.

Yii makes it really easy for all to use their already made objects that automate everything we do. It provides also great power of flexibility and styling but hey, we programmers tend to complicate our lives and push a little more the power of our tools.

18 1
8 followers
Viewed: 37 048 times
Version: 1.1
Category: How-tos

Using recaptchlib in your projects

Created 9 years ago by Antonio Ramirez, updated 9 years ago by Antonio Ramirez.

It is good when someone writes extensions for us but trust, sometimes we forget about other approaches that, if we know the library, we shouldn't forget.

5 0
4 followers
Viewed: 12 770 times
Version: 1.1
Category: How-tos

Saving files to a blob field in the database

Created 9 years ago by zaccaria, updated 9 years ago by zaccaria.

As a follow-up from the How to upload a file using a model wiki entry that explains how to save a file to the filesystem, this article will do the same using a blob field in the database.

5 2
17 followers
Viewed: 66 778 times
Version: 1.1
Category: Tips

Extending CActiveForm for some form display fixes and language tweaks

Created 9 years ago by Trejder, updated 8 years ago by Trejder.

In this simple example I'll demonstrate how to extend CActiveForm class to overload some drawing functions to achieve some commonly used fixes in forms.

The colon

Here is overloaded version of CActiveForm.labelEx that adds colon (:) at the end of text of label with respecting CHtml::$afterRequiredLabel and CHtml::$beforeRequiredLabel

5 0
6 followers
Viewed: 19 641 times
Version: 1.1
Category: Tips

Yii Related Sites

Created 9 years ago by jacmoe, updated 3 years ago by Ahmed Khan.

This is a list of blogs, off-site tutorials and other resources about Yii.

31 0
34 followers
Viewed: 63 510 times
Version: 1.1
Category: Others

Using Yii with Oracle through PDO

Created 9 years ago by Trejder, updated 8 years ago by waterloomatt.

When you are developing an webapp with Yii that will be using Oracle RDBMS you should take a look at these issues in which you may run into it.

1 0
7 followers
Viewed: 58 378 times
Version: 1.1
Category: Tips

Yii and XAMPP server on Windows

Created 9 years ago by Trejder, updated 9 years ago by Trejder.

This article explains issues about installing XAMPP server package (Lite version) on Windows OS and configuring it for serving webapps written in Yii. Please note, that XAMPP is available for many more platforms and systems. I write about Windows edition as it was the only one tested by me.

3 0
0 follower
Viewed: 69 903 times
Version: 1.1
Category: Tutorials

How to use PHPExcel external library with Yii

Created 9 years ago by Antonio Ramirez, updated 6 years ago by cgsmith.

Trying to learn and help some other programmers to find their solutions on the Yii Forum (I think is a superb way to learn the framework), I was facing one challenge with an external library that a fellow programmer wanted to use -quite good indeed: PHPExcel. And what is PHPExcel?

27 1
25 followers
Viewed: 115 614 times
Version: 1.1
Category: How-tos

Code style

Created 9 years ago by zaccaria, updated 9 years ago by g3ck0.

Often, when writing widgets or editing Yii code, it is unclear whether or not the code is following the MVC pattern.

29 0
7 followers
Viewed: 22 028 times
Version: 1.1
Category: Tips
Tags: mvc

Adding Yii Search to Your Browser Search Box

Created 9 years ago by qiang, updated a year ago by CeBe.

The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.

25 0
6 followers
Viewed: 50 873 times
Version: all
Category: Tips

Directory independent extensions

Created 9 years ago by GOsha, updated 9 years ago by GOsha.

Many people want to use downloaded extensions in their own way. As for me most of the extensions require me to correct Yii::import() instructions inside their source code. All these extensions are directory dependent. To avoid the situation described above, I suggest to implement pseudo-anonymous aliases:

// take the curr...
16 1
7 followers
Viewed: 14 062 times
Version: 1.1
Category: Tips

Using CButtonColumn to customize buttons in CGridView

Created 9 years ago by Trejder, updated 7 years ago by Gismo.

The easiest way to customize look and behaviour of them is to use series of CButtonColumn properties, like: updateButtonImageUrl (path to image for update button), updateButtonLabel (label for the update button; not HTML-encoded), updateButtonOptions (HTML options for this button, used in the way as many htmlOptions property for many widgets) and updateButtonUrl (a PHP expresion th...

75 0
60 followers
Viewed: 318 852 times
Version: 1.1
Category: How-tos

Theming your Zii Widgets

Created 9 years ago by Luis Lobo Borobia, updated 8 years ago by Ivan Wilhelm.

One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.

17 0
31 followers
Viewed: 57 174 times
Version: 1.1
Category: Tutorials