<?php echo rand(1, 10) ?>
Monthly Archives: March 2012
How to get article title
<?php
$id= JRequest::getVar(‘id’);
$objTitle = $article->load($id);
echo $objTitle->get(‘title’);
?>
How to get article id
<?php echo JRequest::getVar(‘id’); ?>
<?php echo rand(1, 10) ?>
<?php
$id= JRequest::getVar(‘id’);
$objTitle = $article->load($id);
echo $objTitle->get(‘title’);
?>
<?php echo JRequest::getVar(‘id’); ?>