Jump to content


phingko

Member Since 26 Jan 2015
Offline Last Active Feb 02 2015 10:05 PM
-----

Posts I've Made

In Topic: Create home tab in Presta 1.6

26 January 2015 - 11:26 PM

Got it, should put is as

<?php if

instead of new line

 

Will marked this as solved.

 


In Topic: Create home tab in Presta 1.6

26 January 2015 - 11:24 PM

Got it, should put is as

<?php if

instead of new line

 

Will marked this as solved.


In Topic: Create home tab in Presta 1.6

26 January 2015 - 11:19 PM

Hi vekia, you are right, it was a stupid msitake.

But now it generates another error;

[PrestaShop] Fatal error in module pshometabs:
syntax error, unexpected 'exit' (T_EXIT)

i checked the error_log and it's said;

PHP Parse error:  syntax error, unexpected 'exit' (T_EXIT) in //public_html/modules/pshometabs/pshometabs.php on line 1

I'm not sure why it could get that error as the first line is <?php only

 

Any ideas?

 

Thanks in advanced


In Topic: Create home tab in Presta 1.6

26 January 2015 - 10:43 PM

I figured it out, but now I got this error on the backend module;

 

[PrestaShop] Fatal error in module Module.php(1224) : eval()'d :
Cannot redeclare psHomeTabs::install()

 

Seems like there is an error when installing, the code for install as below;

 

public function install()

{
if (!parent::install())
return false;
return true;
}
 
 
Is the code correct?
 
Cheers