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

  • Home
  • SEARCH
  • 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 4030420
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:28:09+00:00 2026-05-20T11:28:09+00:00

Im optimizing a Smarty template and things are looking good but the only thing

  • 0

Im optimizing a Smarty template and things are looking good but the only thing left is that the resulting cached template is littered with things like <?php echo '%>'; ?> where it should just have '%>'.

It does the same for '?>' but that’s understandable as it would confuse PHP, does '%>' have the same effect?

  • 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-05-20T11:28:10+00:00Added an answer on May 20, 2026 at 11:28 am

    As you point out, it does the same for the more traditional closing tag ?>.

    Well, %> is a PHP closing tag too, albeit one disabled by default. You’d activate it with asp-tags:

    Enables the use of ASP-like <% %> tags
    in addition to the usual tags. This
    includes the variable-> value printing
    shorthand of <%= $value %>. For more
    information, see Escaping from HTML.

    Smarty’s just being thorough. Unfortunately, it’s not doing a very good job of it. Make sure that this is disabled and your problems should go away.

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

Sidebar

Related Questions

I've been working on optimizing a query and have ran into a situation that's
I'm currently optimizing the performance on my company's site; when it was taking 6-10
I'm optimizing some frequently run Perl code (once per day per file). Do comments
We are trying to look at optimizing our localization testing. Our QA group had
We are developing a Winforms application and in the process of optimizing the start-up
I am newbie to db programming and need help with optimizing this query: Given
How do I tell if gcc (more specifically, g++) is optimizing tail recursion in
I'm optimising a bespoke database layer in a messaging system to increase performance. I'm

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.