raintpl3 icon indicating copy to clipboard operation
raintpl3 copied to clipboard

PathReplacement: error using tpl_dir as array

Open wu3rstle opened this issue 10 years ago • 2 comments

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);

wu3rstle avatar Nov 14 '14 18:11 wu3rstle

this needs a fix in the path_replace plugin

feulf avatar Nov 14 '14 19:11 feulf

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

wu3rstle avatar Nov 14 '14 19:11 wu3rstle