Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kulya
OpnSense
Commits
83e26cc5
Commit
83e26cc5
authored
Jan 24, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: coding style and whitespace cleanups
parent
f31a12bf
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
9 additions
and
18 deletions
+9
-18
services.php
src/opnsense/mvc/app/config/services.php
+5
-3
ControllerBase.php
...ense/mvc/app/controllers/OPNsense/Base/ControllerBase.php
+0
-1
IndexController.php
...nse/mvc/app/controllers/OPNsense/Base/IndexController.php
+0
-2
IndexController.php
...nse/mvc/app/controllers/OPNsense/Core/IndexController.php
+0
-2
IndexController.php
...e/mvc/app/controllers/OPNsense/Sample/IndexController.php
+1
-2
PageController.php
...se/mvc/app/controllers/OPNsense/Sample/PageController.php
+0
-1
Model.php
src/opnsense/mvc/app/models/OPNsense/Base/Model.php
+1
-3
Sample.php
src/opnsense/mvc/app/models/OPNsense/Sample/Sample.php
+1
-2
index.volt
src/opnsense/mvc/app/views/OPNsense/Core/index.volt
+1
-1
page.show.volt
src/opnsense/mvc/app/views/OPNsense/Sample/page.show.volt
+0
-1
No files found.
src/opnsense/mvc/app/config/services.php
View file @
83e26cc5
...
...
@@ -86,7 +86,7 @@ $di->set('config', $config);
/**
* Setup router
*/
$di
->
set
(
'router'
,
function
()
{
$di
->
set
(
'router'
,
function
()
{
$router
=
new
\Phalcon\Mvc\Router
(
false
);
...
...
@@ -102,9 +102,11 @@ $di->set('router', function() {
// probe registered modules and create a namespace map
// for example, OPNsense\Core will be mapped at http(s):\\host\core\..
// module names should be unique in the application, unless you want to overwrite functionality (check glob's sorting).
// module names should be unique in the application, unless you want to
// overwrite functionality (check glob's sorting).
//
// if the glob for probing the directories turns out to be too slow, we should consider some kind of caching here
// if the glob for probing the directories turns out to be too slow,
// we should consider some kind of caching here
//
$registered_modules
=
array
();
$controller_dir
=
__DIR__
.
"/../controllers/"
;
...
...
src/opnsense/mvc/app/controllers/OPNsense/Base/ControllerBase.php
View file @
83e26cc5
...
...
@@ -44,5 +44,4 @@ class ControllerBase extends Controller
{
$this
->
view
->
setTemplateBefore
(
'default'
);
}
}
src/opnsense/mvc/app/controllers/OPNsense/Base/IndexController.php
View file @
83e26cc5
...
...
@@ -40,6 +40,4 @@ class IndexController extends \OPNsense\Base\ControllerBase
// $this->view->title = $this->request->getURI();
// $this->view->pick('OPNsense/Sample/index');
}
}
src/opnsense/mvc/app/controllers/OPNsense/Core/IndexController.php
View file @
83e26cc5
...
...
@@ -37,6 +37,4 @@ class IndexController extends \OPNsense\Base\IndexController
{
$this
->
view
->
pick
(
'OPNsense/Core/index'
);
}
}
src/opnsense/mvc/app/controllers/OPNsense/Sample/IndexController.php
View file @
83e26cc5
...
...
@@ -38,5 +38,4 @@ class IndexController extends \OPNsense\Base\IndexController
$this
->
view
->
title
=
$this
->
request
->
getURI
();
$this
->
view
->
pick
(
'OPNsense/Sample/index'
);
}
}
src/opnsense/mvc/app/controllers/OPNsense/Sample/PageController.php
View file @
83e26cc5
...
...
@@ -64,5 +64,4 @@ class PageController extends ControllerBase
// "action" => "index"
// ));
}
}
src/opnsense/mvc/app/models/OPNsense/Base/Model.php
View file @
83e26cc5
...
...
@@ -35,11 +35,9 @@ namespace OPNsense\Base;
abstract
class
BaseModel
{
public
function
__construct
()
{
$class_info
=
new
\ReflectionClass
(
$this
);
$class_info
->
getFileName
();
}
}
src/opnsense/mvc/app/models/OPNsense/Sample/Sample.php
View file @
83e26cc5
...
...
@@ -35,5 +35,4 @@ use OPNsense\Base\BaseModel;
class
Sample
extends
BaseModel
{
public
$title
=
"123456"
;
}
src/opnsense/mvc/app/views/OPNsense/Core/index.volt
View file @
83e26cc5
src/opnsense/mvc/app/views/OPNsense/Sample/page.show.volt
View file @
83e26cc5
...
...
@@ -4,4 +4,3 @@
{% for item in items %}
{{ partial('layout_partials/std_input_field',item) }}
{% endfor %}
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