Several questions concerning CI4 controller |
Here the (working) class:
PHP Code: <?php namespace App\Controllers; 1.) I want to put the $data array outside the whole class or outside the functions (both possible in C/C++) and pass them as a parameter to the function so there is less code. How can I accomplish that in Codeigniter/php? 2.) My email-server (postfix) is running with TLS encryption. I do not see any possibility to use certificates in CI(4). Please elaborate... 3.) The error message is never evaluated when used in another form of configuration (mail/sendmail) in case testing it on my localhost at home which obviously fails: PHP Code: echo view('contact/mailerror', $data);. 4.) Is this still needed after checking in the validation process? PHP Code: FILTER_SANITIZE_EMAIL' Any help is appreciated. Cheers G. |
Messages In This Thread |
Several questions concerning CI4 controller - by bitshifter - 03-24-2020, 09:03 AM
RE: Several questions concerning CI4 controller - by dave friend - 03-24-2020, 06:03 PM
RE: Several questions concerning CI4 controller - by bitshifter - 03-25-2020, 08:22 AM
RE: Several questions concerning CI4 controller - by dave friend - 03-25-2020, 09:52 AM
RE: Several questions concerning CI4 controller - by bitshifter - 03-25-2020, 12:00 PM
RE: Several questions concerning CI4 controller - by dave friend - 03-25-2020, 12:14 PM
RE: Several questions concerning CI4 controller - by bitshifter - 03-28-2020, 12:13 PM
RE: Several questions concerning CI4 controller - by dave friend - 03-28-2020, 02:33 PM
RE: Several questions concerning CI4 controller - by bitshifter - 04-01-2020, 01:06 PM
RE: Several questions concerning CI4 controller - by maxxd - 04-02-2020, 03:31 PM
RE: Several questions concerning CI4 controller - by bitshifter - 04-17-2020, 07:09 PM
|