Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
24 deletions
+7
-24
application/views/error/exception.php
+0
-0
public/index.php
+0
-1
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
;
}
/**
...
...
@@ -107,28 +113,6 @@ class View {
}
/**
* 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.
*
* @param string $key
...
...
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