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 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

There might be a stupid simple answer to this, but I'm trying to use
I'm trying to use my variable in all files of my program. this is
I'm trying to use strace to monitor all file accesses by g++ but it
I am trying to use same validation function for all my controls. But I
I'm trying to use a simple mysql database but tweak it so that every
I am trying to use a simple pattern matching analysis to find all Factory
I am kinda new to all this but I am trying to make myself
I am trying to use nosetests to run all test cases inside my project.
I'm trying to use JQuery to select all of the TD 's in a
I'm trying to use the PowerShell Add-Member cmd on all the items in an

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.