![]() |
Parse error: syntax error, unexpected T_ECHO in -> regexp code on line 1
Code:
Parse error: syntax error, unexpected T_ECHO in D:\Webserver\Projekte\de.unique.labs.tests\Template System\class\extensions\extensionArrayParse.php(8) : regexp code on line 1Code:
while( preg_match( "/" .$this->leftDelimiterF ."loop name=\"(.*)\"".$this->rightDelimiterF ."/isUe", $this->template)){ |
it says that the problem is at echo 'testArray' but I don't see any of that in the code you provided.
|
The problem is you have given the regex the 'e' modifier, which means evaluate the replacement as php code.
Do you really need to do this? What are you trying to do? |
Iam Trying to develope my own Template System. But I stuck with the {loop Syntax for a Array.
Could someone help me there? Array Code:
$array = array('0' => array('userName' => 'Tester','userID' => '1','groupID' => '1','groupName' => 'Admin'),'1' => array('userName' => 'Tester2','userID' => '2','groupID' => '2','groupName' => 'Miglied'));Template Code Code:
<div><div> <p>Tester</p> <p>Tester2</p> </div> |
| All times are GMT. The time now is 10:03 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0