Quantcast
Channel: OXID Community Forum
Viewing all articles
Browse latest Browse all 6951

Probleme bei erstem eigenen Modul

$
0
0
Hallo an alle!
Nach tagelangem Testen und nachlesen muss ich euch doch noch mit ner Anfängerfrage belästigen ;)

Ich bin gerade dabei ein erstes eigenes Modul zu erstellen.
Ich schaffe es aber einfach nicht, dass die erstellte Funktion im Template nutzbar wird.

Meine metadata.php:
PHP Code:

<?php
$sMetadataVersion 
'1.0';

/**
 * Module information
 */
$aModule = array(
    
'id'           => 'test',
    
'title'        => 'test',
    
'description'  => '',
    
'thumbnail'    => '',
    
'version'      => '1.0',
    
'author'       => '',
    
'extend'       => array(
        
'oxubase'     => 'test/test'
    
)
);
?>

Meine test.php:
PHP Code:

<?php
class test extends test_parent //oxUBase
{
    public function 
testAusgabe(){
        return 
'OK';
    }
}
?>

Das Modul ist im Backend aktiviert, unter "Installierte Shop-Module" wird das Modul auch angezeigt.

Die Ausgabe soll im Template start.tpl mit
HTML Code:

[{$oView->testAusgabe()}]
erfolgen.
Das funktioniert aber nicht, in EXCEPTION_LOG.txt gibt's den Eintrag
Code:

oxSystemComponentException-oxException (time: 2013-05-06 10:27:36): [0]: Function 'testAusgabe' does not exist or is not accessible! (Start)
Oxid-Version: 4.7.3 CE

Ich hoffe ihr habt vielleicht einen Tipp wo der Fehler liegen könnte, vielen Dank schon mal für eure Hilfe!

Grüße
Timm

Viewing all articles
Browse latest Browse all 6951

Trending Articles