Crash when include Loader::element('header_required');

Permalink
hello guys , i'm building a new theme with concrete 5.4.1.1

in my php file , everything works fine

but when i add that line , an error occurs and the page can't load properly

Loader::element('header_required');

btw : i'm not loading any other javascript files

 
Steevb replied on at Permalink Reply
Steevb
Hi,

Have you built your theme in php?

What else do you in the way php in the head of your page?

A little more info might help.
haytham replied on at Permalink Reply
look , my theme is calling a port_cats.php file through javascript

that file is responsible for displaying images in my home page

below the port_cats.php file

when i added the part that starts with : "<?php Loader::element('header_required'); ?>"

that part isn't loaded properly in my site

btw : below also the javascript file that calls port_cats.php , and it's called custom.js
haytham replied on at Permalink Reply
Steevb replied on at Permalink Reply
Steevb
Look??

I was only trying to help?

You said "i'm not loading any other javascript files"

When you call
<?php Loader::element('header_required'); ?>


You call concrete javascript files!

OK?
haytham replied on at Permalink Reply
yeah i know , i mean that i'm not calling any other javascript files that may conflict with concretes' ones
jordanlev replied on at Permalink Reply
jordanlev
Try moving the Loader::element line above the javascript that pulls in that other file.

And in general on the forums, remember that not everyone uses phrases in the same way and they don't necessarily mean things to sound the way they do when you read them -- especially if English is not their native language :)