Showing 61-80 of 219 items.

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

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

    Created 16 years ago by Yeti Yeti, updated 16 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: 50 390 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 816 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: 64 871 times
        Version: 1.1
        Category: Tutorials

        CSS Naming Conventions

        Created 16 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: 59 890 times
        Version: 1.1
        Category: Tutorials

        Yii and XAMPP server on Windows

        Created 16 years ago by Trejder Trejder, updated 16 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: 85 378 times
        Version: 1.1
        Category: Tutorials