J
J
Jypsy2018-06-05 18:03:16
PHP
Jypsy, 2018-06-05 18:03:16

Why doesn't the server see the .tpl file?

I installed a server on an Ubuntu virtual machine, installed LAMP. Uploaded the site to the var/www/ folder.
Displays an error message: Error: [Template [menu/before.tpl] not found!], [no number specified]
The before.tpl file is in the menu folder. I set the rights to the folder to 777 and set the file to 777. I did not find a solution to the problem on the Internet.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
A person from Kazakhstan, 2018-06-05
@LenovoId

tpl is a symbol, you can use any extension ... at least index.tamagichi .
tpl is an abbreviation for the word TemPLate in
order for tpl to work, you need to register it in php and then display it on the page,
you can buy / download the Ruskov course there in detail it tells how to use tpl on pages

T
ThunderCat, 2018-06-06
@ThunderCat

function __construct($url, 
$lng, 
$templates=array(
'before' => 'menu/before.tpl',
'after' => 'menu/after.tpl', 
'listitem_out' => 'menu/out.tpl', 
'listitem_in' => 'menu/in.tpl', 
'listitem_on' => 'menu/on.tpl'))
{...}

Did you plan it yourself or did someone "kind" teach it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question