[eluser]Matt S.[/eluser]
Class properties can only be set with values, not variables or expressions. For what you want to accomplish, you would need to set the values of the $data array inside your constructor, like so:
Code:
class Foo extends MY_Controller {
private $data;
public function __construct()
{
$this->data = array('doc_root' => $_SERVER['DOCUMENT_ROOT']);
}