Wiki articles

Showing 121-140 of 651 items.

Debugging CActiveRecord failed save() attempts

Created 10 years ago by Boaz, updated 9 years ago by Boaz.

When you're filling up a form of a CActiveRecord (using CActiveForm for example), usually you'll construct your code so that in case of validation error you'll get back the form with the error displayed back to you, typically when CActiveForm.errorSummary() is used. This is how its done by Gii.

4 0
2 followers
Viewed: 38 893 times
Version: 1.1
Category: Tips

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 10 years ago by Luis Lobo Borobia, updated 6 years ago by Luis Lobo Borobia.

We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

2 0
2 followers
Viewed: 14 392 times
Version: all
Category: Tips

free PHP IDE CodeLobster supports Yii framework

Created 12 years ago by clod, updated 12 years ago by clod.

This page is created to supply short directions and general tips for managing a Yii application in Codelobster PHP Edition.

5 0
1 follower
Viewed: 20 017 times
Version: 1.1
Category: Tutorials

How to display images in CJuiAutoComplete without extenstions

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

I wanted to customize the CJuiAutoComplete, so that it displays a thumb image before the label like the one shown in the following image:

0 0
2 followers
Viewed: 12 754 times
Version: 1.1
Category: Tutorials

Yii configuration: Dynamic & User dependent

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

It is difficult to perform user dependent theming through a general configuration in 'main.php'. This article proposes a method to do so through a Factory that dynamically generates classes to allow delayed resolution of actual user values. This means that you can refer to values that are stored in the database through the CActiveRecord before Yii is actually loaded. The values will be fetched...

1 0
1 follower
Viewed: 12 663 times
Version: 1.1
Category: How-tos

Checking for "expired" sessions/logins on the client side

Created 10 years ago by le_top, updated 8 years ago by le_top.

Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

4 0
12 followers
Viewed: 35 285 times
Version: 1.1
Category: How-tos

Using events with CAction classes

Created 12 years ago by Antonio Ramirez, updated 12 years ago by 张 迪.

As you know, events are used by:

9 0
9 followers
Viewed: 23 366 times
Version: 1.1
Category: Tips

Windows Web Development With AMPPS, NetBeans and XDebug

Created 12 years ago by morcen, updated 12 years ago by morcen.
  1. Operating system: Windows
4 0
6 followers
Viewed: 38 425 times
Version: 1.1
Category: Tutorials

TDD with PHPUnit_Story and Yii

Created 12 years ago by sidewinder, updated 12 years ago by sidewinder.

Having said all of that, I want to add that the purpose of this article is not to convince anyone to write tests or design following TDD patterns. I'm not going to change the world to what I think is good. It's just about showing how to use some tools together with Yii Framework.

7 0
9 followers
Viewed: 23 938 times
Version: 1.1
Category: Tutorials

First Yii App: CTabView

Created 15 years ago by meanpenguin, updated 11 years ago by Yang He.

Once you are completed with the "Creating First Yii Application", the following can be done.

0 2
1 follower
Viewed: 27 498 times
Version: 1.1
Category: Tutorials
Tags:

Q: My yiic tool cannot run model and crud commands. Why?

Created 15 years ago by qiang, updated 15 years ago by mishhh.

Some PHP installations may use a different php.ini file for CLI PHP (command line PHP parser). As a result, when running the model or crud command in yiic shell, you may encounter errors like "YiiBase::include(PDO.php): failed to open stream..." or "...could not find driver", even though the requirement checker confirms you have PDO and the corresponding database driver.

0 0
1 follower
Viewed: 14 932 times
Version: 1.1
Category: Tutorials
Tags:

Advanced CTabView using CClipWidget

Created 15 years ago by krillzip, updated 11 years ago by Yang He.

Here is a way to dynamically extend tabs based on clips.
Probably even more complex things could be done.

2 0
2 followers
Viewed: 18 181 times
Version: 1.1
Category: Tutorials
Tags:

Autocomplete in console command

Created 12 years ago by Stamm, updated 12 years ago by Stamm.

Missed of autocomplete in bash console commands yii make me sad.

3 0
4 followers
Viewed: 15 358 times
Version: 1.1
Category: Tutorials

checkBox in CGridview

Created 9 years ago by n-r, updated 9 years ago by n-r.

some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :

2 0
3 followers
Viewed: 29 377 times
Version: 1.1
Category: Others

AutoTimestampBehavior

Created 15 years ago by jonah, updated 11 years ago by Yang He.

This behavior will automatically set timestamp fields to the row creation and modification times.

2 2
3 followers
Viewed: 22 524 times
Version: 1.1
Category: Tutorials
Tags:

Building Page Specific Menus using CMenu

Created 10 years ago by mistryb, updated 9 years ago by mistryb.

The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.

0 0
3 followers
Viewed: 17 090 times
Version: 1.1
Category: How-tos
Tags: CMenu

How to validate the uniqueness of multiple columns

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

I am going to show you an effective way to validate the uniqueness of multiple columns.

2 0
2 followers
Viewed: 18 295 times
Version: 1.1
Category: How-tos

Display Status image on CGridView column

Created 10 years ago by Ankit Modi, updated 5 years ago by samdark.

How to display status image on admin gridview.

0 0
5 followers
Viewed: 21 125 times
Version: 1.1
Category: Tutorials

MailGun Api Wrapper to send emails

Created 9 years ago by VINAY Kr. SHARMA, updated 4 years ago by Maurizio Domba Cerin.

MailGun.php Class

1 0
2 followers
Viewed: 12 640 times
Version: 1.1
Category: How-tos
Tags: email, mailgun

Rendering a view file in a console application

Created 12 years ago by Tompi, updated 12 years ago by Tompi.

When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.

2 1
7 followers
Viewed: 19 805 times
Version: 1.1
Category: How-tos