Post by jadeye » Thu Jul 23, 2015 5:21 am

Hello
How can I get DIR_TEMPLATE . $this->config->get('config_template') for frontend from admin side?

Thanx

Imagehttp://nwg.co.il/
“Compassion is the basis of morality.”
― Arthur Schopenhauer


New member

Posts

Joined
Sun Jul 15, 2012 12:35 am

Post by IP_CAM » Thu Jul 23, 2015 10:18 am

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/

I'm no longer active at the OC Forum. To reach me, contact: jti@jacob.ch
A Demoversion of my free OpenCart LIGHT v.1.5.6.5 Software Edition
can be seen in Action here: http://www.jti.li/shop/
---
940+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by jadeye » Sat Jul 25, 2015 10:08 pm

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

Imagehttp://nwg.co.il/
“Compassion is the basis of morality.”
― Arthur Schopenhauer


New member

Posts

Joined
Sun Jul 15, 2012 12:35 am

Post by jadeye » Sun Jul 26, 2015 9:25 pm

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');

Imagehttp://nwg.co.il/
“Compassion is the basis of morality.”
― Arthur Schopenhauer


New member

Posts

Joined
Sun Jul 15, 2012 12:35 am
Who is online

Users browsing this forum: No registered users and 14 guests