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
– LipESprY
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
– Daniel Santos
What is the directory structure there?! I say: where is calling and where is the file called...
– LipESprY
What will be called is in views and the file that calls this in views/admin
– Daniel Santos
Test there:
include('admin/nome_do_arquivo.html');
– LipESprY
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.
– Daniel Santos
Now, for the error message, this
include
there is related to a rainTPL template. Maybe it is not recognizing such a "template"...– LipESprY