Major theme rework
This commit is contained in:
@@ -11,6 +11,25 @@
|
||||
* @license http://dev.leenooks.net/license.html
|
||||
*/
|
||||
class Controller_Product extends Controller_TemplateDefault {
|
||||
public function action_categorys() {
|
||||
$output = '<div id="category">';
|
||||
$output .= '<ul>';
|
||||
|
||||
foreach (ORM::factory('product_category')->list_active()->find_all() as $pco) {
|
||||
$a = '<h3>'.$pco->display('name').'</h3>';
|
||||
$a .= '<p>'.$pco->description().'</p>';
|
||||
|
||||
$output .= '<li>';
|
||||
$output .= HTML::anchor('product/category/'.$pco->id,$a);
|
||||
$output .= '</li>';
|
||||
}
|
||||
|
||||
$output .= '</ul>';
|
||||
$output .= '</div>';
|
||||
|
||||
$this->template->content = $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the available topics in a category
|
||||
* @todo Only show categories according to their validity dates
|
||||
|
Reference in New Issue
Block a user