Hi,
ich bin gerade dabei ein sehr sehr simples Modul für mich zu erstellen.
ich habe in der default.php folgendes:
meine mod_goalking.php sieht wie folgt aus:PHP-Code:<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<ul>
<li><?php echo $this->params->get('firstname'); ?></li>
</ul>
und die xml datei hat den parameter firstname:PHP-Code:<?php
/**
* @version $Id: mod_latestnews.php 7692 2007-06-08 20:41:29Z tcp $
* @package Joomla
* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// Include the syndicate functions only onc
require(JModuleHelper::getLayoutPath('mod_goalking'));
?>
Nun bekomme ich allerdings im Frontend einen Fehler angezeigt:PHP-Code:<params>
<param name="firstname" type="text" default="" label="First Name" description="put the first name of the goal king"></param>
</params>
zeile 4 in der default.php is der params->get befehl. was habe ich falsch gemacht?Fatal error: Call to a member function get() on a non-object in D:\xampp\htdocs\htdocs\joomla\modules\mod_goalking \tmpl\default.php on line 4


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen