nette/nette — pull request #434 by juzna (2011-12-23 14:12:23+00:00)
Title: idea - check template parameters for reserved names

This is just an idea which helped me, as i often forgot which variables in templates are used by framework.
Sometimes i use the same variable in presenter not realizing it's already there, and thus make a collision and the app stops working (e.g. in presenter which takes care about user administration, I assign `$this->template->user = ...` and it breaks the whole page, because user is already assigned and expected to be of IUser).

This will emit an E_NOTICE when assigning to a reserved parameter, showing that the problem is in presenter in code I mentioned above (and not somewhere else as it screams now).

(perhaps this is not the prettiest impl as it's very recent idea, suggestions are welcome)