PHP code example of malekim / halt

1. Go to this page and download the library: Download malekim/halt library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

malekim / halt example snippets


$this->addPlugin(\Halt\Plugin::class);
Configure::write('DebugKit.panels', ['Halt.Halt']);

if (Configure::read('debug')) {
    $this->addPlugin(\Halt\Plugin::class);
    Configure::write('DebugKit.panels', ['Halt.Halt']);
    $this->addPlugin(\DebugKit\Plugin::class);
}

// inside PagesController.php
public function display(...$path) {
    halt($path);
    // rest of the code
}