We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Module _parse_var_pair question

Development and Programming

vinci's avatar
vinci
85 posts
15 years ago
vinci's avatar vinci

Is there a reason why the _parse_var_pair in the Template class does not use preg_match_all?

This means that I cannot do this in my module:

{images}
<img >
{/images}

..and later...

{images}
<img >
{/images}

Instead I have to make a separate data array for each time the pair tag is used, and usually it is not specified how many times the pair tags will need to be used in the template. Am I correct in this or am I missing something? Are there plans to switch this to preg_match_all in the future? Im on EE2.1 Build: 20100712

Thanks.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.