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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
90b2a54f
Commit
90b2a54f
authored
Apr 19, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated default app template
parent
a701697c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
index.php
framework/console/webapp/default/index.php
+5
-4
main.php
framework/console/webapp/default/protected/config/main.php
+5
-0
main.php
...k/console/webapp/default/protected/views/layouts/main.php
+4
-3
No files found.
framework/console/webapp/default/index.php
View file @
90b2a54f
<?php
define
(
'YII_DEBUG'
,
true
);
$yii
=
__DIR__
.
'/../framework/yii.php'
;
require
$yii
;
require
__DIR__
.
'/../framework/yii.php'
;
$config
=
require
dirname
(
__DIR__
)
.
'/protected/config/main.php'
;
$config
[
'basePath'
]
=
dirname
(
__DIR__
)
.
'/protected'
;
$basePath
=
dirname
(
__DIR__
)
.
'/protected'
;
$app
=
new
\yii\web\Application
(
'webapp'
,
$basePath
,
$config
);
$app
=
new
\yii\web\Application
(
$config
);
$app
->
run
();
\ No newline at end of file
framework/console/webapp/default/protected/config/main.php
View file @
90b2a54f
<?php
return
array
(
'id'
=>
'webapp'
,
'name'
=>
'My Web Application'
,
'components'
=>
array
(
...
...
@@ -12,5 +13,8 @@ return array(
'password' => '',
),
*/
'cache'
=>
array
(
'class'
=>
'yii\caching\DummyCache'
,
),
),
);
\ No newline at end of file
framework/console/webapp/default/protected/views/layouts/main.php
View file @
90b2a54f
<?php
use
yii\helpers\Html
as
Html
;
?>
<!doctype html>
<html
lang=
"
en
"
>
<html
lang=
"
<?php
\Yii
::
$app
->
language
?>
"
>
<head>
<meta
charset=
"utf-8"
/>
<title>
<?php
echo
$this
->
context
->
pageTitle
?>
</title>
<title>
<?php
echo
Html
::
encode
(
$this
->
page
->
title
)
?>
</title>
</head>
<body>
<h1>
<?php
echo
$this
->
context
->
pageTitle
?>
</h1>
<h1>
<?php
echo
Html
::
encode
(
$this
->
page
->
title
)
?>
</h1>
<div
class=
"content"
>
<?php
echo
$content
?>
</div>
...
...
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