raintpl
raintpl copied to clipboard
problem with the cache include
I can't use the {include="templatename" cache="3600"} if my templatename has a subdirectory...
you can fix this if you change in the compile code (line 442) the var $include_var for $include_template.
With this change...you must be using the cache as you show in your documentation.
http://www.raintpl.com/Documentation/Documentation-for-PHP-developers/Methods/Cache/
Excelent template engine! I'm waiting for the version 3 :) and sorry for my english.
Hey Tinchoz, I'm pretty sure we fixed this bug in this commit, so the latest version it should work. https://github.com/rainphp/raintpl/commit/1d91af7a3e758401aba42432ffe8eb5563ccf8b6
In case the bug is on the latest version I'll check and fix it, or you can fix it by forking the project and send a pull request. Thanks so much for your bug report.
RainTPL 3 is in beta for now, we didn't find any further serious bug, we still need to add some more Hook (or events) for the plugins, and it will be ready, also we need to write the documentation for it. I'm trying to speed up the work on the RainCMS wiki plugin, so everybody will be able to contribute in the documentation, also the plugin will be available in the Rain App Store, working on that too.
Busy summer, hopefully we'll be all ready for middle september.
Thanks again.
Hey rain! Thanks for you answer, I check the latest version and yes it has the bug. So I'm going to create a forking and send a pull request!
About raintpl 3... in september I'm going to migrate my framework Asimov to this version of the template and try to helping you in all I can.
Bye!
Parse error: syntax error, unexpected T_STATIC, expecting ')' in C:\PHPnow\htdocs\test\tpl\raintpl\inc\rain.tpl.class.php on line 430
Thanks for the report I'm checking the code right now.
Problem solved, we were using static::$tpl_dir instead of self::$tpl_dir, so on PHP < 5.3 was not working. Can you confirm that works for you now?
https://github.com/rainphp/raintpl/commit/7d3be1990e3a3b960506be8222cbc20733b67b63