1
1
<?php $this->pageTitle=Yii::app()->name; ?>
4
Welcome, <?php echo Yii::app()->user->name; ?>!
7
This is the homepage of <em><?php echo Yii::app()->name; ?></em>. You may modify the following files to customize the content of this page:
10
<dt><?php echo Yii::app()->controllerPath . DIRECTORY_SEPARATOR . 'SiteController.php'; ?></dt>
11
<dd>This file contains the <tt>SiteController</tt> class which is
12
the default application controller. Its default <tt>index</tt> action
13
renders the content of the following two files.
15
<dt><?php echo __FILE__; ?></dt>
16
<dd>This is the view file that contains the body content of this page.</dd>
17
<dt><?php echo Yii::app()->layoutPath . DIRECTORY_SEPARATOR . 'main.php'; ?></dt>
18
<dd>This is the layout file that contains common presentation (such as header, footer) shared by all view files.</dd>
3
<h1>Welcome to <i><?php echo CHtml::encode(Yii::app()->name); ?></i></h1>
5
<p>Congratulations! You have successfully created your Yii application.</p>
7
<p>You may change the content of this page by modifying the following two files:</p>
23
<li>Implement new actions in <tt>SiteController</tt>, and create corresponding views under <?php echo Yii::app()->viewPath . DIRECTORY_SEPARATOR . 'site'; ?></li>
24
<li>Create new controllers and actions manually or using the <tt>yiic</tt> tool.</li>
25
<li>If your Web application should be driven by database, do the following:
27
<li>Set up a database connection by configuring the <code>db</code> component in the application configuration
28
<tt><?php echo Yii::app()->basePath . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR .'main.php'; ?></tt></li>
29
<li>Create model classes under the directory
30
<tt><?php echo Yii::app()->basePath . DIRECTORY_SEPARATOR . 'models'; ?></tt></li>
31
<li>Implement CRUD operations for each model. For example, for the <tt>Post</tt> model class,
32
you would create a <tt>PostController</tt> class together with <tt>create</tt>, <tt>read</tt>,
33
<tt>update</tt> and <tt>delete</tt> actions.</li>
35
Note that the <tt>yiic</tt> tool can automate the task of creating model classes and CRUD operations.
9
<li>View file: <tt><?php echo __FILE__; ?></tt></li>
10
<li>Layout file: <tt><?php echo $this->getLayoutFile('main'); ?></tt></li>
40
If you have problems in accomplishing any of the above tasks,
41
please read <a href="http://www.yiiframework.com/doc/">Yii documentation</a>
42
or visit <a href="http://www.yiiframework.com/forum/">Yii forum</a> for help.
b'\\ No newline at end of file'
13
<p>For more details on how to further develop this application, please read
14
the <a href="http://www.yiiframework.com/doc/">documentation</a>.
15
Feel free to ask in the <a href="http://www.yiiframework.com/forum/">forum</a>,
16
should you have any questions.</p>
b'\\ No newline at end of file'