Welcome Guest, Not a member yet? Register   Sign In
helper
#7

(12-03-2020, 06:51 AM)sammyskills Wrote:
(12-03-2020, 02:56 AM)Llui7 Wrote: Hello
I am new to codeginiter4

I cannot see the controller that I am currently in from a helper.

In codeigniter3 I used:
$ CI = & get_instance ();
$ CI-> router-> class;
$ CI-> router-> method;

I don't know how to do it in codeigniter4

Thanks!

This is easier to do in CI4. You just have to learn about namespaces. See this forum thread for more details.


Thanks for the information!! i will read about namespaces
Reply


Messages In This Thread
helper - by Llui7 - 12-03-2020, 02:56 AM
RE: helper - by InsiteFX - 12-03-2020, 04:18 AM
RE: helper - by Llui7 - 12-03-2020, 04:28 AM
RE: helper - by sammyskills - 12-03-2020, 06:51 AM
RE: helper - by Llui7 - 12-04-2020, 07:39 AM
RE: helper - by InsiteFX - 12-03-2020, 05:06 PM
RE: helper - by Llui7 - 12-04-2020, 07:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB