Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <?php
  2. if(!defined('_PS_VERSION_')){
  3. exit;
  4. }
  5.  
  6. class Carlos extends Module{
  7.  
  8. public function __construct(){
  9. $this->name = 'carlos';
  10. $this->tab = 'front_office_features';
  11. $this->version = '1.0.0';
  12. $this->author = 'Carlos';
  13. $this->ps_version_compliancy = array('min'=> '1.6', 'max' => _PS_VERSION_);
  14.  
  15. parent::__construct();
  16.  
  17. $this->displayName = 'modulo';
  18. $this->description = 'description';
  19.  
  20. }
  21.  
  22. public function install(){
  23. if(!parent::install() ||
  24. !Configuration::updateValue('VALOR_URL', 'http://wwww.carlos.com')){
  25. return false;
  26. }
  27. return true;
  28. }
  29.  
  30. public function uninstall()
  31. {
  32. if (!parent::uninstall() ||
  33. !Configuration::deleteByName('VALOR_URL'))
  34. return false;
  35.  
  36. return true;
  37. }
  38.  
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement