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 4344494
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:54:19+00:00 2026-05-21T11:54:19+00:00

all im trying to do is to use the simple continue tag but it

  • 0

all im trying to do is to use the simple continue tag but it keeps giving me error like this:

string(145) “Smarty error: [in module_db_tpl:onlyimage4;image_detail line 26]: syntax error: unrecognized tag ‘continue’ (Smarty_Compiler.class.php, line 590)”

my code is as follow:

{foreach from=$itemlist item="item"}

    < .. SOME CODE ..>

{if $maxCol == $colm}
  </div>
  {assign var ='colm' value = 0}
  {$row++}
  {continue}  **<- THIS IS THE PROBLEM**
{/if}

    <.. SOME CODE ..>
{/foreach}

does anyone have any idea whats wrong, I’ve been googling and see no comments of such sort everyone seem to suggest that this should work.. any ideas guys…

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

    For smarty 2:
    I don’t think the tag exists. if you read this thread you can see that there are people that want it, and a suggestion to fix it like so. (have not tried)

    compiler.continue­.php

    <?php 
    function smarty_compiler_con­tinue($contents, &$smarty) 
    { 
    return 'continue;'; 
    } 
    ?>
    

    (Bold part my addition)

    Create these two files (in this case just one) and put them into your plugins directory
    (notice the naming convention compiler.xxx.php).

    The good news is, for smarty 3 there is such a tag! see the manual, with example:

    {$data = [1,2,3,4,5]}
      {foreach $data as $value}
        {if $value == 3}
          {* skip this iteration *}
          {continue}
        {/if}
        {$value}
      {/foreach}
      {*
        prints: 1 2 4 5
      *}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use XPath to find all elements that have an element in
I'm trying to use VDMEnumProcessWOW to find all 16 bit host processes on Vista.
I'm trying to use SharpZipLib to pull specified files from a zip archive. All
Trying to keep all the presentation stuff in the xhtml on this project and
Very simple problem...but weird results. Im just trying to fill a drop down list
All I am trying to do is XmlSerializer serializer = new XmlSerializer(typeof(Stack<int>)); and I
All I am currently trying implement something along the lines of dim l_stuff as
I'm trying to redirect all requests to my domain to another domain using mod_rewrite
I'm trying to fully understand all of Haskell's concepts. In what ways are algebraic
I'm trying to iterate all the controls on a form and enable ClearType font

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.