You have successfully created your Yii-powered application.
-
-
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
- condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod.
- Donec sed odio dui.
+
-
-
Heading
+
+
+
Heading
-
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
- condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod.
- Donec sed odio dui.
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
+ dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
+ ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
+ fugiat nulla pariatur.
-
View details »
-
-
+
+
Heading
-
Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta
- felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum
- massa.
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
+ dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
+ ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
+ fugiat nulla pariatur.
+
+
Yii Forum »
+
+
+
Heading
+
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
+ dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
+ ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
+ fugiat nulla pariatur.
+
+
Yii Extensions »
+
+
-
View details »
-
diff --git a/apps/advanced/backend/views/site/login.php b/apps/advanced/backend/views/site/login.php
index ea9f456..991d096 100644
--- a/apps/advanced/backend/views/site/login.php
+++ b/apps/advanced/backend/views/site/login.php
@@ -10,15 +10,21 @@ use yii\widgets\ActiveForm;
$this->title = 'Login';
$this->params['breadcrumbs'][] = $this->title;
?>
-
+
title); ?>
-
Please fill out the following fields to login:
+
Please fill out the following fields to login:
- array('class' => 'form-horizontal'))); ?>
- field($model, 'username')->textInput(); ?>
- field($model, 'password')->passwordInput(); ?>
- field($model, 'rememberMe')->checkbox(); ?>
-
\ No newline at end of file
diff --git a/apps/advanced/backend/web/css/site.css b/apps/advanced/backend/web/css/site.css
index 9604477..e6db73c 100644
--- a/apps/advanced/backend/web/css/site.css
+++ b/apps/advanced/backend/web/css/site.css
@@ -1,78 +1,19 @@
body {
- padding-top: 20px;
- padding-bottom: 60px;
+ padding-top: 70px;
}
-/* Custom container */
-.container {
- margin: 0 auto;
- max-width: 1000px;
+.footer {
+ border-top: 1px solid #ddd;
+ margin-top: 30px;
+ padding-top: 15px;
+ padding-bottom: 30px;
}
-.container > hr {
- margin: 60px 0;
-}
-
-/* Main marketing message and sign up button */
.jumbotron {
- margin: 80px 0;
- text-align: center;
-}
-
-.jumbotron h1 {
- font-size: 100px;
- line-height: 1;
-}
-
-.jumbotron .lead {
- font-size: 24px;
- line-height: 1.25;
+ text-align: center;
+ background-color: transparent;
}
-
.jumbotron .btn {
- font-size: 21px;
- padding: 14px 24px;
-}
-
-/* Supporting marketing content */
-.marketing {
- margin: 60px 0;
-}
-
-.marketing p + h4 {
- margin-top: 28px;
-}
-
-/* Customize the navbar links to be fill the entire space of the .navbar */
-.navbar.fullwidth .navbar-inner {
- padding: 0;
-}
-
-.navbar.fullwidth .nav {
- margin: 0;
- display: table;
- width: 100%;
-}
-
-.navbar.fullwidth .nav li {
- display: table-cell;
- width: 1%;
- float: none;
-}
-
-.navbar.fullwidth .nav li a {
- font-weight: bold;
- text-align: center;
- border-left: 1px solid rgba(255, 255, 255, .75);
- border-right: 1px solid rgba(0, 0, 0, .1);
-}
-
-.navbar.fullwidth .nav li:first-child a {
- border-left: 0;
- border-radius: 3px 0 0 3px;
-}
-
-.navbar.fullwidth .nav li:last-child a {
- border-right: 0;
- border-radius: 0 3px 3px 0;
+ font-size: 21px;
+ padding: 14px 24px;
}
diff --git a/apps/advanced/frontend/config/AppAsset.php b/apps/advanced/frontend/config/AppAsset.php
index 1801661..4df653c 100644
--- a/apps/advanced/frontend/config/AppAsset.php
+++ b/apps/advanced/frontend/config/AppAsset.php
@@ -6,6 +6,7 @@
*/
namespace frontend\config;
+
use yii\web\AssetBundle;
/**
diff --git a/apps/advanced/frontend/views/layouts/main.php b/apps/advanced/frontend/views/layouts/main.php
index 864992b..9e4c372 100644
--- a/apps/advanced/frontend/views/layouts/main.php
+++ b/apps/advanced/frontend/views/layouts/main.php
@@ -1,7 +1,8 @@
head(); ?>
-
beginBody(); ?>
-
+ 'My Company',
+ 'brandUrl' => Yii::$app->homeUrl,
+ 'options' => array(
+ 'class' => 'navbar-inverse navbar-fixed-top',
+ ),
+ ));
+ $menuItems = array(
+ array('label' => 'Home', 'url' => array('/site/index')),
+ array('label' => 'About', 'url' => array('/site/about')),
+ array('label' => 'Contact', 'url' => array('/site/contact')),
+ );
+ if (Yii::$app->user->isGuest) {
+ $menuItems[] = array('label' => 'Signup', 'url' => array('/site/signup'));
+ $menuItems[] = array('label' => 'Login', 'url' => array('/site/login'));
+ }
+ else {
+ $menuItems[] = array('label' => 'Logout (' . Yii::$app->user->identity->username .')' , 'url' => array('/site/logout'));
+ }
+ echo Nav::widget(array(
+ 'options' => array('class' => 'navbar-nav pull-right'),
+ 'items' => $menuItems,
+ ));
+ NavBar::end();
+ ?>
+
isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : array(),
)); ?>
-
-
+
-
+
-
endBody(); ?>
-