Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 26 matches
Smarty Forum Index
Author Message
  Topic: Help to join search results
terra

Replies: 0
Views: 7509

PostForum: Add-ons   Posted: Fri Mar 27, 2015 11:05 am   Subject: Help to join search results


Hello,

So I have the code below that makes searching the web (xml) and am now implementing the search in the database. I want to unify the xml results with database results.
The resul ...
  Topic: call functiion () in the template
terra

Replies: 0
Views: 1784

PostForum: General   Posted: Thu Oct 02, 2014 5:53 pm   Subject: call functiion () in the template
hi,

function setresturl( $id, $name )
{
$new_url = SITEURL.seo_url( $name )."-r".$id.".html";
return $new_url;
}

in php call

<?=setRestUrl($rss['id'],$rss[' ...
  Topic: call tpl in javascript
terra

Replies: 3
Views: 3594

PostForum: General   Posted: Tue Apr 15, 2014 5:27 pm   Subject: foreach in javascript not work
Hi,

thanks

Not work, why? i cam help-me?

<script type="text/javascript" src = "http://maps.google.com/maps/api/js?sensor=false">
</script>
{literal}
<scr ...
  Topic: call tpl in javascript
terra

Replies: 3
Views: 3594

PostForum: General   Posted: Mon Apr 07, 2014 10:32 pm   Subject: call tpl in javascript
Hi,

not work function tpl in javascript, Can you help me?




{literal}

<style type="text/css">
body { font: normal 10pt Helvetica, Arial; }
# ...
  Topic: Colocar função tpl dentro do javascript
terra

Replies: 1
Views: 4318

PostForum: Language: Portuguese   Posted: Mon Apr 07, 2014 10:23 pm   Subject: Colocar função tpl dentro do javascript
Olá,

preciso fazer isso mas não funciona



{literal}<style type="text/css">
body { font: normal 10pt Helvetica, Arial; }
#map { width: 350p ...
  Topic: maps not work in .tpl
terra

Replies: 1
Views: 2117

PostForum: General   Posted: Wed Mar 05, 2014 7:52 pm   Subject: maps not work in .tpl
hi,

I'm having to use google maps in the template, but not working

<script>
$(function(){


window.onload = function(){
...
  Topic: Como usar o codigo abaixo no smarty?
terra

Replies: 1
Views: 5216

PostForum: Language: Portuguese   Posted: Mon Aug 19, 2013 1:01 am   Subject: Como usar o codigo abaixo no smarty?
Como usar o codigo abaixo no smarty?




<?php
$relative_path='';
require_once($relative_path.'includes/pollfns.php');
includeScripts();
?>



<?php
newPoll('a ...
  Topic: how to use the code below in smarty?
terra

Replies: 0
Views: 1465

PostForum: General   Posted: Mon Aug 19, 2013 12:49 am   Subject: how to use the code below in smarty?
how to use the code below in smarty?



<?php
$relative_path='';
require_once($relative_path.'includes/pollfns.php');
includeScripts();
?>



<?php
newPoll& ...
  Topic: Not work in template
terra

Replies: 0
Views: 1664

PostForum: General   Posted: Sun Apr 21, 2013 1:31 pm   Subject: Not work in template
hi,

why not work in template? help-me, please

in php

if ($acao == "alterar")
{
$quant = $_POST['qtd'];
if (is_array($quant))
{
...
  Topic: how to call the code below in TPL?
terra

Replies: 4
Views: 3887

PostForum: General   Posted: Wed Mar 20, 2013 7:18 pm   Subject: how to call the code below in TPL?
Hi,

see

{if isset( $smarty.session.minhalista.$id ) && $smarty.session.minhalista.$id == $i.id }
<div class="festa">
id: {$i.id}<a href="#" class= ...
  Topic: how to call the code below in TPL?
terra

Replies: 4
Views: 3887

PostForum: General   Posted: Wed Mar 20, 2013 6:16 pm   Subject: how to call the code below in TPL?
Hi,

thanks.

He takes the record id session in the php, but not caught by smarty, what could be wrong?


in tpl
{foreach from=$var_list item=i}

in php

$var_list

I appreciate any help ...
  Topic: how to call the code below in TPL?
terra

Replies: 4
Views: 3887

PostForum: General   Posted: Wed Mar 20, 2013 2:24 am   Subject: how to call the code below in TPL?
hi,

how to call the code below in TPL?

if( isset( $_SESSION


Thanks[/quote]
  Topic: Foreach in cookie
terra

Replies: 0
Views: 2141

PostForum: General   Posted: Mon Mar 18, 2013 11:55 pm   Subject: Foreach in cookie
hi,

Foreach in cookie how?



Thanks
  Topic: how to show the contents of a session?
terra

Replies: 9
Views: 4997

PostForum: General   Posted: Fri Mar 15, 2013 6:55 pm   Subject: how to show the contents of a session?
Hi,

how do I call the TPL file?


if( isset( $_SESSION["minhalista"][$id]) == $id ){


Thanks
  Topic: how to show the contents of a session?
terra

Replies: 9
Views: 4997

PostForum: General   Posted: Fri Mar 15, 2013 2:12 am   Subject: how to show the contents of a session?
hi.


worked!! thank you very much
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP