• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
Test your translation files with Translation Tester
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.