All Lb modules which use Theme class for backend, use the Lb config file.
Create your own lb config file in app/config/lb.php
:
'theme' => array(
'use_casset' => false, // If you use Casset instead of Asset
'assets' => array(
// 'css_plugin' => 'css', // Set the asset group "css" instead of "css_plugin",
),
),
It uses the Theme class from FuelPHP, consequently you need to have a theme for your administration.
All variables used in the template file from theme :
- $pageTitle : For the title of the page in any action
- $partials['content'] : The partial for the content
<?= \Theme::instance()->asset->render('css_plugin'); ?>
in the head<?= \Theme::instance()->asset->render('js_core'); ?>
in the head<?= \Theme::instance()->asset->render('js_plugin'); ?>
in the footer- Your need to load jQuery, jQuery UI, and optionnaly Twitter Bootstrap v3 + Font Awesome
You can see an example of template here : url/example/template.php
In your theme you don't want to use the asset group "css_plugin", but just "css" ? No problem, you can change it in the config file !
- JS and CSS files are not loaded! Be sure you have included jQuery + jQuery UI + Bootstrap v3 + Font Awesome for UI