Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit 4a0878c

Browse files
committed
v 0.4
1 parent c922b35 commit 4a0878c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1999
-23
lines changed

Diff for: CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## 0.4 (2015-04-22)
2+
3+
Bugfixes:
4+
5+
- Add translation packages for some languages ( French, German, Russian, Italian, Spanish )
6+
- Set the default translation to English if the translantion file does not exists.

Diff for: README.md

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# CodeIgniter Developer Toolbar
2+
3+
CodeIgniter Developer Toolbar is a third party library based on Profiler Library with additional functionality for debugging and optimization.
4+
5+
Support Multilanguage.
6+
7+
# Screen-shot
8+
9+
![Alt text](images/Screen-Shot-develbar.png "Developer Toolbar")
10+
11+
# Installation
12+
13+
CodeIgniter Versoin >= 2.2.0
14+
15+
Copy the files to the `application/third_party/DevelBar` folder.
16+
17+
Copy the file `MY_Loader.php` to the `application/core` folder.
18+
19+
# Usage
20+
21+
Open `application/config/autoload.php` :
22+
23+
```php
24+
$autoload['packages'] = array(APPPATH . 'third_party/DevelBar');
25+
```
26+
27+
Open `application/config/config.php` :
28+
29+
```php
30+
$config['enable_hooks'] = TRUE;
31+
```
32+
33+
Open `application/config/hooks.php` and add this line :
34+
35+
```php
36+
$hook['display_override'][] = array(
37+
'class' => 'Develbar',
38+
'function' => 'debug',
39+
'filename' => 'Develbar.php',
40+
'filepath' => 'third_party/DevelBar/hooks'
41+
);
42+
```
43+
44+
Open `application/third_party/DevelBar/config/config.php` :
45+
46+
```php
47+
$config['enable_develbar'] = TRUE;
48+
```
49+
50+
# Additional parameters
51+
52+
If you want to disable some sections within the developer toolbar,
53+
54+
Open `application/third_party/DevelBar/config/config.php`, and set the sections value to `FALSE` :
55+
56+
```php
57+
$config['develbar_sections'] = array(
58+
'Benchmarks' => TRUE,
59+
'Memory Usage' => TRUE,
60+
'Request' => TRUE,
61+
'Database' => TRUE,
62+
'Hooks' => FALSE, // Disable Hooks Section
63+
'Libraries' => TRUE,
64+
'Helpers' => FALSE, // Disable Helpers Section,
65+
'Views' => TRUE,
66+
'Config' => TRUE,
67+
'Session' => TRUE,
68+
'Models' => TRUE,
69+
);
70+
```
71+
To auto check for available new version of CodeIgniter and DeveloperToolbar, you should set `check_update` option to `TRUE`,
72+
within `application/third_party/DevelBar/config/config.php` :
73+
74+
```php
75+
$config['check_update'] = TRUE;
76+
```
77+
78+
NOTE : if this option is set to TRUE, it will slow down the page loading a little bit.

Diff for: composer.json

-23
This file was deleted.

Diff for: config/autoload.php

+140
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
<?php
2+
defined('BASEPATH') OR exit('No direct script access allowed');
3+
4+
/*
5+
| -------------------------------------------------------------------
6+
| AUTO-LOADER
7+
| -------------------------------------------------------------------
8+
| This file specifies which systems should be loaded by default.
9+
|
10+
| In order to keep the framework as light-weight as possible only the
11+
| absolute minimal resources are loaded by default. For example,
12+
| the database is not connected to automatically since no assumption
13+
| is made regarding whether you intend to use it. This file lets
14+
| you globally define which systems you would like loaded with every
15+
| request.
16+
|
17+
| -------------------------------------------------------------------
18+
| Instructions
19+
| -------------------------------------------------------------------
20+
|
21+
| These are the things you can load automatically:
22+
|
23+
| 1. Packages
24+
| 2. Libraries
25+
| 3. Drivers
26+
| 4. Helper files
27+
| 5. Custom config files
28+
| 6. Language files
29+
| 7. Models
30+
|
31+
*/
32+
33+
/*
34+
| -------------------------------------------------------------------
35+
| Auto-load Packages
36+
| -------------------------------------------------------------------
37+
| Prototype:
38+
|
39+
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
40+
|
41+
*/
42+
43+
$autoload['packages'] = array(APPPATH.'third_party/DevelBar');
44+
45+
46+
/*
47+
| -------------------------------------------------------------------
48+
| Auto-load Libraries
49+
| -------------------------------------------------------------------
50+
| These are the classes located in the system/libraries folder
51+
| or in your application/libraries folder.
52+
|
53+
| Prototype:
54+
|
55+
| $autoload['libraries'] = array('database', 'email', 'session');
56+
|
57+
| You can also supply an alternative library name to be assigned
58+
| in the controller:
59+
|
60+
| $autoload['libraries'] = array('user_agent' => 'ua');
61+
*/
62+
63+
$autoload['libraries'] = array('database', 'session');
64+
65+
66+
/*
67+
| -------------------------------------------------------------------
68+
| Auto-load Drivers
69+
| -------------------------------------------------------------------
70+
| These classes are located in the system/libraries folder or in your
71+
| application/libraries folder within their own subdirectory. They
72+
| offer multiple interchangeable driver options.
73+
|
74+
| Prototype:
75+
|
76+
| $autoload['drivers'] = array('cache');
77+
*/
78+
79+
$autoload['drivers'] = array();
80+
81+
82+
/*
83+
| -------------------------------------------------------------------
84+
| Auto-load Helper Files
85+
| -------------------------------------------------------------------
86+
| Prototype:
87+
|
88+
| $autoload['helper'] = array('url', 'file');
89+
*/
90+
91+
$autoload['helper'] = array();
92+
93+
94+
/*
95+
| -------------------------------------------------------------------
96+
| Auto-load Config files
97+
| -------------------------------------------------------------------
98+
| Prototype:
99+
|
100+
| $autoload['config'] = array('config1', 'config2');
101+
|
102+
| NOTE: This item is intended for use ONLY if you have created custom
103+
| config files. Otherwise, leave it blank.
104+
|
105+
*/
106+
107+
$autoload['config'] = array('');
108+
109+
110+
/*
111+
| -------------------------------------------------------------------
112+
| Auto-load Language files
113+
| -------------------------------------------------------------------
114+
| Prototype:
115+
|
116+
| $autoload['language'] = array('lang1', 'lang2');
117+
|
118+
| NOTE: Do not include the "_lang" part of your file. For example
119+
| "codeigniter_lang.php" would be referenced as array('codeigniter');
120+
|
121+
*/
122+
123+
$autoload['language'] = array();
124+
125+
126+
/*
127+
| -------------------------------------------------------------------
128+
| Auto-load Models
129+
| -------------------------------------------------------------------
130+
| Prototype:
131+
|
132+
| $autoload['model'] = array('first_model', 'second_model');
133+
|
134+
| You can also supply an alternative model name to be assigned
135+
| in the controller:
136+
|
137+
| $autoload['model'] = array('first_model' => 'first');
138+
*/
139+
140+
$autoload['model'] = array();

0 commit comments

Comments
 (0)