thyseus / yii-user-management

a user management module collection for the yii framework
186 stars 122 forks source link

include(Controller.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory #164

Open toby78 opened 10 years ago

toby78 commented 10 years ago

I am getting the error:

include(Controller.php) [function.include]: failed to open stream: No such file or directory

when going to:

localhost/helloworld/index.php?r=user/install

(base on yiiframework helloworld demo)

[...]

unknown(0): YiiBase::autoload("Controller")

2

– C:\xampp\htdocs\helloworld\protected\modules\user\controllers\YumController.php(13): spl_autoload_call("Controller") 08 * @author tomasz.suchanek 09 * @since 0.6 10 * @package Yum.core 11 */ 12 13 abstract class YumController extends Controller { 14 public $breadcrumbs = array(); 15 public $menu = array(); 16 public $title =''; 17 public $_model; 18

[...]

The config file looks like this:

<?php

// 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. return array( 'basePath'=>dirname(FILE).DIRECTORY_SEPARATOR.'..', 'name'=>'My Web Application', 'components' => array( 'db'=>array( 'connectionString' => 'mysql:host=localhost;dbname=testdrive', 'emulatePrepare' => true, 'username' => 'root', 'password' => 'mysqlpassword', 'charset' => 'utf8', // prior to yum0.8rc7 tablePrefix is not necessary anymore, but it can not hurt 'tablePrefix' => '' ), // components/db 'user'=>array( 'class' => 'application.modules.user.components.YumWebUser', 'allowAutoLogin'=>true, 'loginUrl' => array('//user/user/login') ), // components/user

                      'cache' => array(
                          'class' => 'system.caching.CDummyCache'
                      ), // components/cache

                ), // components

'modules' => array(
    'user' => array(
        'debug' => true
    ) // modules/user
), // modules

'import'=>array(
    'application.modules.user.models.*'
)

);