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

Search found 196 matches
Smarty Forum Index
Author Message
  Topic: Missing Variables and Constants
Ancient

Replies: 2
Views: 6376

PostForum: General   Posted: Mon Aug 29, 2011 2:27 pm   Subject: Missing Variables and Constants
Damn, the solutions were so obvious, thanks for pointing them out. Perhaps i shouldn't take long breaks in between web projects.
  Topic: Missing Variables and Constants
Ancient

Replies: 2
Views: 6376

PostForum: General   Posted: Sun Aug 28, 2011 3:31 am   Subject: Missing Variables and Constants
I'm trying to implement Smarty 3.1rc1 on my website and I've changed most of the old stuff, but right now I'm having trouble with Constants and Variables.

When I do not assign a variable, the temp ...
  Topic: Constants
Ancient

Replies: 4
Views: 7288

PostForum: Smarty 3   Posted: Sun May 16, 2010 6:51 pm   Subject: Constants
I haven't been able to get Constants to work in Smarty 3.
I looked through the README and the Smarty_2BC as well.

{$CFE.const._ADMIN_TITLE_} isn't working in the templates.

Also, $CFE->assig ...
  Topic: Compile dir getter and setter missing
Ancient

Replies: 7
Views: 11521

PostForum: Smarty 3   Posted: Sat May 15, 2010 12:03 pm   Subject: Compile dir getter and setter missing
I understand the cache and compiled files are already encoded.
But inorder for me to easily see which cache folder belongs to which template, I like to add extra things before the encoded file name. ...
  Topic: Compile dir getter and setter missing
Ancient

Replies: 7
Views: 11521

PostForum: Smarty 3   Posted: Sat May 15, 2010 11:35 am   Subject: Compile dir getter and setter missing
It's no typo.
The cache file go into cache/md5(template)/$file.cached.php

Compiled_files go into: cache/compiled/md5($user_style).$compiled_file.php

What I'm doing is adding a md5 hash infront ...
  Topic: Compile dir getter and setter missing
Ancient

Replies: 7
Views: 11521

PostForum: Smarty 3   Posted: Sat May 15, 2010 3:33 am   Subject: Compile dir getter and setter missing
I had some trouble figuring it out too since compile_dir didn't work.
$CFE->setTemplateDir('templates' . '/' . $user['template']);
$CFE->setCompileDir('cache' . '/' . 'comp ...
  Topic: Help with vote form
Ancient

Replies: 4
Views: 6627

PostForum: General   Posted: Thu Jul 30, 2009 1:33 pm   Subject: Help with vote form
guideing you will also be telling you what to do.
Make charts and concpets of how things should look.
Make charts of how this page is supposed to function and what is being used in it etc.... (Conce ...
  Topic: Help with vote form
Ancient

Replies: 4
Views: 6627

PostForum: General   Posted: Thu Jul 30, 2009 3:58 am   Subject: Help with vote form
We're not here to do everything for you.
And this doesn't seem like a Smarty issue, rather a concept issue that you should've made before hand.
  Topic: Include class for <tr> tag
Ancient

Replies: 3
Views: 6288

PostForum: General   Posted: Mon Jul 27, 2009 5:53 pm   Subject: Include class for <tr> tag
function problem_class($var)
{
if($var > 0)
{
return "class=something";
}
else{
return "class=zebra";
...
  Topic: complex smarty variable in HTML
Ancient

Replies: 2
Views: 6341

PostForum: General   Posted: Sun Jul 26, 2009 7:44 pm   Subject: complex smarty variable in HTML
What i would do.
foreach($list as $key => $value)
{
$foto_date[$value['id']] = filemtime('../gallery/thumb/photo_' . $value['id'] . '.jpg');
$s ...
  Topic: Form Question
Ancient

Replies: 10
Views: 10360

PostForum: General   Posted: Sat Jul 25, 2009 6:01 pm   Subject: Form Question
The PHP should probably look like this:
if(isset($_POST))
{
echo 'yes ---> ' . $_POST['artist_email'];
unset($_POST);
define('_LOGGED_IN_', T ...
  Topic: Smarty 2.6.18 Templates
Ancient

Replies: 6
Views: 8663

PostForum: General   Posted: Sat Jul 25, 2009 3:56 pm   Subject: Smarty 2.6.18 Templates
well, try using Notepad ++, they have a format option that allows a file to be set with UTF-8 Without BOM.
Then again, it could also be an error that isn't showing up.
It wouldn't surprise me if cer ...
  Topic: Form Question
Ancient

Replies: 10
Views: 10360

PostForum: General   Posted: Sat Jul 25, 2009 3:50 pm   Subject: Form Question
I don't see a loop.

Can you please explain further?
Everything so far looks fine, even though I don't use <div> I know enough about them to do forms etc...

What I see you doing is:
if ...
  Topic: problem with displaying db data using {section} function
Ancient

Replies: 2
Views: 4750

PostForum: General   Posted: Fri Jul 24, 2009 1:36 am   Subject: problem with displaying db data using {section} function
did you try, {$Itemid[listt].id} ?

It's probably not the best way to get an id. but I'm sure if you rearrange the array when you fetch it in your php, you could call it differently from your templa ...
  Topic: How can i do this cycle in Smarty
Ancient

Replies: 1
Views: 3828

PostForum: General   Posted: Mon Jul 20, 2009 5:57 pm   Subject: How can i do this cycle in Smarty
foreach($a as $value)
{
foreach($value as $key=>$val)
{
if($key == 'my')
{
for($i=0; $i<count($b); $i++)
...
 
Page 1 of 14 Goto page 1, 2, 3 ... 12, 13, 14  Next
All times are GMT
Jump to:  


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