Author |
Message |
Topic: Append array and access as nested array |
IT_Services
Replies: 1
Views: 3194
|
Forum: General Posted: Mon Sep 30, 2013 12:17 pm Subject: Append array and access as nested array |
Solution found:
The append-function offers a 3rd parameter ("merge") - set to true I get the expected result |
Topic: custom smarty function to 'get' and 'replace' (plugin) |
IT_Services
Replies: 1
Views: 3571
|
Forum: General Posted: Mon Sep 30, 2013 10:55 am Subject: custom smarty function to 'get' and 'replace' (plugin) |
Hi shady123,
have a look at this example (14.39): $smarty->registerPlugin("function","gallery", "my_gallery_function");
function my_gallery_function( ... |
Topic: MySQL Nested For Forum |
IT_Services
Replies: 1
Views: 4483
|
Forum: General Posted: Mon Sep 30, 2013 10:35 am Subject: MySQL Nested For Forum |
In my optinion you have two possibilities:
Prepare all data and provide it as nested array
Provide a flat table
If you prepare the data and assign one array to the template you only need to loo ... |
Topic: Dynamically change smarty include file |
IT_Services
Replies: 2
Views: 4787
|
Forum: General Posted: Mon Sep 30, 2013 9:59 am Subject: Dynamically change smarty include file |
Hi suncrew,
I would place the map within a container (div) and after selecting a new zone, replace the content with an ajax-script (easily done with jquery).
If you need to parse the map-file, y ... |
Topic: Smarty array |
IT_Services
Replies: 1
Views: 15372
|
Forum: General Posted: Mon Sep 30, 2013 9:49 am Subject: Smarty array |
If $_SESSION{foreach $cart as $item}
{$item.id}<br/>
{$item.name}
{/foreach}
But what does/should your php-for-loop do?
Regards
Florian |
Topic: Links Invalid |
IT_Services
Replies: 1
Views: 3120
|
Forum: General Posted: Mon Sep 30, 2013 9:44 am Subject: Links Invalid |
You need to provide the correct folder names:
$smarty->template_dir = 'catalog/view/theme/website/template/';
$smarty->display('common/header.tpl');
$smarty->display('info ... |
Topic: Smarty foreach help |
IT_Services
Replies: 2
Views: 4387
|
Forum: General Posted: Mon Sep 30, 2013 9:41 am Subject: Smarty foreach help |
Hi Yupy,
have a look at this:
Php-Code:
$cats = genrelist();
$template = new Smarty();
$template->assign('catlist', $cats);
$template->display('anytemplate ... |
Topic: eq in html form |
IT_Services
Replies: 2
Views: 3907
|
Forum: General Posted: Mon Sep 30, 2013 7:42 am Subject: eq in html form |
What about this:
<option value="{$type}"{if $type eq $recordtype} selected="selected"{/if}>{$type}</option> |
Topic: Append array and access as nested array |
IT_Services
Replies: 1
Views: 3194
|
Forum: General Posted: Mon Sep 30, 2013 7:01 am Subject: Append array and access as nested array |
Hi,
I want to dynamically add key-value-arrays to a variable and access them in the template like this:
{$User.IsAuthenticated}
{$User.DisplayName}
In my code the variable should be filled o ... |
|