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
4283e7ec
Commit
4283e7ec
authored
Nov 21, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved error pages to application directory.
parent
5e95f05d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
10 deletions
+0
-10
404.php
application/views/error/404.php
+0
-0
500.php
application/views/error/500.php
+0
-0
core.php
laravel/bootstrap/core.php
+0
-1
view.php
laravel/view.php
+0
-9
No files found.
laravel
/views/error/404.php
→
application
/views/error/404.php
View file @
4283e7ec
File moved
laravel
/views/error/500.php
→
application
/views/error/500.php
View file @
4283e7ec
File moved
laravel/bootstrap/core.php
View file @
4283e7ec
...
...
@@ -20,7 +20,6 @@ define('MODEL_PATH', APP_PATH.'models/');
define
(
'ROUTE_PATH'
,
APP_PATH
.
'routes/'
);
define
(
'SESSION_PATH'
,
STORAGE_PATH
.
'sessions/'
);
define
(
'SYS_CONFIG_PATH'
,
SYS_PATH
.
'config/'
);
define
(
'SYS_VIEW_PATH'
,
SYS_PATH
.
'views/'
);
define
(
'VIEW_PATH'
,
APP_PATH
.
'views/'
);
/**
...
...
laravel/view.php
View file @
4283e7ec
...
...
@@ -70,21 +70,12 @@ class View {
{
$view
=
str_replace
(
'.'
,
'/'
,
$view
);
// Application views take priority over system views, so we will return the
// application version of the view if both exists. Also, we need to check
// for Blade views using the Blade extension. The Blade extension gives
// an easy method of determining if the view should be compiled using
// the Blade compiler or if the view is plain PHP.
foreach
(
array
(
EXT
,
BLADE_EXT
)
as
$extension
)
{
if
(
file_exists
(
$path
=
VIEW_PATH
.
$view
.
$extension
))
{
return
$path
;
}
elseif
(
file_exists
(
$path
=
SYS_VIEW_PATH
.
$view
.
$extension
))
{
return
$path
;
}
}
throw
new
\RuntimeException
(
"View [
$view
] does not exist."
);
...
...
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