Wiki articles in category How-tos

Showing 361-373 of 373 items.

Changing Controllers Name

Created 13 years ago by Trejder, updated 11 years ago by Trejder.

This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.

4 0
2 followers
Viewed: 27 193 times
Version: 1.1
Category: How-tos

Using setFlash for displaying various kind of messages

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

In this short how-to I will show how to customize setFlash() to display messages (flashes) styled to be success confirmation, error report or notice information. And how to achieve displaying errors in other way.

5 4
6 followers
Viewed: 93 082 times
Version: 1.1
Category: How-tos

Using CButtonColumn to customize buttons in CGridView

Created 14 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: 346 516 times
Version: 1.1
Category: How-tos

How to use PHPExcel external library with Yii

Created 14 years ago by Antonio Ramirez, updated 11 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: 140 542 times
Version: 1.1
Category: How-tos

Using recaptchlib in your projects

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

Using the jqueryslidemenu plugin with CMenu

Created 14 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: 42 518 times
Version: 1.1
Category: How-tos

Implementing cron jobs with Yii

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

There are two ways to run a cron job:

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

Using the jamselect widget with min and max values

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

How to install pdo_oci

Created 14 years ago by gallego123, updated 13 years ago by gallego123.

From: http://lacot.org/ and me.

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

How to setup RBAC with a php file

Created 14 years ago by bettor, updated 12 years ago by Stageline.

In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.

24 4
21 followers
Viewed: 114 183 times
Version: 1.1
Category: How-tos

Reference: Model rules validation

Created 14 years ago by krillzip, updated 11 years ago by Rodrigo.

This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.

99 0
114 followers
Viewed: 891 747 times
Version: 1.1
Category: How-tos

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 15 years ago by mindeh, updated 9 years ago by Boaz.

Original source code and idea are from: PHP, PDO & Nested Transactions.

41 0
26 followers
Viewed: 67 878 times
Version: 1.1
Category: How-tos

How to set up Unicode

Created 15 years ago by Mike, updated 11 years ago by Roman Solomatin.

To fix issues with display of special language characters once and for all there's a solution: use Unicode UTF-8 everywhere. If everything is set up to use Unicode, you can use mostly every language in your application.

19 0
14 followers
Viewed: 138 258 times
Version: 1.1
Category: How-tos
Tags: i18n, unicode