Okay let's consider an example:
your Block file consists of the function which returns your "Array", like
public function someFunction(){
//your logic
return $your_array;
}
in your config.xml
<config>
...
<frontend>
...
<layout>
<updates>
<yournamespace_yourmodule module="Yournamspace_YourModule">
<file>something.xml</file>
</yournamespace_yourmodule>
</updates>
</layout>
in app/design/frontend/default/your_theme/layout/something.xml
<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<block_in_which_you_want_your_template>
<reference name="parent_block_name">
<block type="yourmodule/block_path" name="unique_name" template="path/to/your/template.phtml" /> <!-- important part of this answer -->
</reference>
...
now in your template.phtml
call $this->someFunction()
to get the array.
the key is declaring the block with your template file in something.xml, so that all the members from your block can be accessed in the template with the object ($this
).