|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
Author |
Message |
Topic: How is it done? |
garytheprogrammer
Replies: 4
Views: 11900
|
Forum: Smarty Development Posted: Fri Jul 30, 2004 12:16 am Subject: title |
$smarty->assign('title' , "My Title");
$smarty->display('mypage.tpl');
then in mypage.tpl:
{include file="header.tpl& ... |
Topic: Joined SQL Array Syntax |
garytheprogrammer
Replies: 7
Views: 15960
|
Forum: Smarty Development Posted: Wed Jul 28, 2004 9:00 pm Subject: Joined SQL Array Syntax |
However, it sounds like you are asking for a config option for the value of the array separator (instead of Smarty's assumed dot separator). I wouldn't count on that one happening
Yep, ah, ... |
Topic: Joined SQL Array Syntax |
garytheprogrammer
Replies: 7
Views: 15960
|
Forum: Smarty Development Posted: Wed Jul 28, 2004 7:35 pm Subject: Joined SQL Array Syntax |
select table1.id as table1id, table2.id as table2id from table1 left join table2 on parameter1 where parameter2
Right, then I must come up with a general rule for what to name fields on collis ... |
Topic: Joined SQL Array Syntax |
garytheprogrammer
Replies: 7
Views: 15960
|
Forum: Smarty Development Posted: Wed Jul 28, 2004 7:13 pm Subject: Joined SQL Array Syntax |
array(
'table1.data1' => 'my data 1',
'table2.data2' => 'my data 2'
)
mohrt wrote:
Then you would be better off keeping the dots '.' out of the key names.
EEK! ... |
Topic: Joined SQL Array Syntax |
garytheprogrammer
Replies: 7
Views: 15960
|
Forum: Smarty Development Posted: Wed Jul 28, 2004 6:35 pm Subject: Joined SQL Array Syntax |
select * from table1 left join table2 on parameter1 where parameter2
then i get an associative php array like:
myarray =
array(
'table1.data1',
'table2.data2'
)
Now just tr ... |
|
Page 1 of 1 |
All times are GMT |
Powered by phpBB © 2001, 2005 phpBB Group
|