Jump to content

tpl module admin.


Recommended Posts

Bonjour,

 

J'essaye de créer un module d'administration.

Concernant l'affichage, voici ma classe admin :

 

<?php
include_once(_PS_ADMIN_DIR_.'/../classes/AdminTab.php');
class AdminGrappe extends AdminTab
{
 public function display()
 {
   global $smarty;
   return $this->display(__FILE__, 'admingrappe.tpl');
 }
}
?>

 

et mon tpl :

 

<fieldset style="float: left; margin: 0pt 20px 0pt 0pt; height: 160px;width: 666px;">
<legend><img src="../img/admin/import.gif" />{l s='Upload'}</legend>
<form action="{$current}&token={$token}" method="POST" enctype="multipart/form-data">
 <label class="clear">{l s='Select a file:'} </label>
 <div class="margin-form">
  <input name="file" type="file" /><br />{l s='You can also upload your file by FTP and put it in'} {$path_import}.
 </div>
 <div class="margin-form">
  <input type="submit" name="submitFileUpload" value="{l s='Upload'}" class="button" />
 </div>
 <div class="margin-form">
  {l s='Allowed files are only UTF-8 and iso-8859-1 encoded ones'}
 </div>
</form>
</fieldset>

 

et à l'affichage je n'ai rien avec ce message dans les logs :

 

PHP Fatal error: Maximum function nesting level of '100' reached, aborting!

 

Je m'y prends peu être mal..:(

 

Merci d'avance de votre aide

Link to comment
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...