Fatal error: Call to undefined method result_field::load_result_page() in S:\Web_Pages\Object_Library\Result_Set\result_page.php on line 16
Here's the code for the constructor in result_page.php:
Code: Select all
public function __construct($fields_array, $table_width=null, $table_border=1)
{
$this->fields_array=$fields_array;
for($i=0; $i<sizeof($this->fields_array); $i++) //Creates a reference to each result_field object within $fields_array
/*Line 16*/ $this->fields_array[$i]->load_result_page($this);
$this->table_width=$table_width;
$this->table_border=$table_border;
}Code: Select all
public function load_result_page($parent_result_page)
{
$this->parent_result_page=$parent_result_page;
}I have tested the values in the variable $this->fields_array using get_class( ) and confirmed that they are of type result_field as they should be.
ANy ideas whatsoever??
Thanks