Kod PHP:
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
// require the html view class
jimport( 'joomla.application.component.helper' );
require_once( JApplicationHelper::getPath( 'front_html', 'com_hello' ) );
$task = JRequest::getVar( 'task' );
$name = JRequest::getVar( 'name', 'John' );
switch ($task) {
case 'show':
default:
hello_HTML::show( $name );
break;
}
?>
mam pytanie czy wie ktos co musze zrobic zeby taki kod dzialal na joomla
mam wersje 1.0.12,to jest z jakiegos tutoriala, ale mimo ze mam chyba najnowsza wersje joomla to nie dziala.
glownie chodzi o ( '_JEXEC' ), jimport,JApplicationHelper::getPath
to chyba jakies nowe API, czy tam framework .
tutaj link jeszce
http://dev.joomla.org/component/opti...s:hello_world/
ok, z tego co przezcytalem t jest jakas niezalezna seria joomla 1.5