Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

What accessreg means and does?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Ivan_smarty_new
Smarty n00b


Joined: 05 Dec 2019
Posts: 1

PostPosted: Thu Dec 05, 2019 9:41 am    Post subject: What accessreg means and does? Reply with quote

Hello!

Tell me what "accessreg" does and means.

Here is a sample code:
Code:
<div class="content">
   {SiteForm accessreg='.*'}
</div>


Send a link to the instructions.
Back to top
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Sun Dec 08, 2019 2:48 am    Post subject: Reply with quote

To me, SiteForm is the name of a custom built function which has been, or needs to have, the plugin inserted into the package of Smarty functions.

The accessreg would then be a parameter that the plugin function will use. At first guess, the reg part of the parameter's name might suggest a regular expression and that expression would be "any character, from zero to many repeating occurrences".

This chapter of the docs should help:
https://www.smarty.net/docs/en/plugins.tpl
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP