Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
e5be6868
Commit
e5be6868
authored
Feb 20, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create command template cleanup
parent
a25f8700
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
63 deletions
+0
-63
index.php
framework/console/create/default/index.php
+0
-11
main.php
framework/console/create/default/protected/config/main.php
+0
-17
SiteController.php
...e/create/default/protected/controllers/SiteController.php
+0
-16
main.php
...k/console/create/default/protected/views/layouts/main.php
+0
-17
index.php
...ork/console/create/default/protected/views/site/index.php
+0
-2
No files found.
framework/console/create/default/index.php
deleted
100644 → 0
View file @
a25f8700
<?php
define
(
'YII_DEBUG'
,
true
);
$yii
=
__DIR__
.
'/../framework/yii.php'
;
require
$yii
;
$config
=
require
dirname
(
__DIR__
)
.
'/protected/config/main.php'
;
$basePath
=
dirname
(
__DIR__
)
.
'/protected'
;
$app
=
new
\yii\web\Application
(
'webapp'
,
$basePath
,
$config
);
$app
->
run
();
\ No newline at end of file
framework/console/create/default/protected/config/main.php
deleted
100644 → 0
View file @
a25f8700
<?php
return
array
(
'name'
=>
'My Web Application'
,
'components'
=>
array
(
// uncomment the following to use a MySQL database
/*
'db' => array(
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=testdrive',
'username' => 'root',
'password' => '',
),
*/
),
);
\ No newline at end of file
framework/console/create/default/protected/controllers/SiteController.php
deleted
100644 → 0
View file @
a25f8700
<?php
use
\yii\web\Controller
;
/**
* SiteController
*/
class
SiteController
extends
Controller
{
public
function
actionIndex
()
{
echo
$this
->
render
(
'index'
,
array
(
'name'
=>
'Qiang'
,
));
}
}
\ No newline at end of file
framework/console/create/default/protected/views/layouts/main.php
deleted
100644 → 0
View file @
a25f8700
<!doctype html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<title>
<?php
echo
$this
->
context
->
pageTitle
?>
</title>
</head>
<body>
<h1>
<?php
echo
$this
->
context
->
pageTitle
?>
</h1>
<div
class=
"content"
>
<?php
echo
$content
?>
</div>
<div
class=
"footer"
>
<?php
echo
\Yii
::
powered
()
?>
</div>
</body>
</html>
\ No newline at end of file
framework/console/create/default/protected/views/site/index.php
deleted
100644 → 0
View file @
a25f8700
Hello,
<?php
echo
$name
?>
!
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment