Welcome Guest, Not a member yet? Register   Sign In
problem with constructor
#1

[eluser]Unknown[/eluser]
Hi

Very strange problem - but just can't solve it. I have two almost identical classes 'Image' and 'Video' .. (Video was initially a copy of Image). Calling the Video constructor (new Video) the new instance doesn't get created although Image works fine ... is there any reason why a class can't be "Video" ?

=============== relevant code =====================
class Image extends DataMapper {

public $table = 'images';
public $has_one = array('property');
public static $folder = 'images/properties/';
//private static $

public function __construct($id = NULL)
{
parent::__construct($id);
}
===================================================
class Video extends DataMapper {

public $table = 'videos';

public $has_one = array('property');
public static $folder = 'videos/properties/';
//private static $

public function __construct($id = NULL)
{
parent::__construct($id);
}



Messages In This Thread
problem with constructor - by El Forum - 09-14-2012, 02:20 PM
problem with constructor - by El Forum - 09-14-2012, 08:07 PM
problem with constructor - by El Forum - 09-14-2012, 11:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB