garciasanchezdani Posted September 29, 2015 Share Posted September 29, 2015 He creado una custom tab en el backend, que muestra un formulario para guardar algunos ajustes en la tabla ps_configuration.El código que tengo es este: class AdminMyModuleController extends ModuleAdminController { public function __construct() { $this->bootstrap = true; $this->className = 'Configuration'; $this->table = 'configuration'; parent::__construct(); $this->fields_options = array( 'general' => array( 'title' => $this->l('Ajustes para configurar mi modulo'), 'fields' => array( 'MYMODULE_IDCLIENTE' => array( 'title' => $this->l('Identificador de cliente'), 'type' => 'text', 'size' => 20, 'required' => true ), 'MYMODULE_EXECUTION_INTERVAL_UNIT' => array( 'title' => $this->l('Intervalo de ejecución (unidad)'), 'type' => 'select', 'size' => 5, 'required' => true, 'identifier' => "execution_interval_unit", "desc" => "Indique si desea que la sincronización se realice cada x minutos, horas, días, semanas o meses.", 'list' => array( array( "execution_interval_unit" => "1", "name" => 'Minutos' ), array( "execution_interval_unit" => "2", "name" => 'Horas' ), array( "execution_interval_unit" => "3", "name" => 'Días' ), array( "execution_interval_unit" => "4", "name" => 'Semanas' ), array( "execution_interval_unit" => "5", "name" => 'Meses' ) ) ), 'MYMODULE_EXECUTION_INTERVAL_VALUE' => array( 'title' => $this->l('Intervalo de ejecución (valor)'), 'type' => 'text', 'size' => 20, 'required' => true ), ), 'submit' => array('title' => $this->l('Save')) ), ); } } Ahora necesito añadir un botón, el cual al seleccionarlo, comprueba conexión con un web service. Gracias. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now