Category : codeigniter-4

need your help. I try to testing my login page with feature test but i got this error, even thats run normaly when code is executed. but went i test the code i got error like this. ErrorException: Cannot modify header information – headers already sent by (output started at D:projecte-services-disdukcapilvendorphpunitphpunitsrcUtilPrinter.php:104) that’s my code : ..

Read more

how is it possible to catch the honeypot-exception in Codeigniter 4? I simulated the bot, so that the field of honeypot is filled. But CI4 is throwing the exception instantly. I would like to log that access into my db and want to redirect to a "jail" site where the program is setting a sleep ..

Read more

Downloaded a git repo for a chat application using the below link Git Repo for Chat Application Then changed the env file to .env file and also uncommented default database block as shown below. database.default.hostname = localhost database.default.database = chat database.default.username = root database.default.password = database.default.DBDriver = MySQLi Then opened terminal and executed this command ..

Read more

I’m trying to get the current route rule in my filter. $routes->group(‘creditCalculator’, [‘namespace’ => ‘ModulesCreditCalculator’, "filter" => ‘auth:recht1’, ‘extra_credentials’ => array(‘as’=>’test’, ‘menu’=>’profile’)], function($routes){ $routes->post(‘/’, ‘CreditCalculator_Controller::index’); $routes->get(‘test’, ‘CreditCalculator_Controller::test’, ["filter"=>"auth:test1", ‘test2’ => ‘test3’]); $routes->get(‘test2/(:num)/(:any)’, ‘CreditCalculator_Controller::test2/$1/$2′, ["as"=>’named_route’, "filter"=>"auth:recht3", ‘right’ => ‘right1’]); In the "auth" filter I would like to get access to the current matched route to get ..

Read more