Wiki articles in category Tutorials

Showing 1-20 of 258 items.

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 940 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 119 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 695 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 831 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 938 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 245 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 104 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 376 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 513 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 130 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 244 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 207 times
Version: 1.1
Category: Tutorials
Tags:

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 512 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 949 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 793 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 620 times
Version: 1.1
Category: Tutorials
Tags: yiic

How to make use of a fragment cache

Created 10 years ago by dalip, updated 8 years ago by wei.
1 0
2 followers
Viewed: 12 985 times
Version: 1.1
Category: Tutorials

How to implement multiple page layouts in an application

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

Module based login

Created 8 years ago by suriyansuresh, updated 8 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: 62 921 times
Version: 1.1
Category: Tutorials

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

Created 8 years ago by Yeti, updated 8 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: 42 032 times
Version: 1.1
Category: Tutorials
Tags: