Solved

tlp code using the |cat:"{  what does this do please its in a smarty tpl file

Posted on 2011-02-15
2
424 Views
Last Modified: 2012-05-11
have the below code and not sure what the |cat:" does is it the equilavent to & or . for php but used in tpl to assemble strings???

{assign var="page_hdr01_text" value='
	<a href="section.php" class="subhead">
	'|cat:"{lang mkey='section_title'}"|cat:'</a> >
	<a href="sectionquestions.php?sectionid='|cat:$smarty.get.sectionid|cat:'" class="subhead">'
	|cat:"{lang mkey='questions_title'}"|cat:'</a> > '|cat:"{lang mkey='options_title'}"}

Open in new window

0
Comment
Question by:sydneyguy
2 Comments
 
LVL 17

Accepted Solution

by:
Chris Harte earned 500 total points
ID: 34905970
The "cat" modifier appends a literal string, passed as a parameter, to the value. So it is the same as the . in php

0
 

Author Closing Comment

by:sydneyguy
ID: 34906276
yep thanks for that been playing with it and seem to have it going
thanks for the help
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question