Solved

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

Posted on 2011-02-15
2
427 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

820 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