By: NickM
Date: 2010-12-13
Time: 07:56
|
Error when merging block [Array]: unsupported variable type : 'NULL'.
I have a simple array that I am using to create a menu list. The menu is created correctly, but I keep getting this error
Error when merging block [Array]: unsupported variable type : 'NULL'.
I followed the example in your website.
Here is my php
<?php
include_once('tbs_class.php');
$TBS = new clsTinyButStrong;
//variables specific to this page
$menu_select="index";
require ("menu_case.php");
$TBS->LoadTemplate('templ/index_templ.html');
$array_type1 = array('writing'=>'writing1', 'design'=>'design1', 'buy'=>'buy1', 'contact'=>'contact1');
$all_array['type1'] = $array_type1;
$TBS->MergeBlock('blk1',$array_type1);
$TBS->Show();
?>
Here is the relevant HTML:
<ul>
<li><a href="[blk1.key;block=li].php">[blk1.val;block=li]</a></li>
</ul>
It's simple enough, but I don't undersand why I am getting the error.
Any help would be appreciated.
Thanks.
|