Cannot get 'Loader::elements...' to work
Permalink
Hi!
I am in the process of learning to use C5 to its full and utilising the integtral core components.
The problem I am having on a website that I am developing is getting the C5 Loader command to work. On my site I have one standard 'header.php' which I then call from all the pages within my theme. When I use the standard PHP command it works just fine. As soon as I use the C5 it tells me there is 'No such file or directory...' in 'htdocs/dev/mysite.com/concrete/core/libraries/loader.php on line 80'.
I believe I have followed the directions and have not seen anywhere that I have to declare it within the Dashboard.
Thank you in advance for your assistance.
Simon.
I am in the process of learning to use C5 to its full and utilising the integtral core components.
The problem I am having on a website that I am developing is getting the C5 Loader command to work. On my site I have one standard 'header.php' which I then call from all the pages within my theme. When I use the standard PHP command
include 'elements/header.php;'
Loader::element('elements/header');
I believe I have followed the directions and have not seen anywhere that I have to declare it within the Dashboard.
Thank you in advance for your assistance.
Simon.
Awesome!
Thanks John
Thanks John
There is pretty much everything you need to know in this howto:
http://www.concrete5.org/documentation/how-tos/designers/making-a-t...
http://www.concrete5.org/documentation/how-tos/designers/making-a-t...
Loader::elements is for site or package level elements.