How to install the Rain TPL library?

Asked

Viewed 762 times

0

Could someone show me an example? Yeah, I put it here in mine index.php this way, but, I believe it is outdated. With the current version, I believe it should be different, because it did not work and is giving error.

#Instalando raintpl
include "lib/template/raintpl/rain.tpl.class.php"; //aqui é onde está meu arquivo
raintpl::$tpl_dir= $_GET ['r']."/tpl/"; //aqui o caminho da pasta que ficará o template
raintpl::$cache_dir= $_GET ['r']."/tpm/"; // aqui onde armazenará o cache

1 answer

0

Try this way:

raintpl::configure("base_url", null );
raintpl::configure("tpl_dir", $_GET['r']."/tpl/" );
raintpl::configure("cache_dir", $_GET['r']."/tpm/" );

I have no idea what $_GET['r'] is but try it this way.

  • in case you suggest to remove Include and replace with the line: raintpl::configure("base_url", null );

  • Not include remains what replaces the other lines.

Browser other questions tagged

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