[eluser]Sarwar CSE[/eluser]
if i write like this
Code:
class Muser extends CI_Model{
var $userProfile;
function __construct(){
parent::__construct();
$this->load->model('MuserPro','uP');
$this->userProfile=$this->uP;
}
}
then the line "
Code:
print_r($this->Muser->userProfile);
" print this
MuserPro Object
(
[id] =>
[FName] =>
[LName] =>
[NName] =>
[Gender] =>
[State] =>
[Zip] =>
[Country] =>
[country_code] =>
[Tel] =>
[Email] =>
)
now in this code in the controller
Code:
function index(){
print_r($this->Muser->userProfile);
// it show the object Structure of MuserPro......
print_r($this->Muser->uP);
// it should print the object Structure of MuserPro but it not print any think
}