Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
Merge branch 'dev'
  • Loading branch information
dorian-marchal committed Aug 27, 2015
2 parents fffb8f0 + f0bb6e9 commit eba2f48
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 5 deletions.
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,35 @@
Add [Kint](http://raveren.github.io/kint/) debugging tools to a Concrete5 website.
> Kint is a tool designed to present your debugging data in the absolutely best way possible.
__Disclaimer :__ I am not the developer of Kint, see [Kint documentation](http://raveren.github.io/kint/#intro) for more informations.


### Usage

```
The use of Kint is described in the [official documentation](http://raveren.github.io/kint/#intro).

__For example :__

```php
d($this->getRelativePath());
d($_SERVER);
```

__Output :__
![debug_kit](https://cloud.githubusercontent.com/assets/6225979/8916186/1b152936-34aa-11e5-968e-7a79075ac559.png)

---

__Note :__ I am not the developer of Kint, see [Kint documentation](http://raveren.github.io/kint/#intro) for more informations.
Note that Kint will be disabled if `concrete.debug.display_errors` is `false`.

> ![error](https://cloud.githubusercontent.com/assets/6225979/9530544/c7e4d7d8-4d00-11e5-8b98-069c4b655c74.png)
If you want to manually enable/disable Kint, you can use :

```php
<?php
// Enable Kint
\Kint::enabled(true);

// Disable Kint
\Kint::enabled(false);
```
2 changes: 1 addition & 1 deletion controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class Controller extends Package {
protected $pkgHandle = 'kint_debug';
protected $appVersionRequired = '5.7.0.4';
protected $pkgVersion = '0.9.4';
protected $pkgVersion = '0.9.5';

public function getPackageDescription() {
return t('Add Kint debugging tools');
Expand Down
9 changes: 9 additions & 0 deletions css/debug.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@
.ccm-panel-ready body > .kint ~ .kint {
margin-top: 0px !important;
}

.kint footer {
background-color: white;
font-size: 11px;
}

.kint footer li {
color: #444;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "concrete5-kint-debug",
"version": "0.9.4",
"version": "0.9.5",
"description": "Add Kint debugging tools to a Concrete5 website",
"main": "gulpfile.js",
"scripts": {
Expand Down

0 comments on commit eba2f48

Please sign in to comment.