Welcome Guest, Not a member yet? Register   Sign In
Change output in post_system Event
#1

In CI3 i used display_override - hook like this:
PHP Code:
function placeholders()
{
    
$CI =&get_instance();
    
$buffer $CI->output->get_output();
 
    
$buffer str_replace(array('{field1}','{field2}'), array('data1','data2'), $buffer);
 
    
$CI->output->set_output($buffer);
    
$CI->output->_display();
}
?>

How can I access from CI4 Event's (post_system) controller to output?
Reply
#2

In CI4 you can achieve the same thing with an “after_filter”, see https://codeigniter4.github.io/userguide...er-filters
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
Reply




Theme © iAndrew 2016 - Forum software by © MyBB