-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Description
This is a (multiple allowed):
-
bug
-
enhancement
-
feature-discussion (RFC)
-
BootstrapUI Version: Last realease.
-
Bootstrap Framework Version: Last version
-
jQuery: Last version
-
Platform and Target: wampserver
What you did
I have install the plugin :
- composer require friendsofcake/bootstrap-ui 👍
- bin/cake plugin load BootstrapUI 👍
- bin/cake bootstrap install 👍
- bin/cake bootstrap modify_view 👍
- bin/cake bootstrap copy_layouts 👍
- I use trait 👍
declare(strict_types=1);
namespace App\View;
use BootstrapUI\View\UIViewTrait;
use Cake\View\View;
class AppView extends View
{
use UIViewTrait;
/**
* Initialization hook method.
*/
public function initialize(): void
{
parent::initialize();
// Call the initializeUI method from UIViewTrait
$this->initializeUI();
}
}
- I have override this behavior in two ways 👍 Assign a layout to the template with $this->setLayout('layout'). as into controller $this->viewBuilder()->setLayout('default'); + 👍 Disable auto loading of the layout in BootstrapUI\View\UIViewTrait by adding $this->initializeUI(['layout' => false]); to your AppView's initialize() function.
Expected Behavior
My problem is that :
- My default template is contain into the bootstrap-ui default template
- I want only use my template with helper from trait, not the bootstrap-ui default
Actual Behavior
EXPLAIN WHAT IS ACTUALLY HAPPENING, HERE.
Before you open an issue, please check if a similar issue already exists or has been closed before.
P.S. Remember, an issue is not the place to ask questions. You can use Stack Overflow
for that or join the #cakephp channel on irc.freenode.net, where we will be more
than happy to help answer your questions.
Metadata
Metadata
Assignees
Labels
No labels