Fake Template Engine php

Posted by user1464822 on Stack Overflow See other posts from Stack Overflow or by user1464822
Published on 2012-11-10T04:19:54Z Indexed on 2012/11/10 5:00 UTC
Read the original article Hit count: 136

Filed under:
|

i got an idea for making php template engine fast and user friendly but i'm not sure if it's good or bad.

the idea is to create a fake template engine: creating a template editor in control panel that let user see something like this:

<html>
  <head>
   <title>{title}</title>
  </head>
  <body> {content} </body>
</html>

what the editor actually does is to replace all php code like

<?php echo $this->title; ?>

to user friendly

{title}

but it's not really replacing it just in the view when the user save the template the template actually saved as fast pure php template.

the question is this a good idea or bad ?

your answers is highly appreciated.

© Stack Overflow or respective owner

Related posts about php

Related posts about template-engine