Author |
Message |
Topic: Generate menu from two tables |
waro
Replies: 1
Views: 3558
|
Forum: 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: 5614
|
Forum: 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: 5614
|
Forum: 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: 10439
|
Forum: 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: 10439
|
Forum: 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: 5368
|
Forum: 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: 4028
|
Forum: 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: 5368
|
Forum: 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: 26409
|
Forum: 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: 8151
|
Forum: 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: 19904
|
Forum: 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: 7543
|
Forum: 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: 9356
|
Forum: 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: 6412
|
Forum: 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: 6412
|
Forum: 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 ... |
|