Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
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
Yeray Santana Hualde
syncEnrollments
Commits
b504089d
Commit
b504089d
authored
Jul 31, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved exception view to application views and removed system view folder.
parent
2c68317b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
24 deletions
+7
-24
exception.php
application/views/error/exception.php
+0
-0
index.php
public/index.php
+0
-1
view.php
system/view.php
+7
-23
No files found.
system/views
/exception.php
→
application/views/error
/exception.php
View file @
b504089d
File moved
public/index.php
View file @
b504089d
...
...
@@ -44,7 +44,6 @@ $constants = array(
'SESSION_PATH'
=>
APP_PATH
.
'storage/sessions/'
,
'STORAGE_PATH'
=>
APP_PATH
.
'storage/'
,
'STYLE_PATH'
=>
PUBLIC_PATH
.
'css/'
,
'SYS_VIEW_PATH'
=>
SYS_PATH
.
'views/'
,
'VIEW_PATH'
=>
APP_PATH
.
'views/'
,
);
...
...
system/view.php
View file @
b504089d
...
...
@@ -41,7 +41,13 @@ class View {
{
$this
->
view
=
$view
;
$this
->
data
=
$data
;
$this
->
path
=
$this
->
find
();
if
(
!
file_exists
(
$path
=
VIEW_PATH
.
$view
.
EXT
))
{
throw
new
\Exception
(
"View [
$view
] does not exist."
);
}
$this
->
path
=
$path
;
}
/**
...
...
@@ -106,28 +112,6 @@ class View {
return
ob_get_clean
();
}
/**
* Get the full path to the view.
*
* Views are cascaded, so the application directory views will take
* precedence over system directory views of the same name.
*
* @return string
*/
protected
function
find
()
{
if
(
file_exists
(
$path
=
VIEW_PATH
.
$this
->
view
.
EXT
))
{
return
$path
;
}
elseif
(
file_exists
(
$path
=
SYS_VIEW_PATH
.
$this
->
view
.
EXT
))
{
return
$path
;
}
throw
new
\Exception
(
"View ["
.
$this
->
view
.
"] doesn't exist."
);
}
/**
* Add a view instance to the view data.
*
...
...
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