Converting thtml files to tpl

By Radharadhya dasa (radharadhya)
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
if($ok){
  enjoy your smarty views
  }
else{
  send me a bug report
  } 



That's all :)

 

Comments 323

CakePHP Team Comments Author Comments
 

Comment

1 smarty code

{if $ok}
Now it will work
{else}
That wasn't smarty
{/if}
Posted Apr 16, 2007 by Jeroen Sentel
 

Question

2 where to run this

Where do i have to run this script in order to convert my thtml to tpl files?

Thanks!
Posted Jun 18, 2007 by Pablo
 

Comment

3 where to run

Where do i have to run this script in order to convert my thtml to tpl files?

You could run it anywhere, you just have to change the define VIEWSKONYVTAR line for your full path of the views files.
Posted Aug 25, 2007 by Radharadhya dasa