Welcome Guest, Not a member yet? Register   Sign In
Call extend class.
#2

[eluser]Sumon[/eluser]
have a try
Code:
class Newcontent extends Content {
    
        function __construct() {
            $this->SetInitialValues();
        }
        
        function getDate() {
         return $this->modified_date;
        }
        
}
$x = new Newcontent();
print_r($x->getDate());
Content class __construct() not called anywhere. so that explicit call of SetInitialValues() resolve the issue.
may be helpful for you Smile


Messages In This Thread
Call extend class. - by El Forum - 11-15-2008, 07:24 AM
Call extend class. - by El Forum - 11-15-2008, 08:07 PM
Call extend class. - by El Forum - 11-15-2008, 10:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB