zanbaldwin / eventing

Eventing is a PHP application framework, by Zander Baldwin, based on the HMVC design pattern, licensed under the MIT/X11. This is an unstable, open-source side project.
MIT License
7 stars 0 forks source link

Template Library - Linking Sections #3

Closed zanbaldwin closed 14 years ago

zanbaldwin commented 14 years ago

Unexpected result when $this->template->link($array); is called. Only the last key/value pair is used, all others are discarded and not linked.

zanbaldwin commented 14 years ago

EDIT: When an array is passed to E_template::link() as the only parameter, the first key/value pair is discarded.It is as if array_shift() is performed before func_get_args() returns its value.

zanbaldwin commented 14 years ago

SOLVED:

I am an idiot. I cannot believe that I forgot arrays cannot have two keys the same. Duh.