Showing 61-80 of 652 items.

Performance - A Guide For Best Practice

Created 16 years ago by Y!! Y!!, updated 15 years ago by ajsharma ajsharma. 4 comments

In this guide I will explain best practise regarding performance in MySQL, PHP and of course our loved Yii Framework. Since this is a complex topic, I will start with some basics and then expand this guide from time to time. Since this wiki can become big, you may click on View history - there you can see what changes have been made, so you don't miss anything.

9 5
10
Viewed: 33 168 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 382 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 433 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: 50 063 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 443 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 235 times
          Version: 1.1
          Category: Tutorials