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

Zendowy urlHelper w templatce 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 -> Language: Polish
View previous topic :: View next topic  
Author Message
elmozaur
Smarty Rookie


Joined: 19 Jun 2011
Posts: 6

PostPosted: Sun Jun 19, 2011 3:27 pm    Post subject: Zendowy urlHelper w templatce Smarty Reply with quote

Witam.
Poniewaz to pierwszy post na tym forum chcialbym wszystkich pozdrowic - nazywam sie Grzegorz.

Moj problem dotyczy wyswietlania wartosci zmiennej w templatce.
juz wiem ze do wyswietlenia zmiennej wystarczy napisac
{$zmienna} i to mi dziala.

Postawilem sobie jednak instancje Zenda ze Smarty3 i staram sie wyswietlic zendowe zmienne i tak na przyklad po wpisaniu w templatce:
<p><a href="{$this->url(['controller' => 'content', 'action' => 'index', 'tytul' => 'tytul', 'id' => '35','kat' => '20'])}"></a></p>

dostaje piekny dzialajacy link Wink
Niestety ja potrzebuje do tego dodac zendowa informacje o routingu.
Pytanie jak w jezyku Smarty zapisac PHPowa zmiena:
<p><a href="<?php echo $this->url( array( 'controller' => 'content', 'action' => 'index', 'napis' => 'tojesttytulek', 'id' => '30', 'kat' => '20' ), "kontent", TRUE);?>">news new</a></p>

kombinuje z czyms takim:
<p><a href="{$this->url(['controller' => 'content', 'action' => 'index', 'tytul' => 'tojesttytulek', 'id' => '30', 'kat' => '20'], "kontent", TRUE)}">news new</a></p>
ale to nie dziala.
Poprostu nie wiem jak zapisac ta tablice a potem zmienne.

za wszelkie info z gory dziekuje
Back to top
View user's profile Send private message Send e-mail
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 -> Language: Polish 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