You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You must include the assets for the "backend" interface found in /test-helper
This plugin repository is currently lacking:
it's own layout.ctp.
assets like jquery, font awesome and the modal lib that are being used in the templates.
the Flash component should also be loaded by default as it's being used in the controllers.
the Flash design elements (Element/Flash/success.ctp and Element/Flash/error.ctp) maybe look at my component and include that in the project as well because it will load the elements from the plugin (once included).
the Tools.Format helper should also be loaded by default as it's being used in the views.
the TestHelper helper should also be loaded by default
Extra stuff needed to make this plugin work
currently my project's AppController.php looks like this:
class AppController extends Controller
{
public function initialize() {
parent::initialize();
// dereuromark's testhelper
if($this->request->getParam('plugin') == 'TestHelper') {
$this->loadComponent('Flash');
}
}
}
and my project's AppView.php looks like this:
class AppView extends View
{
public function initialize() {
parent::initialize();
// dereuromark's testhelper
if($this->request->getParam('plugin') == 'TestHelper') {
$this->loadHelper('Test'); //// this is my helper that will overwrite the layout in my project
$this->loadHelper('Tools.Format');
}
}
}
The text was updated successfully, but these errors were encountered:
I Agree, the plugin (at least for CakePHP 3.x) should come with a theme comtaining a default layout of its own with everything needed to display a workable UI. Could be vanilla Bootstrap or something more simple. Kinda like "Batteries included".
dereuromark
changed the title
This plugin is missing some stuff
Own layout/theme/assets
Oct 30, 2024
You must include the assets for the "backend" interface found in
/test-helper
This plugin repository is currently lacking:
Element/Flash/success.ctp
andElement/Flash/error.ctp
) maybe look at my component and include that in the project as well because it will load the elements from the plugin (once included).Extra stuff needed to make this plugin work
currently my project's
AppController.php
looks like this:and my project's
AppView.php
looks like this:The text was updated successfully, but these errors were encountered: