[eluser]nuclearmaker[/eluser]
hi, i want to create the some CI library,
so here is my code.
but 2 diff method, i need to call the instance again.is there a way to call once only?
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
require_once('SomeClass.php');
public function title()
{
$html = new SomeClass();
return $html->title;
}
public function body()
{
// here i need to call the instance again.is there a way to call once only?
$html = new SomeClass();
return $html->body;
}