• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest FrontController::run

xf_phantom

Well-known member
#1
It would be nice, if we could set INSIDE the controller a param, to define that we don't need the container.

With this, we could return PURE html to the client direct from the controller (just like the json stuff since 1.2)^^


e.g.
return $this->responseMessage('<html><head><title>foo</title></head>..', array('hideContainer' => true));

ATM i've solved this via the frontControllerPreView event where i have access to the viewRender and call setNeedsContainer, but this would be a nice improvement for the core, which would allow us to return "pure" html without the need to create templates.



Or is this already possible?:)
 
Last edited: