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
daea5fee
Commit
daea5fee
authored
Mar 29, 2012
by
Dayle Rees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed anbu to load automatically at end of request- taylors idea
parent
8d16ce8d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
anbu.php
application/config/anbu.php
+13
-0
index.php
application/views/home/index.php
+0
-1
anbu.php
laravel/anbu/anbu.php
+9
-0
No files found.
application/config/anbu.php
View file @
daea5fee
...
@@ -3,6 +3,19 @@
...
@@ -3,6 +3,19 @@
return
array
(
return
array
(
/*
|--------------------------------------------------------------------------
| Enable Anbu
|--------------------------------------------------------------------------
|
| This will cause anbu to be rendered on every request, if you would prefer
| to enable anbu in your templates manually, simply add Anbu::render();
| after the <body> tag.
|
*/
'enable'
=>
true
,
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
| Show the LOG tab.
| Show the LOG tab.
...
...
application/views/home/index.php
View file @
daea5fee
...
@@ -88,7 +88,6 @@
...
@@ -88,7 +88,6 @@
</style>
</style>
</head>
</head>
<body>
<body>
<?php
Anbu
::
render
();
?>
<div
id=
"main"
>
<div
id=
"main"
>
<h1>
Welcome To Laravel
</h1>
<h1>
Welcome To Laravel
</h1>
...
...
laravel/anbu/anbu.php
View file @
daea5fee
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
use
Laravel\View
;
use
Laravel\View
;
use
Laravel\File
;
use
Laravel\File
;
use
Laravel\Config
;
use
Laravel\Config
;
use
Laravel\Event
;
/**
/**
* Anbu, the light weight profiler for Laravel.
* Anbu, the light weight profiler for Laravel.
...
@@ -92,6 +93,14 @@ class Anbu {
...
@@ -92,6 +93,14 @@ class Anbu {
// modify them
// modify them
$listener
=
Config
::
get
(
'anbu.event_listeners'
);
$listener
=
Config
::
get
(
'anbu.event_listeners'
);
$listener
();
$listener
();
// echo anbu on laravel.done if enabled
if
(
Config
::
get
(
'anbu.enable'
))
{
Event
::
listen
(
'laravel.done'
,
function
()
{
Anbu
::
render
();
});
}
}
}
}
}
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