Inserted data into frontend from models for some views
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Joomla\CMS\Router\Route;
|
||||
|
||||
// No direct access.
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
@@ -48,11 +50,17 @@ defined('_JEXEC') or die;
|
||||
|
||||
<ul>
|
||||
|
||||
<?php
|
||||
/*foreach ($this->me->getPositions() as $userassoc) {
|
||||
?>
|
||||
<li><a href='?option=com_clubs&view=club&clubid=<?php echo $c['id']; ?>'><?php echo htmlentities($c['name']); ?></a></li>
|
||||
<?php
|
||||
}*/
|
||||
<?php
|
||||
foreach ($this->clubsPresident as $pc):
|
||||
$link = Route::_("index.php?view=club&clubid={$pc->getId()}");
|
||||
?>
|
||||
</ul>
|
||||
<li><a href='<?php echo $link; ?>'>Vorsitzender im Verein "<?php echo htmlentities($pc->getName()); ?>"</a></li>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php foreach ($this->positions as $pos):
|
||||
$link = Route::_("index.php?view=club&clubid={$pos->getClub()->getId()}");
|
||||
?>
|
||||
<li><a href='<?php echo $link; ?>'><?php echo htmlentities($pos->getPosition()->getName()); ?> im Verein "<?php echo htmlentities($pos->getClub()->getName()); ?>"</a></li>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user