Wiki articles

Showing 81-100 of 651 items.

Reading the doc

Created 13 years ago by zaccaria, updated 13 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: 12 421 times
Version: 1.1
Category: Tips
Tags: doc

Ajax update

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

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

16 2
14 followers
Viewed: 57 844 times
Version: 1.1
Category: Tips
Tags: AJAX

CSS Naming Conventions

Created 13 years ago by qiang, updated 5 years 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: 48 455 times
Version: 1.1
Category: Tutorials

Module based login

Created 13 years ago by suriyansuresh, updated 13 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: 89 541 times
Version: 1.1
Category: Tutorials

Using the jamselect widget with min and max values

Created 13 years ago by got 2 doodle, updated 13 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: 18 697 times
Version: 1.1
Category: How-tos

Implementing cron jobs with Yii

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

There are two ways to run a cron job:

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

Configuring PhpStorm IDE for Yii 1.1

Created 13 years ago by samdark, updated 6 years ago by samdark.
  • Complete code: Ctrl+Space.
  • Show method arguments: Ctrl+Q.
59 1
53 followers
Viewed: 152 632 times
Version: 1.1
Category: Tips
Tags: IDE, PhpStorm

Using the jqueryslidemenu plugin with CMenu

Created 13 years ago by Antonio Ramirez, updated 13 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: 41 873 times
Version: 1.1
Category: How-tos

Using recaptchlib in your projects

Created 13 years ago by Antonio Ramirez, updated 13 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: 15 291 times
Version: 1.1
Category: How-tos

Saving files to a blob field in the database

Created 13 years ago by zaccaria, updated 13 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.

6 2
17 followers
Viewed: 79 534 times
Version: 1.1
Category: Tips

Extending CActiveForm for some form display fixes and language tweaks

Created 13 years ago by Trejder, updated 13 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: 23 980 times
Version: 1.1
Category: Tips

Yii Related Sites

Created 13 years ago by jacmoe, updated 3 years ago by samdark.

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

31 0
34 followers
Viewed: 85 908 times
Version: 1.1
Category: Others

Using Yii with Oracle through PDO

Created 13 years ago by Trejder, updated 12 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: 69 071 times
Version: 1.1
Category: Tips

Yii and XAMPP server on Windows

Created 13 years ago by Trejder, updated 13 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: 79 300 times
Version: 1.1
Category: Tutorials

How to use PHPExcel external library with Yii

Created 13 years ago by Antonio Ramirez, updated 10 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: 138 654 times
Version: 1.1
Category: How-tos

Code style

Created 13 years ago by zaccaria, updated 13 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: 27 777 times
Version: 1.1
Category: Tips
Tags: mvc

Adding Yii Search to Your Browser Search Box

Created 13 years ago by qiang, updated 6 years 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: 63 448 times
Version: all
Category: Tips

Directory independent extensions

Created 13 years ago by GOsha, updated 13 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: 16 879 times
Version: 1.1
Category: Tips

Using CButtonColumn to customize buttons in CGridView

Created 13 years ago by Trejder, updated 11 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
59 followers
Viewed: 344 640 times
Version: 1.1
Category: How-tos

Theming your Zii Widgets

Created 13 years ago by Luis Lobo Borobia, updated 13 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: 61 380 times
Version: 1.1
Category: Tutorials