Jump to content

How to get variables in custom module


dolec

Recommended Posts

I created module class and module with tab and config form - saving some fields using

 

Configuration::updateValue($this->name.'_message', Tools::getValue('our_message'), true);

 

Now i do the frontend and i want to use the variables in different PHP file or later in Smarty tpl file

 

I created file :

 

<?php

global $smarty;

include('../../config/config.inc.php');

include('../../header.php');

$mymodule = new Quote();

$message = $mymodule->l('Welcome to my shop!');

$smarty->assign('messageSmarty', $message);

$smarty->display(dirname(__FILE__).'/quote_page.tpl');

 

include('../../footer.php');

?>

 

How in this frontend get the values saved in the form in config backend ?

Can i use $mymodule -> GetValue? if i created object ?

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...