Author |
Message |
Topic: Smarty If .tpl for CSS classes |
ihabzy
Replies: 0
Views: 15841
|
Forum: Installation and Setup Posted: Sun Jul 29, 2012 2:06 am Subject: Smarty If .tpl for CSS classes |
I am working on a template using Smarty and i would like to give a certain class for the navigation menu according to the active .tpl file. Any help ??
<ul>
<li class="current ... |
Topic: Problem with PHP block |
ihabzy
Replies: 1
Views: 10830
|
Forum: Installation and Setup Posted: Sat Jul 28, 2012 6:36 pm Subject: Problem with PHP block |
I had a block that fetch latest 3 posts from wordpress into smarty that works well in any smarty file exist in the main directory but in any .tpl file exists in a sub directory I got the following err ... |
Topic: Managing subdirectories |
ihabzy
Replies: 11
Views: 20605
|
Forum: Installation and Setup Posted: Sat Jul 28, 2012 5:57 pm Subject: Managing subdirectories |
I appreciate the long interval support. It helped me a lot
A big thank you |
Topic: Managing subdirectories |
ihabzy
Replies: 11
Views: 20605
|
Forum: Installation and Setup Posted: Sat Jul 28, 2012 8:42 am Subject: Managing subdirectories |
Thanks for your reply
I added the code and it got fixed. The only problem is that I had to make a new copy of header.tpl which I made it header2.tpl to change the stylesheet directory from ./{$tmpdi ... |
Topic: Managing subdirectories |
ihabzy
Replies: 11
Views: 20605
|
Forum: Installation and Setup Posted: Sat Jul 28, 2012 4:30 am Subject: Managing subdirectories |
Here are the test result
Smarty Installation test...
Testing template directory...
FAILED: .\templates\ does not exist.
Testing compile directory...
D:\wamp\www\dbk\company\templates_ ... |
Topic: Managing subdirectories |
ihabzy
Replies: 11
Views: 20605
|
Forum: Installation and Setup Posted: Sat Jul 28, 2012 12:27 am Subject: Managing subdirectories |
Where should I have to put this code
$smarty->testInstall();
|
Topic: Managing subdirectories |
ihabzy
Replies: 11
Views: 20605
|
Forum: Installation and Setup Posted: Fri Jul 27, 2012 10:26 pm Subject: I checked again |
i got this error when I enable display errors in PHP
Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'header.tpl'' in D:\wamp\www\dbk\includes ... |
Topic: Managing subdirectories |
ihabzy
Replies: 11
Views: 20605
|
Forum: Installation and Setup Posted: Fri Jul 27, 2012 10:10 pm Subject: Error Log file |
I checked my PHP error log which found to be empty of errors |
Topic: Managing subdirectories |
ihabzy
Replies: 11
Views: 20605
|
Forum: Installation and Setup Posted: Fri Jul 27, 2012 4:33 am Subject: Managing subdirectories |
Hello,
I need to make certain file to be in a sub directory in the form "company/about.php"
The file about.php code is
<?php
require('includes/smarty/SmartyBC.class.php' ... |
|