Jump to content

Include external file in template


Vikestart

Recommended Posts

Posted

In 3.4.7, you could use following template tag to include an external file, such as external header:

{parse include="../somefile.php"}

How is this done in 4.0?

I read this article about Template Tags, but it doesn't mention anything about including files.

Posted

Same problem over here! (RC 2) 

The theme editor does not want to save when using {insert="..."}.

{{  include( './my-php-file.php' ); }} works, but when I echo out something I get an error:

Fatal error: Uncaught exception 'ErrorException' with message 'Cannot modify header information - headers already sent by...

 

  • 8 months later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...