1. 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

Discussion in 'Closed Suggestions' started by xf_phantom, Aug 4, 2013.

  1. xf_phantom

    xf_phantom Well-Known Member

    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)^^

    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: Aug 4, 2013

Share This Page