Showing 21-40 of 652 items.

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

    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: 85 028 times
    Version: 1.1
    Category: Tutorials

    Code style

    Created 15 years ago by zaccaria zaccaria, updated 15 years ago by g3ck0 g3ck0. 2 comments

    Often, when writing widgets or editing Yii code, it is unclear whether or not the code is following the MVC pattern.

    29 0
    7
    Viewed: 33 536 times
    Version: 1.1
    Category: Tips

    Directory independent extensions

    Created 15 years ago by GOsha GOsha, updated 15 years ago by GOsha GOsha. 3 comments

    Many people want to use downloaded extensions in their own way. As for me most of the extensions require me to correct Yii::import() instructions inside their source code. All these extensions are directory dependent. To avoid the situation described above, I suggest to implement pseudo-anonymous aliases:

    // take the curr...
    
    16 1
    7
    Viewed: 20 708 times
    Version: 1.1
    Category: Tips

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

    How to customize error handling in console-mode applications

    Created 15 years ago by Steve Friedl Steve Friedl, updated 15 years ago by Steve Friedl Steve Friedl. 1 comment

    One can control the detail of a web application in the webroot/index.php file by manipulating the values of YII_DEBUG and YII_TRACE_LEVEL, but these don't appear to be used by console applications. This is because although the base CApplication class defines a displayError() method that does consider these variable, CConsoleApplication overrides it with a function that doesn't honor th...

    3 0
    4
    Viewed: 25 190 times
    Version: 1.1
    Category: How-tos

    Extending CActiveForm for some form display fixes and language tweaks

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

    In this simple example I'll demonstrate how to extend CActiveForm class to overload some drawing functions to achieve some commonly used fixes in forms.

    The colon

    Here is overloaded version of CActiveForm.labelEx that adds colon (:) at the end of text of label with respecting CHtml::$afterRequiredLabel and CHtml::$beforeRequiredLabel

    5 0
    6
    Viewed: 29 639 times
    Version: 1.1
    Category: Tips

    How to log and debug variables using CWebLogRoute

    Created 15 years ago by Antonio Ramirez Antonio Ramirez, updated 15 years ago by Antonio Ramirez Antonio Ramirez. 8 comments

    Yii comes with a set of powerful classes for logging. If you have read the documentation about logging messages, you have noticed that we can actually decide which messages we wish to log. And this is exactly what we are going to do, using [CWebLogRoute](http://www.yiiframework.com/doc/api/1.1/CWebLog...

    13 0
    20
    Viewed: 82 857 times
    Version: 1.1
    Category: How-tos

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