Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!defined('_PS_VERSION_')){
- exit;
- }
- class Carlos extends Module{
- public function __construct(){
- $this->name = 'carlos';
- $this->tab = 'front_office_features';
- $this->version = '1.0.0';
- $this->author = 'Carlos';
- $this->ps_version_compliancy = array('min'=> '1.6', 'max' => _PS_VERSION_);
- parent::__construct();
- $this->displayName = 'modulo';
- $this->description = 'description';
- }
- public function install(){
- if(!parent::install() ||
- !Configuration::updateValue('VALOR_URL', 'http://wwww.carlos.com')){
- return false;
- }
- return true;
- }
- public function uninstall()
- {
- if (!parent::uninstall() ||
- !Configuration::deleteByName('VALOR_URL'))
- return false;
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement