Wiki articles

Showing 1-20 of 651 items.

Convert JSON data to html table for display on page

Created a year ago by shiv.

I have a calls which help me display json directly in html table.

0 0
1 follower
Viewed: 68 013 times
Version: all
Category: Tips
Tags: html, JSON

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 938 times
Version: 1.1
Category: Tutorials
Tags:

Integrating with other frameworks

Created 14 years ago by KJedi, updated 14 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: 27 752 times
Version: 1.1
Category: Tutorials
Tags:

How to make customizable Db Table prefixes using ActiveRecord

Created 14 years ago by killermonk, updated 14 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: 23 892 times
Version: 1.1
Category: Tutorials
Tags:

XSS safe model content

Created 14 years ago by phiras, updated 14 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: 12 790 times
Version: 1.1
Category: Tutorials
Tags:

Simplified meta tags

Created 14 years ago by Y!!, updated 13 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: 55 660 times
Version: 1.1
Category: Tutorials
Tags:

Using CJuiDialog to display flash Messages in Dialogues

Created 13 years ago by thyseus, updated 13 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: 28 726 times
Version: 1.1
Category: Tutorials
Tags:

List with multiple checkbox

Created 13 years ago by matkaz, updated 13 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: 40 610 times
Version: 1.1
Category: Tutorials
Tags:

How to add an analogue clock widget on your skeleton application

Created 13 years ago by mocapapa, updated 13 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: 11 671 times
Version: 1.1
Category: Tutorials
Tags:

i18n for your model in just 1 line

Created 14 years ago by mintao, updated 13 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: 19 270 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 14 years ago by thyseus, updated 13 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: 95 106 times
Version: 1.1
Category: Tutorials

SQL Logging and Profiling in FireBug (Yii 1.1)

Created 14 years ago by mindplay, updated 13 years ago by qiang.

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

6 0
6 followers
Viewed: 36 626 times
Version: 1.1
Category: Tutorials
Tags: Logging

Integrating FirePHP

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

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 782 times
Version: 1.1
Category: Tips
Tags: AJAX

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 387 times
Version: 1.1
Category: Tips
Tags: doc

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 651 times
Version: 1.1
Category: How-tos

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

Created 14 years ago by lucifurious, updated 13 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: 36 794 times
Version: 1.1
Category: Tutorials

How To Connect With Twitter From Yii

Created 14 years ago by lucifurious, updated 13 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: 33 064 times
Version: 1.1
Category: Tutorials
Tags: twitter

How to use Highslide for image popups

Created 15 years ago by mocapapa, updated 13 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: 27 754 times
Version: 1.1
Category: Tutorials
Tags: image, popups

How to extend yiic shell commands

Created 14 years ago by qiang, updated 13 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: 33 099 times
Version: 1.1
Category: Tutorials
Tags: yiic