dwoo icon indicating copy to clipboard operation
dwoo copied to clipboard

Multiple instances running with same folder name gives an error

Open karimnl024 opened this issue 9 years ago • 2 comments

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.

karimnl024 avatar Feb 02 '16 17:02 karimnl024

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

emulienfou avatar Feb 02 '16 17:02 emulienfou

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 [email protected]:

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.

karimnl024 avatar Feb 03 '16 09:02 karimnl024