Added DB Access + Error page
This commit is contained in:
7
demos/helloworld/index.php
Normal file
7
demos/helloworld/index.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
// include Yii bootstrap file
|
||||
require_once(dirname(__FILE__).'/../../framework/yii.php');
|
||||
|
||||
// create a Web application instance and run
|
||||
Yii::createWebApplication()->run();
|
||||
1
demos/helloworld/protected/.htaccess
Normal file
1
demos/helloworld/protected/.htaccess
Normal file
@@ -0,0 +1 @@
|
||||
deny from all
|
||||
15
demos/helloworld/protected/controllers/SiteController.php
Normal file
15
demos/helloworld/protected/controllers/SiteController.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SiteController is the default controller to handle user requests.
|
||||
*/
|
||||
class SiteController extends CController
|
||||
{
|
||||
/**
|
||||
* Index action is the default action in a controller.
|
||||
*/
|
||||
public function actionIndex()
|
||||
{
|
||||
echo 'Hello World';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user