PHP code example of dereuromark / cakephp-tailwind-ui
1. Go to this page and download the library: Download dereuromark/cakephp-tailwind-ui 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/ */
dereuromark / cakephp-tailwind-ui example snippets
use TailwindUi\View\UiViewTrait;
class AppView extends View
{
use UiViewTrait;
public function initialize(): void
{
parent::initialize();
$this->initializeUi();
}
}
// In config/bootstrap.php or Application::bootstrap()
Configure::write('TailwindUi.classMap', 'ktui');
Configure::write('TailwindUi.classMap', [
'form.input' => 'my-custom-input-class',
]);