Started writing code for views

This commit is contained in:
2019-04-07 16:31:23 +02:00
parent 773eb1092d
commit 628514eb4e
14 changed files with 313 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
<?php
use Joomla\CMS\MVC\View\HtmlView;
// No direct access.
defined('_JEXEC') or die;
class ClubsViewMyClubs extends HtmlView
{
public function display($tpl = null)
{
// FIXME
$this->clubs = array();
$c = array();
$c['name'] = "Ein Test-Club";
$c['city'] = "Saarbrücken";
$c['id'] = 2;
$this->clubs[] = $c;
$c = array();
$c['name'] = "Ein zweiter Test-Club";
$c['city'] = "Saarlouis";
$c['id'] = 4;
$this->clubs[] = $c;
parent::display($tpl);
}
}