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?