Welcome Guest, Not a member yet? Register   Sign In
In the interests of DRY
#2

[eluser]AndrewMalachel[/eluser]
I think, you should add at the end of every function (in this case function one to function three):

$this->_output($master_view['main_content']);

so at the end of each function, will call the _output function..

for ex.:
Code:
function one() {
//[..]
$master_view['main_content'] = 'content1';
$this->_output($master_view['main_content']);
}


Messages In This Thread
In the interests of DRY - by El Forum - 01-12-2009, 08:16 PM
In the interests of DRY - by El Forum - 01-13-2009, 12:14 AM
In the interests of DRY - by El Forum - 01-13-2009, 12:38 AM
In the interests of DRY - by El Forum - 01-13-2009, 12:51 AM
In the interests of DRY - by El Forum - 01-13-2009, 12:57 AM
In the interests of DRY - by El Forum - 01-13-2009, 02:17 AM
In the interests of DRY - by El Forum - 01-13-2009, 07:47 PM
In the interests of DRY - by El Forum - 01-13-2009, 11:38 PM
In the interests of DRY - by El Forum - 01-14-2009, 12:02 AM
In the interests of DRY - by El Forum - 01-14-2009, 06:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB