Jump to content

Helpers dans module

Recommended Posts



j'aimerais créer un helpers (input number) dans mon module. Je n'utilise pas de controller. Seulement la page de configuration du module via l'admin.


Mais je n'ai pas l'impression que mon fichier form.tpl soit lue...


Mon fichier form se trouve dans views/templates/admin/_configure/helpers/form/form.tpl


Avez-vous une idée? je suis en version 1.6



Share this post

Link to post
Share on other sites

Personne n'a une idée?




exemple form.tpl

{extends file="helpers/form/form.tpl"}
{block name="field"}
  {if $input.type == 'my_input'}
 <input id="name" type="text" class="disabled" name="filename" readonly />

exemple mymodule.php

                        'type' => 'my_input',
                        'label' => $this->l('Input'),
                        'name' => 'input',
                        'lang' => true,
                        'required' => true,

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More