Hey Mdomba,
Thanks for replying so quickly… Very appreciated!!
Well the answer is: I don’t want to spam the forum with loads of code, and I am a try-it-self-person, who gives up after trying now… I only use the html file, for keeping our users from beeing confused…
Yep, the index.php file is there, and I don’t think the yii framework error would work, if it wasn’t.
And here’s the setup:
<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','/home/www/');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'Traicosport.com',
'defaultController'=>'site',
// preloading 'log' component
'preload'=>array('log'),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>require(dirname(__FILE__).'/params.php'),
// application components
'components'=>array(
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
),
),
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
// force 403 HTTP error if authentication needed
'loginUrl'=>null,
),
'db'=>array(
'connectionString'=>'mysql:host=hostname;dbname=name',
'class'=>'CDbConnection',
'username'=>'user',
'password'=>'passw',
'charset'=>'utf8'
),
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName' => false,
'rules'=>array(
'login'=>'sportsClub/login',
'sportsklubber'=>'sportsClub/list',
'sportsklub/tilmeld' => 'sportsClub/create',
'sportsklub/succes'=>'sportsClub/success',
'sportsklub/<uri>'=>'sportsClub/show',
'sportsfaciliteter'=>'sportsFacility/list',
'sportsfacilitet/tilmeld' => 'sportsFacility/create',
'sportsfacilitet/<uri>'=>'sportsFacility/show'
),
),
),
);
it worked on the other server… Can a wrong database connection make the error? (eventhough I am 99,99% sure it’s right…)