1. Go to this page and download the library: Download jaxon-php/jaxon-cake 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/ */
jaxon-php / jaxon-cake example snippets
/**
* Load all the application configuration and bootstrap logic.
*
* @return void
*/
public function bootstrap(): void
{
...
// Load more plugins here
$this->addPlugin(\Jaxon\Cake\JaxonPlugin::class, ['routes' => true]);
}
/**
* Initialization hook method.
*
* Use this method to add common initialization code like loading helpers.
*
* e.g. `$this->loadHelper('Html');`
*
* @return void
*/
public function initialize(): void
{
$this->loadHelper('Jaxon/Cake.Jaxon');
}
use Jaxon\Cake\Middleware\ConfigMiddleware as JaxonConfigMiddleware;
$routes->scope('/', function (RouteBuilder $builder) {
// Register Jaxon middlewares
$builder->registerMiddleware('jaxon.config', new JaxonConfigMiddleware());
// Apply the "jaxon.config" middleware to routes to pages that
<!-- The Jaxon CSS code -->
<?= $this->Jaxon->css()
<!-- The Jaxon javascript
<!-- The Jaxon javascript code -->
<?= $this->Jaxon->script()
namespace Jaxon\App;
class HelloWorld extends \Jaxon\App\CallableClass
{
public function sayHello()
{
$this->response->assign('div2', 'innerHTML', 'Hello World!');
return $this->response;
}
}
bash
composer
json
{
"axon-php/jaxon-cake": "^5.0",
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.