Showing 741-760 of 826 items.

CSS Naming Conventions

Created 15 years ago by qiang qiang, updated 7 years ago by samdark samdark. 4 comments

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
Viewed: 58 423 times
Version: 1.1
Category: Tutorials

Multiple Databases and Multiple Domains

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

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
Viewed: 63 374 times
Version: 1.1
Category: Tutorials

Named scope - Get orphan AR without losing primary key

Created 16 years ago by cma cma, updated 15 years ago by Steve Friedl Steve Friedl. 0 comments

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
Viewed: 11 970 times
Version: 1.1
Category: Tutorials

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

    Created 16 years ago by Yeti Yeti, updated 15 years ago by Trejder Trejder. 1 comment

    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
    Viewed: 49 736 times
    Version: 1.1
    Category: Tutorials

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

      Created 16 years ago by nancoder nancoder, updated 15 years ago by marcovtwout marcovtwout. 6 comments

      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
      Viewed: 86 485 times
      Version: 1.1
      Category: Tutorials