Giter Club home page Giter Club logo

fuel-module-menu's People

Contributors

jhuriez avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

fuel-module-menu's Issues

Call to a member function field() on a non-object

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!

Router does'nt work

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.