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
4c4f7bd7
Commit
4c4f7bd7
authored
Nov 13, 2013
by
slavcodev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move AppAsset from config to assets directory
parent
5b0886f1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
7 additions
and
11 deletions
+7
-11
.gitkeep
apps/advanced/backend/assets/.gitkeep
+0
-1
AppAsset.php
apps/advanced/backend/assets/AppAsset.php
+1
-1
main.php
apps/advanced/backend/views/layouts/main.php
+1
-1
.gitkeep
apps/advanced/frontend/assets/.gitkeep
+0
-3
AppAsset.php
apps/advanced/frontend/assets/AppAsset.php
+1
-1
main.php
apps/advanced/frontend/views/layouts/main.php
+1
-1
AppAsset.php
apps/basic/assets/AppAsset.php
+1
-1
main.php
apps/basic/views/layouts/main.php
+1
-1
view.md
docs/guide/view.md
+1
-1
No files found.
apps/advanced/backend/assets/.gitkeep
deleted
100644 → 0
View file @
5b0886f1
*
apps/advanced/backend/
config
/AppAsset.php
→
apps/advanced/backend/
assets
/AppAsset.php
View file @
4c4f7bd7
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/
* @license http://www.yiiframework.com/license/
*/
*/
namespace
backend\
config
;
namespace
backend\
assets
;
use
yii\web\AssetBundle
;
use
yii\web\AssetBundle
;
...
...
apps/advanced/backend/views/layouts/main.php
View file @
4c4f7bd7
<?php
<?php
use
backend\
config
\AppAsset
;
use
backend\
assets
\AppAsset
;
use
yii\helpers\Html
;
use
yii\helpers\Html
;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\NavBar
;
use
yii\bootstrap\NavBar
;
...
...
apps/advanced/frontend/assets/.gitkeep
deleted
100644 → 0
View file @
5b0886f1
*
!.gitignore
\ No newline at end of file
apps/advanced/frontend/
config
/AppAsset.php
→
apps/advanced/frontend/
assets
/AppAsset.php
View file @
4c4f7bd7
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/
* @license http://www.yiiframework.com/license/
*/
*/
namespace
frontend\
config
;
namespace
frontend\
assets
;
use
yii\web\AssetBundle
;
use
yii\web\AssetBundle
;
...
...
apps/advanced/frontend/views/layouts/main.php
View file @
4c4f7bd7
...
@@ -3,7 +3,7 @@ use yii\helpers\Html;
...
@@ -3,7 +3,7 @@ use yii\helpers\Html;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\NavBar
;
use
yii\bootstrap\NavBar
;
use
yii\widgets\Breadcrumbs
;
use
yii\widgets\Breadcrumbs
;
use
frontend\
config
\AppAsset
;
use
frontend\
assets
\AppAsset
;
use
frontend\widgets\Alert
;
use
frontend\widgets\Alert
;
/**
/**
...
...
apps/basic/
config
/AppAsset.php
→
apps/basic/
assets
/AppAsset.php
View file @
4c4f7bd7
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/
* @license http://www.yiiframework.com/license/
*/
*/
namespace
app\
config
;
namespace
app\
assets
;
use
yii\web\AssetBundle
;
use
yii\web\AssetBundle
;
...
...
apps/basic/views/layouts/main.php
View file @
4c4f7bd7
...
@@ -3,7 +3,7 @@ use yii\helpers\Html;
...
@@ -3,7 +3,7 @@ use yii\helpers\Html;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\NavBar
;
use
yii\bootstrap\NavBar
;
use
yii\widgets\Breadcrumbs
;
use
yii\widgets\Breadcrumbs
;
use
app\
config
\AppAsset
;
use
app\
assets
\AppAsset
;
/**
/**
* @var \yii\web\View $this
* @var \yii\web\View $this
...
...
docs/guide/view.md
View file @
4c4f7bd7
...
@@ -240,7 +240,7 @@ details on how to define asset bundles in [asset manager](assets.md) section of
...
@@ -240,7 +240,7 @@ details on how to define asset bundles in [asset manager](assets.md) section of
asset bundle, it's very straightforward:
asset bundle, it's very straightforward:
```
php
```
php
frontend\
config
\AppAsset
::
register
(
$this
);
frontend\
assets
\AppAsset
::
register
(
$this
);
```
```
### Layout
### Layout
...
...
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