Joel
01-27-07, 01:58 PM
Ok, this seems to be a Smarty/PHP problem. It's driving me nuts.
I've got a custom page that is called from the account details page. In the custom.php, I'm setting the variables like this:
$details['test'] = "Testing";
$details['id'] = $_POST['id'];
$details['domain'] = $_POST['domainname'];
$smarty->assign('details', $details);
If I do a print_r on $details right here, all the data is there. But...
In my custom.tpl, I have this:
{$details.id}</p>
{$details.test}</p>
{$details.domain}</p>
Only $details.test is displayed. When I load the page in my browser, all I get is "Testing".
Debug shows this:
Array (3)
test => Testing
id => empty
domain => empty
What am I missing here? It's probably something simple, right?
I've got a custom page that is called from the account details page. In the custom.php, I'm setting the variables like this:
$details['test'] = "Testing";
$details['id'] = $_POST['id'];
$details['domain'] = $_POST['domainname'];
$smarty->assign('details', $details);
If I do a print_r on $details right here, all the data is there. But...
In my custom.tpl, I have this:
{$details.id}</p>
{$details.test}</p>
{$details.domain}</p>
Only $details.test is displayed. When I load the page in my browser, all I get is "Testing".
Debug shows this:
Array (3)
test => Testing
id => empty
domain => empty
What am I missing here? It's probably something simple, right?