18 Topics

Member Avatar for
Member Avatar for davy_yg

Hello, I am trying to undestand what is smart.net for and what is it's relation with prestashop. I heard prestashop is made from smarty but I still cannot understand how to relate the two of them. I also cannot figure out how to create theme with prestashop. Can anyone else …

Member Avatar for diafol
0
238
Member Avatar for veedeoo

This is a continuation of our basic tutorial on MVC Framework. In this section, we will be creating the template files for both the TBS and the Smarty template engines. **The recap** In [part one](http://www.daniweb.com/web-development/php/tutorials/476695/part-one-php-mvc-framework-understanding-the-basics), we have created application controllers, models, and the one and only lone View class. Once …

Member Avatar for Geetha_1
3
8K
Member Avatar for sigvewinter

What is the easiest way to retrieve templates from database in Smarty? I've tried http://www.smarty.net/docs/en/resources.custom.tpl to make this work, but unsuccessfull. I can't figure out how to implement it right. No errors really, it just don't work. Any suggestion or ideas?

Member Avatar for pritaeas
0
88
Member Avatar for rmoloruntoba

Can anyone help me. my site did not show for the first time on the net because I use php and smarty, but it is showing on localhost

Member Avatar for pritaeas
0
100
Member Avatar for sammry

am trying to show assigned variable for failed submission on a smarty form. array assigned as $arr = array($_POST[number]); $smarty->assign(number,$arr); and on tpl form, i added as below. {foreach from=$number item=no} <input name="number[]" type="text" value="{$no[{counter start=1}]}" /> {/foreach} am starting the counter from 1 because this is for dynamically added …

Member Avatar for sammry
0
913
Member Avatar for tibormarias

Dear Everyone, I am considering of starting a Smarty website. Does it worth it? Is it good? Does it have any disadvantages? Or any other personal notices? Tibor

Member Avatar for veedeoo
0
358
Member Avatar for LastMitch

Hi I want to create a simple calendar on Smarty. I attached an image on how it looks so far. Here is my code **calendar.php** file: <?php require("libs/Smarty.class.php"); $smarty = new Smarty(); $date = "1/01/2013"; //January 01, 2013 $week_days = array("Sun"=>1, "Mon"=>2, "Tue"=>3, "Wed"=>4, "Thu"=>5, "Fri"=>6, "Sat"=>7); $total_day_of_month = get_total_day($date); …

Member Avatar for LastMitch
0
562
Member Avatar for LastMitch

Hi I still learning how Smarty templates works. I can't seem to make the image appear on the Smarty Template. I try to used this `{html_image}` it doesn't work. I used `<img>` instead. <img src="images/{$book->image[tbl]}" width="115"> These are my files. This is my **index.php** <?php require("libs/Smarty.class.php"); require_once("get_data.php"); require_once("books.php"); $book = …

Member Avatar for LastMitch
9
1K
Member Avatar for pritaeas

This demo will show a PHP script using a Smarty template. It assumes basic installation. In the folder where you copy the script, there should be a smarty folder containing the Smarty files. You should create a writable `cache` and `templates_c` folder, and a folder called `templates` where the `.tpl` …

Member Avatar for pritaeas
2
524
Member Avatar for dansonyun

Here is a very tiny program(3 files) has embedded with Smarty template engine. Anyone knows how to remove Smarty completely? I konw the procedure to remove Smarty but failed to rewrite the code into pure PHP. Complete source files as in attachment. **CLICK HERE!!**~~~ http://www6.mimima.com/link.php?ref=FGHkNoDtmB *****************index.php <?php require("comm/Smarty.class.php"); require_once("get_data.php"); require_once("books.php"); …

Member Avatar for dansonyun
0
215
Member Avatar for mbhanley

Hi all I am stuck trying to figure out the best way to get data as at the moment I have tried a few different ways to achieve this with no luck. What I am trying to do is update a block of php code that is in my sidebar …

Member Avatar for mbhanley
0
2K
Member Avatar for squeak24

I am currently in the process of creating a open source dating script. I am nearly there. Just one thing that I can see that is an error now. When a user completes there profile, other users can see the answers, but the person who the profile belongs to can't. …

Member Avatar for squeak24
0
198
Member Avatar for phphit

I am really in mess as I am unable to solve problem with Smarty Multi Dimension array. Below is the way I want to execute Smarty. First of all I will list all customers. Than I want list of all items purchased by that customer. I have two tables inside …

Member Avatar for lps
0
506
Member Avatar for steven447

Hello, I have a website that uses Smarty. When I try `$oSmart->display("header.html");` I get a blank page without warnings and errors. I'v proven with `var_dump()` that the smarty object is succesfully created. I know to that the page is enterily rendered by using: echo "start"; //Smarty Stuff echo "end"; Also …

Member Avatar for steven447
0
730
Member Avatar for philas

i'm use smarty 3 and write [CODE]$smarty = new Smarty(); $smarty->config_dir='./smarty/sconfigs/'; $smarty->template_dir='./templates/new/'; $smarty->compile_dir='./smarty/stemplates_c/'; $smarty->cache_dir='./smarty/scache/'; if(!$smarty->isCached('index.tpl','default')) { $smarty->assign("u",refresh_user_info(),true); } $smarty->display('index.tpl','default'); [/CODE] but {$u} is missing when i add if($smarty->isCached help please!

0
82
Member Avatar for rahul_galgali

Please can anyone explain me what is meant by smarty codes or templates and what is role of smarty in PHP.

Member Avatar for HemantPHP
0
142
Member Avatar for Spikae

am using an example of tooltips from [url]http://www.dynamicdrive.com/dynamicindex5/stickytooltip.htm[/url] on [url]www.euroworker.no/order[/url] I have this code here to work with, but it just doesn't seem to work correctly, I've tried everything I can think of. It's not a problem with the Smarty or html, css as far as I Can see, when …

Member Avatar for Spikae
0
216
Member Avatar for sarithak

Hi friends.... I need to learn Smarty for my next project... Plzz tell me , some good tutorials/free books... for smarty template engine, developement in coding.... If any body having softcopy ,plz send me as attachment... Thanks in advance... Saritha K

Member Avatar for pritaeas
0
178

The End.