annoying parse error
Posted: Mon May 03, 2010 7:21 pm
Have I been staring at this too long and overlooking the obvious? Why do I keep getting a parse error?
index.php - exerpt
page_base.php - exerpt
Any help is appreciated, thank you.
Hag
index.php - exerpt
Code: Select all
<?php
require_once("page_base.php");
$index = new Page_Base();
//several $index-> sections to build each page's unique elements
$index->setButtonArray("Home"=>"index.php", "Contact"=>"contact/", "Privacy"=>"privacy/", "Site Map"=>"sitemap/");
?>Code: Select all
<?php
class Page_Base
{
//succinct listing
protected $_buttons;
public function setButtonArray($buttons)
{
$this->_buttons = array($buttons);
}
?>Hag