CI4 lacks seems to lack a couple of super convenient CI3 features. |
Re (1), is this what you are looking for? ... you can have method scope
Code: $app = config('App'); Code: $this->app = config('App'); You can access anything from application/Config/App (or whichever config file you are interested in), and you can even create config items on the fly. The pre-existing ones are supposed to be static, so instance-agnostic. If you wanted the same for yours, then add it to App similarly. Re (2), is this what you are looking for? https://bcit-ci.github.io/CodeIgniter4/o...-reference ... specifically, the setVar and setData methods of any view or view parser. |
Welcome Guest, Not a member yet? Register Sign In |