I've actually managed to sort it out.

One of the other devs in the office showed me the way (here's looking
at you, Deon, if you're reading this ;)

Basically, I edit the webroot/index.php. I call ob_start(); just
before $Dispatcher->dispatch(). Then, I retrieve the contents of the
buffer and clean it. I can then work with the content in the view
easily enough through WALL. Thankfully, App::import() is available
near the Dispatcher, so I can keep all the libraries in the Vendor
directory. Not the prettiest of solutions, but it works for me :)

But thanks for your help guys (and girls). I really do appreciate it.

On Feb 5, 8:24 pm, mark_story <[email protected]> wrote:
> doing it in beforeRender() will be fruitless, there is no View output
> generated until render() which beforeRender() happens before ;) you
> might have better luck using afterFilter();  Or even better making a
> custom view class for your wireless output format, and switching to
> the custom view class based on the request.
>
> -Mark
>
> On Feb 5, 5:47 am, garbetjie <[email protected]> wrote:
>
> > Hey all.
>
> > I've been struggling with what I would imagine should be a relatively
> > simple exercise.
>
> > I'm attempting to integrate the Wireless Abstraction Library (WALL)
> > into my Cake app, but it really isn't playing nice.
>
> > I need to be able to edit the final source code of the views. There
> > are certain HTML tags that need to be replaced and updated, and so I
> > need to be able to access rendered data, *without* sending it to the
> > browser.
>
> > So, what I need to know is where there is any way to access the
> > rendered view without sending the data to the browser, thus allowing
> > me to edit the data to be sent - maybe through a $this->output var in
> > the Controller or something?
>
> > Would really appreciate some help.
>
> > *g
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to