yii-user-management icon indicating copy to clipboard operation
yii-user-management copied to clipboard

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

Open toby78 opened this issue 11 years ago • 0 comments

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:

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.*' ) ``` );

toby78 avatar Dec 29 '13 21:12 toby78