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

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

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

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
/*** NO support in private message - Use the forum! ***/

Theme © iAndrew 2016 - Forum software by © MyBB