Redirect inside Constructor NOT WORKING |
(12-02-2019, 10:15 AM)kilishan Wrote: "code cleanness" can mean any number of things. For many of those definitions, Controller Filters, as previously mentioned, will keep it clean for you. Then please add this 'note' to the place where we all seem to end up, namely: typing 'redirect' into the search field of the docs and then onwards from there ... This is the 'user experience' we get: Search Results Search finished, found 18 page(s) matching the search query.
PHP Code: public function __construct() { More info https://codeigniter.com/user_guide/general/errors.html
I would recommend using Filters as well, keep your code organized is important.
|
Welcome Guest, Not a member yet? Register Sign In |