Jump to content

[solved] link to a module


Recommended Posts

Thank you for trying, GhoHan.
I didn't manage to link directly to the module, but i made a separate file with the folowing content, and i linked the button to it:

<?php

include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/../../header.php');
include(dirname(__FILE__).'/homecategories.php');
$homecategories = new homecategories();
echo $homecategories->hookHome();
include(dirname(__FILE__).'/../../footer.php');
?>



And it works like a charm.

Link to comment
Share on other sites

Thank you for trying, GhoHan.
I didn't manage to link directly to the module, but i made a separate file with the folowing content, and i linked the button to it:
<?php

include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/../../header.php');
include(dirname(__FILE__).'/homecategories.php');
$homecategories = new homecategories();
echo $homecategories->hookHome();
include(dirname(__FILE__).'/../../footer.php');
?>



And it works like a charm.



Yes i'm try also your code that and i get blank screen because you are use /.../../

below the code i'm tested working and no blank screen sir.
<?php
include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/header.php');
include(dirname(__FILE__).'/homecategories.php');
$homecategories = &new;homecategories();
echo $homecategories->hookHome();
include(dirname(__FILE__).'/footer.php');
?> 



Hope this help you :)

Link to comment
Share on other sites

×
×
  • Create New...