Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 735 results for
smarty
- Page 1
Smarty Help
Programming
Web Development
15 Years Ago
by schaef2493
I'm converting an old
Smarty
template setup into strict HTML/CSS + PHP. Can someone explain what the snippet of code is doing? [CODE]$grading_periods[gps].grading_period [/CODE] Here is the line of code that assigns it. [CODE]$tpl->assign('grading_periods',$grading_periods);[/CODE] Thanks
Smarty Guru please~~ Remove template;
Programming
Web Development
12 Years Ago
by dansonyun
…FGHkNoDtmB *****************index.php <?php require("comm/
Smarty
.class.php"); require_once("get_data.php"… new bo_books(); $book->apply_discount(); $
smarty
= new
Smarty
; $
smarty
->assign("book",$book); $
smarty
->display('index.tpl'); ?> …
Re: Smarty Guru please~~ Remove template;
Programming
Web Development
12 Years Ago
by LastMitch
**@dansonyun** > Anyone knows how to remove
Smarty
completely? > I konw the procedure to remove
Smarty
but failed to rewrite the code… confused with what you are asking. You want to remove `
Smarty
` but you know how to do that but don't…
Re: Smarty Guru please~~ Remove template;
Programming
Web Development
12 Years Ago
by dansonyun
In fact, I know nothing about
Smarty
and I always thought it's something like a clothing. … much bigger project. Well~~ ok!! Let's learn some Tasty
Smarty
. Thanks for all your reply~
Re: Smarty Guru please~~ Remove template;
Programming
Web Development
12 Years Ago
by dansonyun
There's one more document in the
Smarty
template "index.tpl" contains html. The code between &…
Re: Smarty Guru please~~ Remove template;
Programming
Web Development
12 Years Ago
by LastMitch
…~~ I feel you know how to do this. I used `
Smarty
` too. It's just that I'm feeling that you…
Smarty: Blank Page
Programming
Web Development
12 Years Ago
by steven447
Hello, I have a website that uses
Smarty
. When I try `$oSmart->display("header.html…and errors. I'v proven with `var_dump()` that the
smarty
object is succesfully created. I know to that the …is enterily rendered by using: echo "start"; //
Smarty
Stuff echo "end"; Also the template folder is…
Smarty - Retaining post arrays when form gets failed validating
Programming
Web Development
11 Years Ago
by sammry
… variable for failed submission on a
smarty
form. array assigned as $arr = array($_POST[number]); $
smarty
->assign(number,$arr); and on…="number[]" type="text" value="{foreach $
smarty
.request.no as $no}{$no}{/foreach}" /> from the…
Re: Smarty templates
Programming
Web Development
15 Years Ago
by WoW Me Web Girl
my bad !! okay this is the error Fatal error:
Smarty
error: [in login.tpl line 3]: syntax error: unrecognized tag: ….class.php, line 455) in /home/poetryba/public_html/include/
smarty
/libs/
Smarty
.class.php on line 1092 this is my code [CODE… the templates. this is a youtube clone script that uses
smarty
tags. thanks jamika
Re: Smarty templates
Programming
Web Development
15 Years Ago
by yesiknowjava
… curly braces means a lot to our
smarty
engine.....it might think thats a
smarty
tag....but no its our css code…...hence we have to tell
smarty
that this code is… not
smarty
code and it can just ignore it…
Re: Smarty - Retaining post arrays when form gets failed validating
Programming
Web Development
11 Years Ago
by veedeoo
… by simply using array_sum $arr = array( 1, 2, 3, 4); $
smarty
->assign('number',array_sum($arr)); Also, it is a common… practice in
smarty
-> Whenever there is a form in the presentation side…
Re: Smarty templates
Programming
Web Development
15 Years Ago
by WoW Me Web Girl
now is the last part of the error message
Smarty
.class.php on line 1092 line 1092 in highlighted green […CODE] /** * trigger
Smarty
error * * @param string $error_msg * @param integer $error_type */ function trigger_error($error_msg…
smarty php loop
Programming
Web Development
13 Years Ago
by nats01282
… have so many friends, This is my first time using
smarty
so im still learning this is my profile.php [CODE…) or die(mysql_error()); while($get = mysql_fetch_array($mysql)) { array_push($all_info, $get); } } $
smarty
->assign("friends_list", $all_info); [/CODE] then profile.tpl…
Re: Smarty: Blank Page
Programming
Web Development
12 Years Ago
by veedeoo
Does the
smarty
compile the header.html? Anything inside the directory themes_c? Can you turn on the debug to true?
Re: Smarty: Blank Page
Programming
Web Development
12 Years Ago
by steven447
I already tried everything: Debugging, try catch, custom erros etc. I don't have a dir called themes_c Everything is stored in the /templates folder and this is set in the
smarty
object. How can I check if header.html is compiled?
smarty modifier not working.
Programming
Web Development
10 Years Ago
by dinhunzvi
i have created this
smarty
plugin but i'm getting an error message whenever i … ); // Escape html } } i'm trying to use it in a
smarty
template which has this code. <div id="header…
Re: smarty modifier not working.
Programming
Web Development
10 Years Ago
by dinhunzvi
… now giving the following syntax error. Fatal error: Uncaught -->
Smarty
Compiler: Syntax error in template "C:\Apache24\htdocs\hatshop…: "}" <-- thrown in C:\Apache24\htdocs\hatshop\libs\
smarty
\sysplugins\smarty_internal_templatecompilerbase.php on line 3
Re: Smarty templates
Programming
Web Development
15 Years Ago
by pritaeas
If this code is in a default
smarty
template then the curly brackets (from the stylesheet) denote a template variable. Either change the curly brackets, use {literal} or put the CSS in a separate file. Note that using javascript in a
smarty
template has the same issue.
Re: smarty php loop
Programming
Web Development
13 Years Ago
by nats01282
yes i thought with all the info in a array it would be alot easier to pass around the loads of variables, and the tutorials i have seen about loops on
smarty
has all been with arrays
Re: smarty php loop
Programming
Web Development
13 Years Ago
by diafol
read your post again - and noticed the
smarty
loop - yeah ok .
Re: smarty modifier not working.
Programming
Web Development
10 Years Ago
by pritaeas
Shouldn't that be: <a href="{index.php|prepare_link:http}">
Smarty
V3? I assume your script is in the right folder.
Smarty templates
Programming
Web Development
15 Years Ago
by WoW Me Web Girl
im building a clone youtube site and the templates have
smarty
code every-time i try to add a style to …
Re: Smarty templates
Programming
Web Development
15 Years Ago
by pritaeas
[url]http://www.
smarty
.net/manual/en/language.function.literal.php[/url]
SMARTY AND PHP
Programming
Web Development
11 Years Ago
by 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
Re: What Is smarty?
Programming
Web Development
14 Years Ago
by pritaeas
Smarty
is a template engine for PHP. Read the [url=http://
smarty
.incutio.com/?page=SmartyFrequentlyAskedQuestions]FAQ[/url] first.
Re: php smarty
Programming
Web Development
14 Years Ago
by pritaeas
smarty
.net
Re: Smarty Help
Programming
Web Development
15 Years Ago
by pritaeas
It's probably an array, where in the template it is used inside a foreach loop. Without more of the tpl it is hard to say.
Re: Smarty Help
Programming
Web Development
15 Years Ago
by cwarn23
[QUOTE]$grading_periods[gps].grading_period[/QUOTE] That basically tells the server to append a constant to an array and the constant grading_period would have been made with the define() function. [QUOTE]$tpl->assign('grading_periods',$grading_periods);[/QUOTE] That on its own would be invalid code so in other words that code has been made …
Re: Issue with Smarty Calendar
Programming
Web Development
12 Years Ago
by LastMitch
…file: <?php require("libs/
Smarty
.class.php"); $
smarty
= new
Smarty
(); // This where you can adjust…quot;title" =>"September")); $
smarty
->assign("TABLE10", array ("title…quot;title" =>"November")); $
smarty
->assign("TABLE12", array ("title…
Issue with Smarty Calendar
Programming
Web Development
12 Years Ago
by LastMitch
… **calendar.php** file: <?php require("libs/
Smarty
.class.php"); $
smarty
= new
Smarty
(); $date = "1/01/2013"; //January 01… **calendar.php** file: <?php require("libs/
Smarty
.class.php"); $
smarty
= new
Smarty
(); $date = "1/01/2013"; //January 01…
1
2
3
13
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC