Complete List Of Directory Locations/variables Used In Cs-Cart 4.x

Dear All,

Directory variables can be used when you develop add-ons and is better to have the full list in front of you when you start instead to search at a particular time and disconnect from what are starting to do, like me right now :grin: when I stopped to share this with you.


<br />
Registry::get('config.dir.root'); #<br />
Registry::get('config.dir.functions'); # /app/functions<br />
Registry::get('config.dir.lib'); # /app/lib<br />
Registry::get('config.dir.addons'); # /app/addons<br />
Registry::get('config.dir.design_frontend'); # /design/themes<br />
Registry::get('config.dir.design_backend'); # /design/backend<br />
Registry::get('config.dir.payments'); # /app/payments<br />
Registry::get('config.dir.schemas'); # /app/schemas<br />
Registry::get('config.dir.themes_repository'); # /var/themes_repository<br />
Registry::get('config.dir.database'); # /var/database<br />
Registry::get('config.dir.var'); # /var<br />
Registry::get('config.dir.upgrade'); # /var/upgrade<br />
Registry::get('config.dir.cache_templates'); # /var/cache/templates<br />
Registry::get('config.dir.cache_registry'); # /var/cache/registry<br />
Registry::get('config.dir.files'); # /var/files<br />
Registry::get('config.dir.cache_misc'); # /var/cache/misc<br />
Registry::get('config.dir.layouts'); # /var/layouts<br />
Registry::get('config.dir.snapshots'); # /var/snapshots<br />
Registry::get('config.dir.lang_packs'); # /var/langs<br />
Registry::get('config.dir.certificates'); # /var/certificates<br />
Registry::get('config.dir.store_import'); # /var/store_import<br />

```<br />
<br />
#Require: ```php
<br />
use Tygh\Registry;<br />

```<br />
<br />
If i miss some please feel free to post<br />
<br />
[b]"You are what you share."[/b] [color=#696969]- Charles Leadbeater[/color]<br />
<br />
<br />
I hope that helps,<br />
<br />
---<br />
Valentin<br />
[color=#808080][size=2]part of hungryweb.net[/size][/color]

Thanks!

Hi is there any way to use these in .tpl files of theme?

[quote name='tpsstar' timestamp='1398662497' post='182459']

Hi is there any way to use these in .tpl files of theme?

[/quote]



Yes, please use it in the following way:



{$config.dir.ATTRIBUTE}




For example, if you want to display addons directory:



{$config.dir.addons}




Hope that helps.