Wiki articles in category Tutorials

Showing 1-20 of 264 items.

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: 15 002 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 803 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 961 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 815 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 750 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 756 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 631 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 726 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 327 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 171 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 703 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: 18 018 times
Version: 1.1
Category: Tutorials
Tags:

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 868 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 136 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 854 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 163 times
Version: 1.1
Category: Tutorials
Tags: yiic

How to make use of a fragment cache

Created 15 years ago by dalip, updated 13 years ago by wei.
1 0
2 followers
Viewed: 17 287 times
Version: 1.1
Category: Tutorials

How to implement multiple page layouts in an application

Created 15 years ago by qiang, updated 13 years ago by wei.

In this tutorial, we describe how to implement multiple layouts for action views in an application. As an example, we assume that the pages in our application will use three different layouts:

19 0
22 followers
Viewed: 125 474 times
Version: 1.1
Category: Tutorials
Tags: layout

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

Installing WAMP - Apache, MySQL, & PHP on Windows 7

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

Installing WAMP on XP was pretty easy; W7 is not so trivial. It's not difficult once you know, but it took me best part of a day to figure out and required gleaning various bits of information from around the web; this tutorial brings it all together in one place to (hopefully) make other peoples lives that bit easier. It does assume that you are reasonably happy configuring Apache, PHP, and MySQL...

2 0
1 follower
Viewed: 45 707 times
Version: 1.1
Category: Tutorials
Tags: