Not Detecting Themes ?

Hello.

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


'theme'=>'photoGal',

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

ricky

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.

hello.

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(

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

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

        'name'=>'Photo Gallery',


	// preloading 'log' component

	'preload'=>array('log'),

	

	//theme

	'theme'=>'photoGal',

	



my folder structure is:

photogallery / protected / config / main.php

photogallery / www / themes / photoGal

im using mamp pro to run it locally

thanks

ricky