include no Raintpl

Asked

Viewed 106 times

1

I use Raintpl and I’m trying to make a include on a page by calling a page from the previous folder, but I’m not able to make it work, in the same folder it works like this

{include="cities-search"}

already tried with / com .. / com . / tried tbm {include=$_SERVER['DOCUMENT_ROOT'] . '/views/Cities-search'} but no way worked out.

  • And the file extension that is including? xD

  • is . html, but even putting does not work. The strange thing is that {include="Cities-search"} without the extension and being in the same folder works. but in the previous directory I cannot

  • What is the directory structure there?! I say: where is calling and where is the file called...

  • What will be called is in views and the file that calls this in views/admin

  • Test there: include('admin/nome_do_arquivo.html');

  • Template Cities-search not found! - It didn’t work, but the page that will be included is only in views, what this calling is in views/admin.

  • Now, for the error message, this include there is related to a rainTPL template. Maybe it is not recognizing such a "template"...

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.