Hallo Gemeinde, ich habe mir mal eine Komponente zusammen geschustert um zu lernen wie man so etwas macht! Lerning by doing!
Im folgendem Code denke ich aber ist das aufrufen der Admintabs irgendwie doppelt.
Es funktioniert tadellos aber irgendwie habe ich das Gefühl das da was falsch ist irgendwie doppelt einmal mit (funktion) und einmal mit switch.
Ist jemand so nett und hilft mir ein wenig auf die Sprünge?
Danke schon mal... timi11
Code:
PHP-Code:// no direct access
defined('_JEXEC') or die('Restricted access');
class helloScreens {
function text()
{
echo JText::_('RS1_hallo');
echo "<br><br> Admin erster Tab mit funktion";
}
function text2()
{
}
function text3()
{
}
};
switch ($task) {
case 'text2':
helloScreens::text2();
echo "<br><br> Admin zweiter Tab mit Switch";
break;
case 'text3':
helloScreens::text3();
echo "<br><br> Admin dritter Tab mit switch<br><br>";
break;
default:
helloScreens::text();
echo JText::_('RS1_hallo');
echo "<br><br> Admin erster Tab mit switch";
break;
}


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen