Welcome Guest, Not a member yet? Register   Sign In
Can _output function within a controller load views?
#3

[eluser]christian.schorn[/eluser]
The _output function is called after the controller-method is run ("links" in this case) and the final processing is done, so the views will be loaded, but never displayed.

One possibility is, if you have header/footer files without variables to include them:
Code:
function _output($output)
{
  include('/some/header.php');
  echo $output;
  include('/some/footer.php');
}

But it looks to me as if this will break whith caching turned on!

@gtech: what you did, was forcing the _output routine to be called twice, once by the controller and then once again by the framework, with no effect the second time.


Messages In This Thread
Can _output function within a controller load views? - by El Forum - 05-04-2008, 02:20 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 03:31 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 03:58 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 04:06 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 04:49 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 05:06 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 05:23 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 05:34 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 05:39 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 05:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB