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
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
);