Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Como pasar este codigo php a smarty?

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: Spanish
View previous topic :: View next topic  
Author Message
ojitos
Smarty n00b


Joined: 28 Mar 2012
Posts: 1

PostPosted: Wed Mar 28, 2012 8:35 pm    Post subject: Como pasar este codigo php a smarty? Reply with quote

Como pasar este codigo php a smarty?
Code:
<?php
   
include_once("paypalewp.php");
$paypal = new paypalewp();
$paypal->setTempFileDirectory("/tmp");
$paypal->setCertificate("my-pubcert.pem", "my-prvkey.pem");
$paypal->setCertificateID(DFGY7654567");
$paypal->setPayPalCertificate("paypal_cert_pem.txt");
$parameters = array("cmd" => "_xclick",
"item_name" => "$item",
"currency_code" => "USD");
$encryptedButton = $paypal->encryptButton($parameters);
echo $encryptedButton;
 
?>
Back to top
View user's profile Send private message Send e-mail
peprv
Smarty n00b


Joined: 25 Oct 2012
Posts: 1

PostPosted: Thu Oct 25, 2012 8:24 am    Post subject: Reply with quote

La respuesta llega tarde, pero más vale tarde que nunca Wink

No lo he probado, pero creo que con el tag de smarty {php} código {/php} debería funcionarte.

MUMU
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Language: Spanish 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