I put files from downloaded googlecalendar extension archive in demo site blog from yiiframework. Css from archive i add in root of the site blog in exsising directory, for directory jquery from archive i add new dir in root of the site directory, view.php from archive i added in created directory views in root too. But, when i enter in the adres bar mysite.ru\googlecalendar.php, i got an error:
Fatal error: Class ‘Yii’ not found in C:\OpenServer\domains\www.blog.ru\googlecalendar.php on line 31, on line 31 in this file write this code: Yii::import(‘system.web.widgets.CWidget’);. What i doing wrong?
<?php
// This is the main Web application configuration. Any writable
// application properties can be configured here.
'CALENDAR'=>array(
'class' => 'application. extensions.'your extension name'.'your php file',
),;
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'Yii Framework: Phone Book Demo',
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
),
// application components
'components'=>array(
'db'=>array(
'connectionString'=>'sqlite:protected/data/phonebook.db',
),
),
);