raintpl icon indicating copy to clipboard operation
raintpl copied to clipboard

problem with the cache include

Open tinchoz49 opened this issue 12 years ago • 5 comments

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.

tinchoz49 avatar Aug 21 '12 18:08 tinchoz49

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.

feulf avatar Aug 21 '12 18:08 feulf

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!

tinchoz49 avatar Aug 25 '12 20:08 tinchoz49

Parse error: syntax error, unexpected T_STATIC, expecting ')' in C:\PHPnow\htdocs\test\tpl\raintpl\inc\rain.tpl.class.php on line 430

RodeyManager avatar Dec 15 '12 13:12 RodeyManager

Thanks for the report I'm checking the code right now.

feulf avatar Dec 16 '12 15:12 feulf

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

feulf avatar Dec 16 '12 16:12 feulf