~fusonic/chive/1.1

« back to all changes in this revision

Viewing changes to yii/cli/views/webapp/protected/views/site/index.php

  • Committer: Matthias Burtscher
  • Date: 2010-02-12 09:12:35 UTC
  • Revision ID: matthias.burtscher@fusonic.net-20100212091235-jqxrb62klx872ajc
* Updated Yii to 1.1.0
* Removed CodePress and CodeMirror
* Updated jQuery and some plugins
* Cleaned some code ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php $this->pageTitle=Yii::app()->name; ?>
2
2
 
3
 
<h1>
4
 
        Welcome, <?php echo Yii::app()->user->name; ?>!
5
 
</h1>
6
 
<p>
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:
8
 
</p>
9
 
<dl>
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.
14
 
        </dd>
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>
19
 
</dl>
20
 
 
21
 
<h3>What's Next</h3>
 
3
<h1>Welcome to <i><?php echo CHtml::encode(Yii::app()->name); ?></i></h1>
 
4
 
 
5
<p>Congratulations! You have successfully created your Yii application.</p>
 
6
 
 
7
<p>You may change the content of this page by modifying the following two files:</p>
22
8
<ul>
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:
26
 
                <ul>
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>
34
 
                </ul>
35
 
                Note that the <tt>yiic</tt> tool can automate the task of creating model classes and CRUD operations.
36
 
        </li>
 
9
        <li>View file: <tt><?php echo __FILE__; ?></tt></li>
 
10
        <li>Layout file: <tt><?php echo $this->getLayoutFile('main'); ?></tt></li>
37
11
</ul>
38
12
 
39
 
<p>
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.
43
 
</p>
 
 
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'