Evo mada mislim da je ova sintaksna greska T_Private izazvana verzijom php-a a ne greskom u kodu.Ipak to ne znaci da mozda nema i drugih gresaka u kodu....
Da ne treba mozda svoj Xampp server da prilagodim novoj verziji php-a?
O ovim greskama sam nesto nasao na ovoj strani oregonstate.edu/cws/docs/systems/software/php5troubleshooting ali mi i dalje nije jasno sta treba da promenim.
<?php
// page title
private $title = '';
// template tags
private $tags = array();
private $postParseTags = array();
private $bits = array();
private $content = "";
private $apd = array();
function __construct( Registry $registry )
{
$this->registry = $registry;
}
public function getTitle()
{
return $this->title;
{
$this->title = $title;
}
public function setContent( $content )
{
$this->content = $content;
}
public function addTag( $key, $data )
{
$this->tags[$key] = $data;
}
public function removeTag( $key )
{
unset( $this->tags[$key] );
}
public function getTags()
{
return $this->tags;
}
public function addPPTag( $key, $data )
{
$this->postParseTags[$key] = $data;
}
public function getPPTags()
{
return $this->postParseTags;
}
public function addTemplateBit( $tag, $bit )
{
$this->bits[ $tag ] = $bit;
}
public function addAdditionalParsingData($block, $tag, $condition,$extratag, $data)
{
$this->apd[$block] = array($tag => array('condition' => $condition,'tag' => $extratag, 'data' => $data));}
public function getBits()
{
return $this->bits;
}
public function getAdditionalParsingData()
{
return $this->apd;
}
public function getBlock( $tag )
{
preg_match (‚#<!-- START ‚. $tag . ‚ -->(.+?)<!-- END ‚.
$tag . ‚ -->#si', $this->content, $tor); $tor = str_replace (‚<!-- START ‚. $tag . ‚ -->', „", $tor[0]); $tor = str_replace (‚<!-- END ‚ . $tag . ‚ -->', „", $tor);
return $tor;
}
public function getContent()
{
return $this->content;
}
public function getContentToPrint()
{
$this->content = preg_replace ('#{form_(.+?)}#si', '',
$this->content); $this->content = preg_replace ('#{nbd_(.+?)}#si', '',
$this->content); $this->content = str_replace('</body>', '<!-- My site --></body>', $this->content );
return $this->content;
}
?>
|