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 8 matches
Smarty Forum Index
Author Message
  Topic: load assigned variables from a inside and outside a class
s2xi

Replies: 0
Views: 3076

PostForum: General   Posted: Tue Jun 28, 2011 6:09 am   Subject: load assigned variables from a inside and outside a class
Hi, not sure how this can be done but I'm trying to make some automated code for myself.

I have loaded smarty in an extended class like this

this code will load smarty, I cut out 90% of the code ...
  Topic: load {$variable} from using $smarty->fetch($tpl)
s2xi

Replies: 0
Views: 3865

PostForum: General   Posted: Sun Apr 17, 2011 12:09 am   Subject: load {$variable} from using $smarty->fetch($tpl)
Is there a way to have Smarty parse newly introduced variables coming from a 3rd source .tpl?

this is my set up

$module = $s->fetch($fetch);
$s->assign($m['module_folder_name']."_mod ...
  Topic: Get values from PDO query and pass the fields into an array
s2xi

Replies: 1
Views: 10819

PostForum: Tips and Tricks   Posted: Sat Apr 16, 2011 9:00 am   Subject: Get values from PDO query and pass the fields into an array
aaah, i see. wish i could understand the thread but i got it by looking at the code snippet. Gave me the idea! thank you my friend.
  Topic: Get values from PDO query and pass the fields into an array
s2xi

Replies: 1
Views: 10819

PostForum: Tips and Tricks   Posted: Sat Apr 16, 2011 5:06 am   Subject: Get values from PDO query and pass the fields into an array
How can I do the following.

1. Get values from a PDO statement (I have already done this)
2. Pass each value as an array object that I can construct like this

(this is an insert from my class f ...
  Topic: use absolute path in a child tpl to extend from parent
s2xi

Replies: 7
Views: 19087

PostForum: Language: French   Posted: Wed Mar 02, 2011 10:04 am   Subject: use absolute path in a child tpl to extend from parent
Would you be kind and provide me with a link to the page where I can read up on Security Policies?

I'm on the Smarty.net site and can't find it or I'm just looking in the wrong places.
  Topic: use absolute path in a child tpl to extend from parent
s2xi

Replies: 7
Views: 19087

PostForum: Language: French   Posted: Wed Mar 02, 2011 9:31 am   Subject: use absolute path in a child tpl to extend from parent
if(isset($_COOKIE['theme']) == 'default'{
$themePATH = dirname(__FILE__) . '/resources/themes/default/';
}else{
$themePATH = dirname(__FILE__ ...
  Topic: use absolute path in a child tpl to extend from parent
s2xi

Replies: 7
Views: 19087

PostForum: Language: French   Posted: Wed Mar 02, 2011 9:06 am   Subject: use absolute path in a child tpl to extend from parent
userThemes/someTheme/index.tpl is not an absolute path. It's a relative path. /var/foo/bar/userThemes/someTheme/index.tpl or windowsy C:\foo\userThemes\someTheme\index.tpl are absolute paths.

Yes, ...
  Topic: use absolute path in a child tpl to extend from parent
s2xi

Replies: 7
Views: 19087

PostForum: Language: French   Posted: Wed Mar 02, 2011 5:25 am   Subject: use absolute path in a child tpl to extend from parent
Is it possible to use an absolute path to point to extended templates?

Parent:
<html>
<head>
<title>{block name="title"}Default Title{/block}</title>
& ...
 
Page 1 of 1
All times are GMT
Jump to:  


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