Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8884889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:10:28+00:00 2026-06-14T21:10:28+00:00

i got an idea for making php template engine fast and user friendly but

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:10:29+00:00Added an answer on June 14, 2026 at 9:10 pm

    That’s the notion in a number of different template libraries. Namely that some watered-down notation such as {varname} (compared to <?=$varname?>) for people more familiar with html & css, and little to no knowledge of php will have an easier time understanding.

    Of course lots of these systems also support a notation for looping and conditionals which to me begs the question, how much difference is it really making? It’s not uncommon to see these systems support some type of attributes or parameters in the given ‘tags’. There are so many libraries which embrace this idea of a simplified notation, obviously there are folks that think a non-php syntax is easier to understand.

    This comes with the tradeoff of having to invent your own notation for such things as loop control notation, conditionals etc, if you want to support them. If your system provides mere variable substitution and it’s for customizing emails for example, could be a really good idea. If on the other hand you’re starting out with this level of knowledge trying to re-invent something like smarty, I’d recommend taking a peak at one or several of the existing template libraries before getting deep into your own system, and not just from the end user’s perspective, but at the implementation (the php code) of the libraries too.

    Maybe you just end up building a cool GUI around smarty or some other template library?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anybody got an idea of how to create a .Contains(string) function using Linq
I got an really bad idea :) When exploring extension methods in vb I
I have been making a wordpress template. i got stuck at some place... the
I'm making some kind of game engine. I've got problem with TypeLoadExpection. This is
I'm making a social gaming network, for learning but mostly because php is alot
I'm looking for the best solution here, i've got an idea but thinking it
I'm making a program using the glu library but when i compile i got
I have got idea of how to build a website in 2 languages, i
Has anyone got any idea why the menu is rendering below the rotating images
I'm doing a project with a lot of calculation and i got an idea

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.