makeusabrew/jaoss

Controller::assign() should throw an exception if $var already exists on the stack

Closed this issue · 1 comments

Currently if a variable is added to the var stack and then updated later, the controller is totally silent. This could lead to seriously strange behaviour if a variable is assigned in an init method but then overridden to something different by a more explicit action.

assign() should therefore throw an exception - this can be caught and then the variable can be unset and reassigned if desired.

adding exception if controller var already set, closed by dd46460