wollte nur Mal sehen, ob hier jemand wirklich mit J! klar kommt ... 
also dann zeige ich das Mal:
in der Model -Datei eine zusätzliche Abfrage platzieren und result bereiten:
PHP-Code:
class KompoModelKompo extends JModel
{ ...
// ---------------------- formsearch ----------------------
function _getKomposearchQuery( &$options ) {
// $db = JFactory::getDBO(); nicht nötig
$select = 'c.*';
$from = '#__Kompo_cat AS c';
$queryc = "SELECT " . $select .
"\n FROM " . $from
;
return $queryc; }
function getKomposearchList( $options=array() ) {
$queryc = $this->_getKomposearchQuery( $options );
$result = $this->_getList( $queryc );
return @$result; }
// ------------------ end formsearch ----------------------
function getKompoList( $options=array() )
{ ... }
... }
in view.html.php-View: wird die o.g result-Funktion/Methode aufgerufen
PHP-Code:
class KompoViewKompo extends JView {
function display($tpl = null) {
...
// ---------------------- formsearch ----------------------
$rowss = $model->getKomposearchList();
$this->assignRef('rowss' , $rowss);
// ----------------- end formsearch ----------------------
parent::display($tpl); } }
in tmpl/default.php-View dann die rows "einbinden":
PHP-Code:
...<select>
foreach ($this->rowss as $row2) {
$output .= "<option>".$row2->categorie."</option>\n";
} ; </select>
...
Gruß, w.
Lesezeichen