Page 1 of 1

Get frontend template dir from admin side

Posted: Thu Jul 23, 2015 5:21 am
by jadeye
Hello
How can I get DIR_TEMPLATE . $this->config->get('config_template') for frontend from admin side?

Thanx

Re: Get frontend template dir from admin side

Posted: Thu Jul 23, 2015 10:18 am
by IP_CAM
I wonder, what you possibly try to achieve? There is not a frontend template directory, the are several such directories, related, to create CONTENT, i.E., in the THEME Directory used, named templates. But I really cannot see a reason, to address this from the Admin Section, exept with a FileManager, to edit some content.

Just to avoid, you, to be surprised, possibly not finding that kind of data/content/source, your'e looking for. ;)
Ernie
hitline.info/shop/

Re: Get frontend template dir from admin side

Posted: Sat Jul 25, 2015 10:08 pm
by jadeye
I know...
I was referring to define('DIR_TEMPLATE', '/PATH/Site.com/catalog/view/theme/');
This is defined on "client" side OR frontEnd...

So, is there a way to access this var or just redefine it on Admin side??

Re: Get frontend template dir from admin side

Posted: Sun Jul 26, 2015 9:25 pm
by jadeye
Get front end theme path

Code: Select all

$path = str_replace("admin", "catalog", DIR_TEMPLATE);
$path = str_replace("template", "theme", $path);
$path .= $this->config->get('config_template');