-1

So, again a problem with my parser. These errors:

Notice: Undefined property: template::$param in C:\xampp\htdocs\app\includes\classes\class.template.php on line 35

Warning: array_keys() expects parameter 1 to be array, null given in C:\xampp\htdocs\app\includes\classes\class.template.php on line 35

Notice: Undefined property: template::$param in C:\xampp\htdocs\app\includes\classes\class.template.php on line 35

Warning: array_values() expects parameter 1 to be array, null given in C:\xampp\htdocs\app\includes\classes\class.template.php on line 35

The line that causes the errors:

$content = str_replace(array_keys($this->param), array_values($this->param), $content);

Any answers?

Giacomo1968
  • 25,759
  • 11
  • 71
  • 103
LisaW
  • 171
  • 2
  • 3
  • 11
  • `Sub Question: Am I unallowed to put my name under a post, as I see it getting removed.` You sign your posts by your username & icon beneath each post. This site is not a chat room. – Giacomo1968 May 03 '14 at 05:50
  • Based on the [code you provided in your previous question](http://stackoverflow.com/q/23440222/1233508), you seem to be using `$this->variables`, `$this->Cut` and `$this->param` interchangeably - you need to pick one of those and stick with it. Please don't make us hunt through your past questions to find context, link to them if they are related. Also, this is the kind of error that can be rather easily resolved if you look at the "Related" question list in the sidebar. – DCoder May 03 '14 at 06:19
  • possible duplicate of [Reference - What does this error mean in PHP?](http://stackoverflow.com/questions/12769982/reference-what-does-this-error-mean-in-php) – DCoder May 03 '14 at 06:27
  • @DCoder Call me stupid, but I don't see anything helpfull... – LisaW May 03 '14 at 07:10

1 Answers1

0

are you returning an object to twig template instead of array. getArrayResult if using doctrine.

sjt003
  • 2,407
  • 5
  • 24
  • 39