Hello,
I need to create the controller of my application using the yiic shell. To start the shell, i need to navigate to the root of my demo application by running the following command: C:\>cd easyphp\www\demo then i need to execute yiic with the following shell command: %YiiRoot/framework/yiic shell. i don’t know what to write in my command line to execute the last command properly. However when try c:\easyphp\www\demo>c:\easyphp\www\demo\protected\yiic shell i get the following:
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>
PHP Error</title>
<style type="text/css">
/<![CDATA[/
body {font-family:"Verdana";font-weight:normal;color:black;background-color:whit
e;}
h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
h3 {font-family:"Verdana";font-weight:bold;font-size:11pt}
p {font-family:"Verdana";font-size:9pt;}
pre {font-family:"Lucida Console";font-size:10pt;}
.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
.message {color: maroon;}
.source {font-family:"Lucida Console";font-weight:normal;background-color:#ffffe
e;}
.error {background-color: #ffeeee;}
/]]>/
</style>
</head>
<body>
<h1>PHP Error</h1>
<h3>Description</h3>
<p class="message">
date(): It is not safe to rely on the system’s timezone settings. You are *
required* to use the date.timezone setting or the date_default_timezone_set() fu
nction. In case you used any of those methods and you are still getting this war
ning, you most likely misspelled the timezone identifier. We selected 'Asia
/Dubai’ for ‘4.0/no DST’ instead</p>
<h3>Source File</h3>
<p>
C:\easyphp\www\demo\protected\views\layouts\main.php(47)</p>
<div class="source">
<pre>
00035: array(‘label’=>‘Logout (’.Yii::app
()->user->name.’)’, ‘url’=>array(’/site/logout
'), ‘visible’=>!Yii::app()->user->isGuest)
00036: ),
00037: )); ?>
00038: </div><!-- mainmenu -->
00039:
00040: <?php $this->widget(‘zii.widgets.CBreadcrumbs’, array
(
00041: ‘links’=>$this->breadcrumbs,
00042: )); ?><!-- breadcrumbs -->
00043:
00044: <?php echo $content; ?>
00045:
00046: <div id="footer">
<div class=“error”>00047: Copyright &copy; <?php echo date(’
Y’); ?> by My Company.<br/>
</div>00048: All Rights Reserved.<br/>
00049: <?php echo Yii::powered(); ?>
00050: </div><!-- footer -->
00051:
00052: </div><!-- page -->
00053:
00054: </body>
00055: </html></pre>
</div><!-- end of source -->
<h3>Stack Trace</h3>
<div class="callstack">
<pre>
#0 C:\easyphp\www\demo\protected\views\layouts\main.php(47): date()
#1 C:\easyphp\www\yii\framework\web\CBaseController.php(119): require()
#2 C:\easyphp\www\yii\framework\web\CBaseController.php(88): SiteController->
renderInternal()
#3 C:\easyphp\www\yii\framework\web\widgets\CContentDecorator.php(78): SiteContr
oller->renderFile()
#4 C:\easyphp\www\yii\framework\web\widgets\CContentDecorator.php(56): CContentD
ecorator->decorate()
#5 C:\easyphp\www\yii\framework\web\widgets\COutputProcessor.php(45): CContentDe
corator->processOutput()
#6 C:\easyphp\www\yii\framework\web\CBaseController.php(199): CContentDecorator-
>run()
#7 C:\easyphp\www\yii\framework\web\CBaseController.php(294): SiteController->
;endWidget()
#8 C:\easyphp\www\demo\protected\views\layouts\column1.php(7): SiteController-&g
t;endContent()
#9 C:\easyphp\www\yii\framework\web\CBaseController.php(119): require()
#10 C:\easyphp\www\yii\framework\web\CBaseController.php(88): SiteController->
;renderInternal()
#11 C:\easyphp\www\yii\framework\web\CController.php(748): SiteController->re
nderFile()
#12 C:\easyphp\www\demo\protected\controllers\SiteController.php(32): SiteContro
ller->render()
#13 C:\easyphp\www\yii\framework\web\actions\CInlineAction.php(57): SiteControll
er->actionIndex()
#14 C:\easyphp\www\yii\framework\web\CController.php(300): CInlineAction->run
()
#15 C:\easyphp\www\yii\framework\web\CController.php(278): SiteController->ru
nAction()
#16 C:\easyphp\www\yii\framework\web\CController.php(257): SiteController->ru
nActionWithFilters()
#17 C:\easyphp\www\yii\framework\web\CWebApplication.php(324): SiteController-&g
t;run()
#18 C:\easyphp\www\yii\framework\web\CWebApplication.php(121): CWebApplication-&
gt;runController()
#19 C:\easyphp\www\yii\framework\base\CApplication.php(135): CWebApplication->
;processRequest()
#20 C:\easyphp\www\demo\index.php(13): CWebApplication->run()
#21 C:\easyphp\www\yii\framework\cli\commands\ShellCommand.php(78): require()
#22 C:\easyphp\www\yii\framework\console\CConsoleCommandRunner.php(62): ShellCom
mand->run()
#23 C:\easyphp\www\yii\framework\console\CConsoleApplication.php(88): CConsoleCo
mmandRunner->run()
#24 C:\easyphp\www\yii\framework\base\CApplication.php(135): CConsoleApplication
->processRequest()
#25 C:\easyphp\www\yii\framework\yiic.php(33): CConsoleApplication->run()
#26 C:\easyphp\www\demo\protected\yiic.php(7): require_once()
</pre>
</div><!-- end of callstack -->
<div class="version">
Warning: date(): It is not safe to rely on the system’s timezone settings. You a
re required to use the date.timezone setting or the date_default_timezone_set(
) function. In case you used any of those methods and you are still getting this
warning, you most likely misspelled the timezone identifier. We selected 'Asia/
Dubai’ for ‘4.0/no DST’ instead in C:\easyphp\www\yii\framework\views\exception.
php on line 71
2010-12-07 22:24:39 <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1
.5</div>
</body>
</html>
But this is not what i want!!!
The required response should be as follows:
Yii Interactive Tool v1.1
Please type ‘help’ for help. Type ‘exit’ to quit.
Any1 can tell me how can i get the required response?
I’m using easyphp5.3.2 and yii1.1.5