How to install the Rain TPL library?

0

Someone could show me an example, because I put here in my index.php that way, but I believe it is out of date, with the current version I believe it should be different, because it did not work,

#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
    
asked by anonymous 01.05.2017 / 06:37

1 answer

0

Try this:

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 this.

    
01.05.2017 / 13:34