Wiki articles

Showing 1-20 of 650 items.

When to use Active Record

Created 10 months ago by samdark.

When to use Active Record is a common question among developers, Yii and overall.

9 0
3 followers
Viewed: 25 014 times
Version: all
Category: FAQs

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

Created 10 years ago by qiang, updated 10 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: 10 926 times
Version: 1.1
Category: Tutorials
Tags:

Integrating with other frameworks

Created 10 years ago by KJedi, updated 10 years ago by KJedi.

When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps:

4 1
7 followers
Viewed: 24 104 times
Version: 1.1
Category: Tutorials
Tags:

How to make customizable Db Table prefixes using ActiveRecord

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

Yii's ActiveRecord classes are powerful, but they fall short when you want to have a configurable table prefix for your application.

0 0
1 follower
Viewed: 18 679 times
Version: 1.1
Category: Tutorials
Tags:

XSS safe model content

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

In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.

4 0
1 follower
Viewed: 10 826 times
Version: 1.1
Category: Tutorials
Tags:

Simplified meta tags

Created 9 years ago by Y!!, updated 9 years ago by Y!!.

If we want to set meta tags on a per page (controller-action) basis, we may use the clientScript application component.

13 0
17 followers
Viewed: 47 919 times
Version: 1.1
Category: Tutorials
Tags:

Using CJuiDialog to display flash Messages in Dialogues

Created 8 years ago by thyseus, updated 8 years ago by thyseus.

In order to nicely display flash Messages, create view like this called views/site/dialog.php :

10 0
9 followers
Viewed: 25 233 times
Version: 1.1
Category: Tutorials
Tags:

List with multiple checkbox

Created 8 years ago by matkaz, updated 8 years ago by matkaz.

It is a common case coders often come accross. For example the purpose of these checkbox is to mark records to be deleted

4 0
8 followers
Viewed: 36 092 times
Version: 1.1
Category: Tutorials
Tags:

How to add an analogue clock widget on your skeleton application

Created 8 years ago by mocapapa, updated 8 years ago by mocapapa.


Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.

1 0
1 follower
Viewed: 9 369 times
Version: 1.1
Category: Tutorials
Tags:

i18n for your model in just 1 line

Created 9 years ago by mintao, updated 8 years ago by Orteko.

A simple trick to get the localized version of a model field is to add this little method to your models.

12 0
9 followers
Viewed: 15 498 times
Version: 1.1
Category: Tutorials
Tags: i18n

Installing and configuring the Yii User Management Module under a fresh skeleton application generated by yiic

Created 9 years ago by thyseus, updated 8 years ago by Orteko.

p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module.

12 2
15 followers
Viewed: 78 110 times
Version: 1.1
Category: Tutorials

SQL Logging and Profiling in FireBug (Yii 1.1)

Created 9 years ago by mindplay, updated 8 years ago by qiang.

During development, it's often very handy to have SQL logging and profiling.

6 0
6 followers
Viewed: 31 226 times
Version: 1.1
Category: Tutorials
Tags: Logging

Integrating FirePHP

Created 8 years ago by ricardograna, updated 8 years ago by ricardograna.
  • Install Firebug plugin for Firefox from here.
7 0
6 followers
Viewed: 15 198 times
Version: 1.1
Category: Tutorials
Tags:

Ajax update

Created 8 years ago by zaccaria, updated 8 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 158 times
Version: 1.1
Category: Tips
Tags: AJAX

Reading the doc

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

Using the jamselect widget with min and max values

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

How to use markItUp! on a text field for full WYSIWYG editing

Created 10 years ago by lucifurious, updated 8 years ago by wei.

This tutorial will show you how to use the Pogostick Yii Extension Library to make an HTML TEXTAREA input element into a full-fledged WYSIWYG editor pretty much with very little code.

3 0
3 followers
Viewed: 29 492 times
Version: 1.1
Category: Tutorials

How To Connect With Twitter From Yii

Created 10 years ago by lucifurious, updated 8 years ago by wei.

Here is a quick tutorial for connecting Yii with Twitter using the Pogostick Yii Extensions Library.

4 1
12 followers
Viewed: 27 931 times
Version: 1.1
Category: Tutorials
Tags: twitter

How to use Highslide for image popups

Created 10 years ago by mocapapa, updated 8 years ago by wei.

>Highslide JS is an open source JavaScript software, offering a Web 2.0 approach to popup windows. It streamlines the use of thumbnail images and HTML popups on web pages. > > + No plugins like Flash or Java required. > + Popup blockers are no problem. The content expands within the active browser window. > + Single click. After opening the image or HTML popup, the user can scroll further down...

1 0
2 followers
Viewed: 22 778 times
Version: 1.1
Category: Tutorials
Tags: image, popups

How to extend yiic shell commands

Created 9 years ago by qiang, updated 8 years ago by wei.

While yiic shell tool is very convenient at generating skeleton code in our application, the generated code is not always what we want. For example, we may want the generated code to carry specific copyright information; we may want to use our own coding style; we may want to add more features; and so on. All these can be accomplished easily in Yii.

2 0
5 followers
Viewed: 27 606 times
Version: 1.1
Category: Tutorials
Tags: yiic