Jump to content

compile and class error when trying to do a module based in tuturial


fabio_br

Recommended Posts

Hi

Im following a tuturial to make one module but this errors pop up and i cant follow the tutorial

 

using this code to create a php file

 

<?php
class MyModComments extends Module
{
public function __construct( )
{
$this- >name = ' mymodcomments' ;
$this- >tab = ' front_office_features' ;
$this- >version = ' 0. 1' ;
$this->author = 'Fabio Miranda' ;
$this- >displayName = ' My Module of product comments' ;
$this- >description = ' With this module, your customers will be able to grade and comments your products. ' ;
parent: : __construct( ) ;
}
}

 
and im receiving this errors:
2 erros 
  1. mymodcomments (erro de compilação em /modules/mymodcomments/mymodcomments.php)
  2. mymodcomments (classe faltando em /modules/mymodcomments/mymodcomments.php)

 

What is wrong with the code???

I´m using prestashop 1.6.1.10

Edited by fabio_br (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...