I want to create a module based on the currency selection on top of the header , I want to move that part to sides either left or right
and I thought I can make it as a module
I have create a skeleton module which has the structure as following :
Code: Select all
moneydropdown
----admin
---controller
-----module--->moneydropdown.php
---language
----english
-----module--->moneydropdown.php
----view
---template
default----->module--->moneydropdown.tpl
----catalog
---controller
-----module--->moneydropdown.php
---language
----english
-----module--->moneydropdown.php
----view
---template
default----->module--->moneydropdown.tpl
I want to iterate number of currencies that I have , for this matter I copy the related part from catalog/controller/common/header.php
Code: Select all
$this->data['currencies'] = array();
$results = $this->model_localisation_currency->getCurrencies();
foreach ($results as $result) {
if ($result['status']) {
$this->data['currencies'][] = array(
'title' => $result['title'],
'code' => $result['code'],
'symbol_left' => $result['symbol_left'],
'symbol_right' => $result['symbol_right']
);
}
and since I have a module without a model I don't know who to solve my problem anybody can help me here?
and one more question : is there any proper skeleton for creating extentions in oc 1.5.3? so I can study it?
cheers