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 38 matches
Smarty Forum Index
Author Message
  Topic: Generate menu from two tables
waro

Replies: 1
Views: 3539

PostForum: General   Posted: Fri Feb 24, 2017 9:17 am   Subject: Generate menu from two tables
How do I gernerate menus from these two MySQL tables below:

Table `categories`
+-----+----------+
| cid | name |
+-----+----------+
| 1 | About |
| 2 | Services |
| 3 | Books ...
  Topic: [Solved] How do I generate select form from a multiple array
waro

Replies: 2
Views: 5590

PostForum: General   Posted: Wed Jan 27, 2016 1:45 pm   Subject: [Solved] How do I generate select form from a multiple array
Thank you, you're a life saver.. Both answers are correct
  Topic: [Solved] How do I generate select form from a multiple array
waro

Replies: 2
Views: 5590

PostForum: General   Posted: Wed Jan 27, 2016 2:50 am   Subject: [Solved] How do I generate select form from a multiple array
Hi,
If I have an array like below:
Array
(
[0] => Array
(
[form_type_id] => 1
[form_title] => Full Name
...
  Topic: [Solved] Failed using thumb_imp plug-in inside a {section}
waro

Replies: 2
Views: 10350

PostForum: Plugins   Posted: Wed Oct 30, 2013 12:49 pm   Subject: [Solved] Failed using thumb_imp plug-in inside a {section}
It works!

Thank you...
  Topic: [Solved] Failed using thumb_imp plug-in inside a {section}
waro

Replies: 2
Views: 10350

PostForum: Plugins   Posted: Tue Oct 29, 2013 3:15 am   Subject: [Solved] Failed using thumb_imp plug-in inside a {section}
Using <ul>
{section name=seq loop=$img}
<li>
{if $img[seq].picture}
{thumb file="/uploads/pages/$img[seq].picture" width= ...
  Topic: cache_id not working, probably the flaw on my PHP logic
waro

Replies: 2
Views: 5345

PostForum: General   Posted: Thu Sep 22, 2011 2:56 am   Subject: cache_id not working, probably the flaw on my PHP logic
Thank you, your code make easy in my eyes.
  Topic: Problem with link to css file
waro

Replies: 1
Views: 4009

PostForum: General   Posted: Wed Sep 21, 2011 10:46 pm   Subject: Problem with link to css file
I'm just guessing here, try to fix this line:
require("../application/controllers/".$controller);

You might be forgot to add the trailing slash or put wrong directory there.
  Topic: cache_id not working, probably the flaw on my PHP logic
waro

Replies: 2
Views: 5345

PostForum: General   Posted: Wed Sep 21, 2011 10:35 pm   Subject: cache_id not working, probably the flaw on my PHP logic
Hi,

I've been setup my site using Smarty cache using different cache_id for different modules, and most of them working fine, but one particular peculiar module/cache_id.

In this module there ar ...
  Topic: Smarty 3.0 manual-en-3.0.pdf and manual-en-3.0.zip ??
waro

Replies: 4
Views: 26135

PostForum: Documentation   Posted: Tue Aug 23, 2011 1:52 pm   Subject: Smarty 3.0 manual-en-3.0.pdf and manual-en-3.0.zip ??
I second it. I can't find any offline doc. It'd be a big help since I don't always go online.
  Topic: Hey guys beginner question
waro

Replies: 6
Views: 8113

PostForum: General   Posted: Thu Apr 22, 2010 8:17 am   Subject: Hey guys beginner question
I use this [url=http://www.smarty.net/crashcourse.php]crash course when I first learn about Smarty. And the manual is also a great help too.
  Topic: SmartyPaginate and mod_rewrite downloadable solution
waro

Replies: 9
Views: 19807

PostForum: Plugins   Posted: Sun Jan 17, 2010 12:15 am   Subject: SmartyPaginate and mod_rewrite downloadable solution
File not found
  Topic: How to validate email address within Smarty template ?
waro

Replies: 3
Views: 7512

PostForum: General   Posted: Sat Jan 16, 2010 2:16 pm   Subject: How to validate email address within Smarty template ?
Or from PHP Manual: http://php.net/filter-var
  Topic: Caching web service results and insert tag
waro

Replies: 5
Views: 9318

PostForum: General   Posted: Sat Jan 09, 2010 6:30 am   Subject: Caching web service results and insert tag
I've also just realized that caching two very different pages which use the same template file results on the same page being pulled from the cache for both. Is this the way it's supposed to work?
...
  Topic: Trying to prevent visitor display templates using htaccess
waro

Replies: 3
Views: 6385

PostForum: General   Posted: Wed Dec 23, 2009 3:23 am   Subject: Trying to prevent visitor display templates using htaccess
Thank you, mohrt.

Do you do this in your production sites?

Edit:
Hmm, after try this it still didn't work. I wonder if some directive above this directory undo this .htaccess.
  Topic: Trying to prevent visitor display templates using htaccess
waro

Replies: 3
Views: 6385

PostForum: General   Posted: Wed Dec 23, 2009 12:24 am   Subject: Trying to prevent visitor display templates using htaccess
I'm trying to prevent visitor to directly displaying my templates using htaccess but failed.

Here's the directive:
<FilesMatch "\.(html|htaccess)$">
Order Allow,Deny
Deny ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT
Jump to:  


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