Re: I want to show like this...
Reply #4 –
Thanks a lot.
now created a function in ContentController
function cont(){
$db = $this->GetModel();
$sql = "SELECT * FROM content WHERE id = 1";
$allcontent = $db->rawQueryOne($sql);
return $allcontent;
}
and in view page I've call:
<?php cont(); ?>
<?php echo $allcontent['page_title']; ?>
but now not working...
have some example...?
Thnx.