Not Detecting Themes ?


I have been following along with a yii course but i am stuck because it will not detect my theme.

i have been over and over the code and can not see the problem.

i have added the code


in to the main.php file and placed all the files in the www/themes folder with permissions set to 777 but when i refresh nothing happens ?

please help

kind regards


Your paths are correct? May be try adding

	'themeManager' => array(

		'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR.'..',


to your components section of main.php. This sorted out the issue for me once.


thank you for your reply.

this is the top half of my main.php page

// uncomment the following to define a path alias

// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable

// CWebApplication properties can be configured here.

function _joinpath($dir1, $dir2){

    return realpath($dir1 . '/' . $dir2);


$homePath = dirname(__FILE__) . '\..\..';

$protectedPath = _joinpath($homePath, 'protected');

$webrootPath = _joinpath($homePath, 'www');

$runtimePath = _joinpath($homePath, 'runtime');

return array(



        'name'=>'Photo Gallery',

	// preloading 'log' component






my folder structure is:

photogallery / protected / config / main.php

photogallery / www / themes / photoGal

im using mamp pro to run it locally