Converting thtml files to tpl
If you are using smarty with cake, than you could find helpful this script to convert thtml files made by the bake script into tpl files.
1.) First you should make accessible smarty as described here:
http://bakery.cakephp.org/articles/view/124
2.) Bake your view files by the bake script.
3.) Use this script to convert them to tpl files.
http://rrd.1108.cc/download-manager.php?id=4
4.)
Download code
That's all :)
http://bakery.cakephp.org/articles/view/124
2.) Bake your view files by the bake script.
3.) Use this script to convert them to tpl files.
http://rrd.1108.cc/download-manager.php?id=4
4.)
Download code
if($ok){
enjoy your smarty views
}
else{
send me a bug report
}
That's all :)
Comments
Comment
1 smarty code
Now it will work
{else}
That wasn't smarty
{/if}
Question
2 where to run this
Thanks!
Comment
3 where to run
You could run it anywhere, you just have to change the define VIEWSKONYVTAR line for your full path of the views files.