?
Solved

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

Posted on 2011-02-15
2
Medium Priority
?
434 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
Chris Harte earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

765 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