Jump to content

ai_99

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Activity
    Project Owner

ai_99's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. thanks for respnse. ; missing in this post i solved problem - i'm copied working module from my shop, rename it, copied all my code to new module. after that module installs correct (no changes in my code). Maybe it's a cms bug. I still don't know wy (i try create new module and have same problem with install it).
  2. Hi, please tell me what i do wrong. I try to write new module, and when i try to install it, i have error: blockheadercontacts (parse error in /modules/blockheadercontacts/blockheadercontacts.php)blockheadercontacts (class missing in /modules/blockheadercontacts/blockheadercontacts.php) I try to delete all code, and this construction work fine: <?php if (!defined('_PS_VERSION_')) exit; class BlockHeaderContacts extends Module { } ?> But when i try to add public function __construct() i have error blockheadercontacts (parse error in /modules/blockheadercontacts/blockheadercontacts.php)blockheadercontacts (class missing in /modules/blockheadercontacts/blockheadercontacts.php) again. <?php if (!defined('_PS_VERSION_')) exit; class BlockHeaderContacts extends Module { public function __construct() { $this->name = 'blockheadercontacts' $this->tab = 'front_office_features'; $this->author = 'Developer Name'; $this->version = 1.0; $this->need_instance = 0; parent::__construct(); $this->displayName = $this->l('Shop contacts info block'); $this->description = $this->l('Adds a block that displays information about the shop contacts to header'); } } ?> What is wrong in this code?
×
×
  • Create New...