Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
help with strpos and substr

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
yli
Smarty Rookie


Joined: 02 Jul 2010
Posts: 15

PostPosted: Sat Mar 17, 2012 2:48 pm    Post subject: help with strpos and substr Reply with quote

how can i use strpos and substr in template file smarty2
so in change of "10" from

{$v.texto|substr:0:10}

i need to be the value of

{$v.texto|strpos:"0:`$post.vary`"}

thanks
Back to top
View user's profile Send private message
ericingram
Smarty Rookie


Joined: 16 Nov 2011
Posts: 21

PostPosted: Mon Mar 19, 2012 5:06 am    Post subject: Re: help with strpos and substr Reply with quote

Do you just mean, {$v.texto|strpos:0:$post.vary} ??

Clarify if you can.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    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