feulf / raintpl3

The easiest Template Engine for PHP
https://feulf.github.io/raintpl
258 stars 57 forks source link

PathReplacement: error using tpl_dir as array #163

Open wu3rstle opened 9 years ago

wu3rstle commented 9 years ago

If i use multiple template directories according to your documentation, i get an "array to string conversion" error.

$config = array(
    .
    .
    'tpl_dir' => array(
        'app/views/',
    ),
    .
    .
);
Tpl::configure($config);
feulf commented 9 years ago

this needs a fix in the path_replace plugin

wu3rstle commented 9 years ago

Which element should be used? Last element of the template path or the first one?