Showing 141-160 of 219 items.

Yii and XAMPP server on Windows

Created 15 years ago by Trejder Trejder, updated 15 years ago by Trejder Trejder. 0 comments

This article explains issues about installing XAMPP server package (Lite version) on Windows OS and configuring it for serving webapps written in Yii. Please note, that XAMPP is available for many more platforms and systems. I write about Windows edition as it was the only one tested by me.

3 0
0
Viewed: 84 859 times
Version: 1.1
Category: Tutorials

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 913 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 945 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: 12 274 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 952 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: 87 166 times
      Version: 1.1
      Category: Tutorials

        XSS safe model content

        Created 16 years ago by phiras phiras, updated 16 years ago by phiras phiras. 2 comments

        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
        Viewed: 15 265 times
        Version: 1.1
        Category: Tutorials