Wiki articles

Showing 741-760 of 823 items.

CSS Naming Conventions

Created 14 years ago by qiang qiang, updated 6 years ago by samdark samdark.

In this article, we introduce a set of CSS naming conventions that we have applied in several big projects and achieved success. The goal of these naming conventions is to eliminate the possibility of naming conflicts, facilitate debugging and maintenance, and to simplify the naming process.

35 0
24 followers
Viewed: 52 872 times
Version: 1.1
Category: Tutorials

Ajax update

Created 14 years ago by zaccaria zaccaria, updated 14 years ago by zaccaria zaccaria.

Often happens to have the need of change a part of the page with ajax.

16 2
14 followers
Viewed: 61 141 times
Version: 1.1
Category: Tips
Tags: AJAX

Reading the doc

Created 14 years ago by zaccaria zaccaria, updated 14 years ago by Orteko Orteko.

Almost all the information you need whilst working with yii is written in the Class Reference.

21 0
3 followers
Viewed: 13 562 times
Version: 1.1
Category: Tips
Tags: doc

Integrating FirePHP

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

NetBeans IDE and Yii projects

Created 14 years ago by marcovtwout marcovtwout, updated 10 years ago by marcovtwout marcovtwout.

This page is created to supply short directions and general tips for managing a Yii application in NetBeans IDE.

65 0
66 followers
Viewed: 256 074 times
Version: 1.1
Category: Tutorials

How to add an analogue clock widget on your skeleton application

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

List with multiple checkbox

Created 15 years ago by matkaz matkaz, updated 15 years ago by matkaz 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: 41 879 times
Version: 1.1
Category: Tutorials
Tags:

Add information to Yii::app()->user by extending CWebUser (better version)

Created 15 years ago by emix emix, updated 11 years ago by Anas AbuDayah Anas AbuDayah.

I found a better solution.

5 0
10 followers
Viewed: 51 598 times
Version: 1.1
Category: Tutorials
Tags: rbac, user, Yii

Using CJuiDialog to display flash Messages in Dialogues

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

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

10 0
9 followers
Viewed: 29 657 times
Version: 1.1
Category: Tutorials
Tags:

Multiple Databases and Multiple Domains

Created 15 years ago by got 2 doodle got 2 doodle, updated 14 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

Add these lines in /config/main.php

'components'=>array(
.........
		'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=database1',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => 'itsasecret',
			'charset' => 'utf8',
		),
		'db2'=>array(
		    'class' => 'CDbConnection',
			'connectionString' => 'mysql:host=localhost;dbname=databa...
13 2
15 followers
Viewed: 58 597 times
Version: 1.1
Category: Tutorials
Tags: database

Named scope - Get orphan AR without losing primary key

Created 15 years ago by cma cma, updated 14 years ago by Steve Friedl Steve Friedl.

Sometime, in a many-to-many relation, you need to retrieve AR that aren't linked. In practice, AR with null value in the join table. So you implements a criteria like this :

public function scopeUnused( $useAnd = true )
    {
        $join = " left outer join composed_by j on t.ID = j.ID ";
        $condition = ' j.ID Is Null';

0 0
2 followers
Viewed: 10 464 times
Version: 1.1
Category: Tutorials
Tags:

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

Created 15 years ago by Yeti Yeti, updated 14 years ago by Trejder 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: 47 332 times
Version: 1.1
Category: Tutorials
Tags:

Add charts / print buttons to your webapp

Created 15 years ago by CoLT CoLT, updated 14 years ago by CoLT CoLT.

In this article you will find Yii framework extensions enabling you to add various charts/print out buttons etc. to your webapp.

6 0
9 followers
Viewed: 39 855 times
Version: 1.1
Category: Tutorials

Use different environments (development, production, etc) in your app with EASY Environment Class

Created 15 years ago by nancoder nancoder, updated 14 years ago by marcovtwout marcovtwout.

Hi, I was having problems each time I had to test the site or edit something on my local machine, like changing the db connection, change the debug mode to false, the trace level to 0, disable Gii, etc. So I created a class to resolve all my problems, hope to help you in your projects!

7 0
7 followers
Viewed: 80 709 times
Version: 1.1
Category: Tutorials
Tags:

CJuiDialog and AjaxSubmitButton

Created 15 years ago by tydeas_dr tydeas_dr, updated 14 years ago by phazei phazei.

Hello ppl. Even though i have a small experience with yii I though of writing this to help people which want to do something similar.

33 1
45 followers
Viewed: 130 957 times
Version: 1.1
Category: Tutorials
Tags: AJAX

How to install pdo_oci

Created 15 years ago by gallego123 gallego123, updated 14 years ago by gallego123 gallego123.

From: http://lacot.org/ and me.

1 0
3 followers
Viewed: 37 697 times
Version: 1.1
Category: How-tos

Display an AJAX tree from your DB using CTreeView

Created 15 years ago by François Gannaz François Gannaz, updated 13 years ago by François Gannaz François Gannaz.

This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).

19 0
21 followers
Viewed: 75 793 times
Version: 1.1
Category: Tutorials

Ordering Models by Weight with CJuiSortable

Created 15 years ago by Matt Kelliher Matt Kelliher, updated 12 years ago by Phil Loaiza Phil Loaiza.

In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.

9 0
10 followers
Viewed: 17 697 times
Version: 1.1
Category: Tutorials
Tags:

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

Created 15 years ago by thyseus thyseus, updated 14 years ago by Orteko 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: 98 579 times
Version: 1.1
Category: Tutorials

XSS safe model content

Created 15 years ago by phiras phiras, updated 15 years ago by phiras 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: 13 767 times
Version: 1.1
Category: Tutorials
Tags: