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

Personally, Migrating to TemplatePower Smarty

 
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 -> Smarty Development
View previous topic :: View next topic  
Author Message
ricardo
Smarty n00b


Joined: 15 Mar 2011
Posts: 2

PostPosted: Tue Mar 15, 2011 5:09 pm    Post subject: Personally, Migrating to TemplatePower Smarty Reply with quote

Guys, good afternoon.
I'm here on seasonal migrations skinned and I certainly came a doubt that
thing for you is easy, but for me tah complicated.

My doubts are as follows:

TemplatePower
==============================
. php
----------
foreach ($ xml-> channel-> item as $ item)
{
$ title = $ item-> title;
$ link = $ item-> link;
$ news = $ title;
$ cont + +;
$ this-> tpl-> newBlock ('outline');
$ this-> tpl-> assign ('highlight', $ news);
$ this-> tpl-> assign ('link', $ link);
}

. tpl
----------
<! - START BLOCK: highlights ->
<p> <a href="{link}"> highlight {} </ a> </ p>
<! - END BLOCK: highlights ->
==============================

Smarty, I managed to make him throw up til the content
in the right place, but in TP, it shows many news (a
under the other) and Smarty estah showing only a
(the last). I wanted to do with you, what is the command that I should
q smarty for use in the same result arises from the PT.

m like you have to give a light at the end of the tunnel?

I thank you, hug .......
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 -> Smarty Development 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