Started writing code for views
This commit is contained in:
30
src/site/views/myclubs/view.html.php
Normal file
30
src/site/views/myclubs/view.html.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user