Author |
Message |
Topic: Problem with filepath ( Smarty add slash! ) |
Flaker
Replies: 7
Views: 9375
|
Forum: General Posted: Sun Dec 23, 2012 5:52 pm Subject: Problem with filepath ( Smarty add slash! ) |
I found problem!
I just changed template_dir to templates_dir |
Topic: Problem with filepath ( Smarty add slash! ) |
Flaker
Replies: 7
Views: 9375
|
Forum: General Posted: Sun Dec 23, 2012 3:30 pm Subject: Problem with filepath ( Smarty add slash! ) |
It echo:
Array
Then, i used print_r func:
Array
(
[0] => C:/xampp/htdocs/ucpgame/admin/templates/default/template\
)
This code:
$template_d ... |
Topic: Problem with filepath ( Smarty add slash! ) |
Flaker
Replies: 7
Views: 9375
|
Forum: General Posted: Sun Dec 23, 2012 8:52 am Subject: Problem with filepath ( Smarty add slash! ) |
So, what about my question? |
Topic: Problem with filepath ( Smarty add slash! ) |
Flaker
Replies: 7
Views: 9375
|
Forum: General Posted: Sat Dec 22, 2012 3:13 pm Subject: Problem with filepath ( Smarty add slash! ) |
Is it working as expected?
No
If you don't have a beginning slash, it should find the tpl relative to the template_dir path.
Hmm... Strange...
What's wrong?:
define('SAIT_DIR', str_repl ... |
Topic: Problem with filepath ( Smarty add slash! ) |
Flaker
Replies: 7
Views: 9375
|
Forum: General Posted: Fri Dec 21, 2012 12:35 pm Subject: Problem with filepath ( Smarty add slash! ) |
$template_directory = 'admin/templates/'.TEMPLATE_NAME.'/template';
echo $template_directory;
Variable's $template_directory value is: admin/templates/default/template
But after template comp ... |
Topic: Problemma c slash |
Flaker
Replies: 0
Views: 15026
|
Forum: Language: Russian Posted: Thu Dec 20, 2012 7:30 pm Subject: Problemma c slash |
$template_directory = 'admin/templates/'.TEMPLATE_NAME.'/template';
echo $template_directory;
Переменная $template_directory пр ... |
|