jhuriez / fuel-module-menu Goto Github PK
View Code? Open in Web Editor NEWModule for managing easily the package Fuel LbMenu
Module for managing easily the package Fuel LbMenu
Hi,
i got always this error message
Call to a member function field() on a non-object
/.../fuel/modules/menu/views/admin/add.php @ line 6
1<?= \Form::open(array('role' => 'form', 'class' => 'form-horizontal')); ?>
2<div class="row">
3 <div class="col-lg-6">
4 <h3><?= __('menu.menu.config'); ?></h3>
5 <div class="well">
6 <?= $formLang->field('language')->set_attribute(array('class' => 'form-control')); ?>
7 <?= $form->field('slug')->set_attribute(array('class' => 'form-control')); ?>
8 <?= $formLang->field('text')->set_attribute(array('class' => 'form-control')); ?>
9 <?= $formLang->field('title')->set_attribute(array('class' => 'form-control')); ?>
10 <?= $formLang->field('small_desc')->set_attribute(array('class' => 'form-control')); ?>
11 <?php if($parent_id == 'none'): ?>
when i try to open the admin form.
For me it looks like, that the module has problems, if no language exists (all tables are empty in the database).
Thanks!
Hi,
I've implement your module in my script and after some changes (rename the backend folder to admin and some controller changes) the admin index view is now visible.
Even when I try to click on the "Add" button I do only a refresh because the button has the link "admin/menu" instead of "admin/menu/add"
I have checked the route.php and updated to this
return array(
'admin/menu' => array('menu/admin/index', 'name' => 'menu_admin_menu'),
'admin/menu/view/:id' => array('menu/admin/index', 'name' => 'menu_admin_submenu'),
'admin/menu/add' => array('menu/admin/index/add', 'name' => 'menu_admin_add'),
'admin/menu/add/parent/:parent' => array('menu/admin/index/add', 'name' => 'menu_admin_add_to_parent'),
'admin/menu/add/:id' => array('menu/admin/index/add', 'name' => 'menu_admin_edit'),
'admin/menu/delete/:id' => array('menu/admin/index/delete', 'name' => 'menu_admin_delete'),
);
I have also updated the view button to this:
Action Buttons:
<a href="<?= \Router::get('menu_admin_delete', array('id' => $menu->id)); ?>" class="btn btn-danger btn-circle"><i class="fa fa-trash-o fa-lg"></i></a>
<a href="<?= \Router::get('menu_admin_edit', array('id' => $menu->id)); ?>" class="btn btn-info btn-circle"><i class="fa fa-pencil fa-lg"></i></a>
<a href="<?= \Router::get('menu_admin_submenu', array('id' => $menu->id)); ?>" class="btn btn-warning btn-circle"><i class="fa fa-level-down fa-lg"></i></a>
Add Button for root elements
<a href="<?= \Router::get('menu_menu_add'); ?>" class="btn btn-primary"><i class="fa fa-plus"></i> <?= __('menu.action.create'); ?></a>
Add Button for child elements
<a href="<?= \Router::get('menu_menu_add_to_parent', array('parent' => $menuParent->id)); ?>" class="btn btn-info"><i class="fa fa-plus"></i> <?= __('menu.action.add_link'); ?></a>
Any idea?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.