From: Adrian Schneider <siradr...@gmail.com>
Date: Sat, 6 Oct 2012 21:18:58 -0700 (PDT)
Local: Sun, Oct 7 2012 12:18 am
Subject: Re: Allowing other bundles to add view variables
I've gone ahead with #2 for anyone who is interested. Each controller returns a ViewEvent($templateName, $variables, $eventName = Pros - Removed dependency on templating layer from controller (another step Cons - Controller's return code is a little more verbose > I'm working on a bundle that I'd like other bundles to be able to > Constraints > - I'm using a generic templating service in the controller, so nothing > Here's a typical controller action - > Options > - Event system, and array_merge event's view variables into template > Can anyone suggest anything better or how they've solved it in the past? > Thanks You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||