dwoo-project / dwoo

[UNMAINTAINED] php template engine
http://dwoo.org
GNU Lesser General Public License v3.0
167 stars 58 forks source link

Multiple instances running with same folder name gives an error #41

Open karimnl024 opened 8 years ago

karimnl024 commented 8 years ago

When I run two instances of dwoo in the same class, and I have two folders with identical names, it gives an error as dwoo compiles them in folders with the name of the folder for tpls. Don' t know how to properly describe.

emulienfou commented 8 years ago

I, can you be more specific about your problem? It will be easier for me if you can add an example of the part of your code you having this problem.

Thanks

karimnl024 commented 8 years ago

Dear,

Say I have a file "/www/index.php" and a file "/www/admin/index.php" and use tpl on both of them, both have their own folder where the tpl's are stored. Let's say: "/www/templates" and "/www/admin/templates".

When I then call to the template "index.tpl" or "default.tpl" in both, dwoo tends to store them in the compiled folder with the same name. And thus the one will call to the other which will give problems.

Suggestion: use a hash or something like that containing the directory and store the compiled files that way.

Is Dwoo dead btw? I haven't seen some updates in quite some time. If you have any more questions, let me know! Thanks for the help ;-)

Kind regards, Karim Abdulahi.

2016-02-02 18:57 GMT+01:00 DSanchez notifications@github.com:

I, can you be more specific about your problem? It will be easier for me if you can add an example of the part of your code you having this problem.

Thanks

— Reply to this email directly or view it on GitHub https://github.com/dwoo-project/dwoo/issues/41#issuecomment-178720507.

The information contained in this message may be confi dential and is intended to be exclusively for the addressee. Should you receive this message unintentionally, please do not use, disclose, distribute or multiply the contents herein and notify the sender immediately by return e-mail and delete this message thereafter.