Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
phundament
app
Commits
58a39e19
Commit
58a39e19
authored
Apr 05, 2016
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code-style fixes
parent
13307e29
Pipeline
#8597
failed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
16 deletions
+18
-16
env.php
src/config/env.php
+3
-1
Module.php
src/modules/backend/Module.php
+0
-3
view-config.php
src/modules/backend/views/default/view-config.php
+11
-11
main.php
src/modules/backend/views/layouts/main.php
+4
-1
No files found.
src/config/env.php
View file @
58a39e19
...
...
@@ -11,7 +11,9 @@ $dotenv->required(['APP_LANGUAGES']);
$dotenv
->
required
([
'DATABASE_DSN'
,
'DATABASE_USER'
,
'DATABASE_PASSWORD'
]);
if
(
!
preg_match
(
'/^[a-z0-9_-]{3,16}$/'
,
getenv
(
'APP_NAME'
)))
{
throw
new
\Dotenv\Exception\ValidationException
(
'APP_NAME must only be lowercase, dash or underscore and 3-16 characters long.'
);
throw
new
\Dotenv\Exception\ValidationException
(
'APP_NAME must only be lowercase, dash or underscore and 3-16 characters long.'
);
}
if
(
is_file
(
__DIR__
.
'/../version'
))
{
...
...
src/modules/backend/Module.php
View file @
58a39e19
...
...
@@ -11,8 +11,6 @@ namespace app\modules\backend;
* file that was distributed with this source code.
*/
use
yii\helpers\ArrayHelper
;
/**
* Class Module.
*
...
...
@@ -20,5 +18,4 @@ use yii\helpers\ArrayHelper;
*/
class
Module
extends
\yii\base\Module
{
}
src/modules/backend/views/default/view-config.php
View file @
58a39e19
...
...
@@ -8,18 +8,18 @@ use yii\widgets\ListView;
?>
<h1>
Configuration
</h1>
<h1>
Configuration
</h1>
<h2>
Controllers
</h2>
<div
class=
"box"
>
<?=
ListView
::
widget
(
[
'dataProvider'
=>
$loadedModulesDataProvider
,
'itemView'
=>
'_module'
,
]
)
?>
</div>
<div
class=
"box"
>
<?=
ListView
::
widget
(
[
'dataProvider'
=>
$loadedModulesDataProvider
,
'itemView'
=>
'_module'
,
]
)
?>
</div>
<h2>
Params
</h2>
...
...
@@ -51,7 +51,7 @@ use yii\widgets\ListView;
</div>
<?php
endforeach
?>
<h2>
Modules
</h2>
<h2>
Modules
</h2>
<?php
foreach
(
$modules
as
$name
=>
$element
)
:
?>
<div
class=
"row"
>
<div
class=
"col-sm-2"
>
...
...
src/modules/backend/views/layouts/main.php
View file @
58a39e19
...
...
@@ -167,7 +167,10 @@ $this->title = $this->title.' [Backend]';
</div>
<!-- /.content-wrapper -->
<footer
class=
"main-footer"
>
<strong>
<?=
getenv
(
'APP_NAME'
)
?>
-
<?=
APP_VERSION
?>
</strong>
built with
<a
href=
"http://phundament.com"
target=
"_blank"
>
phd
</a>
<strong>
<?=
getenv
(
'APP_NAME'
)
?>
-
<?=
APP_VERSION
?>
</strong>
built with
<a
href=
"http://phundament.com"
target=
"_blank"
>
phd
</a>
</footer>
</div>
<!-- ./wrapper -->
...
...
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