Welcome Guest, Not a member yet? Register   Sign In
trouble with the forum
#11

If 1 show logo 1 else show logo 2
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#12

Yeah, I know how to use an if statement after programming for 35 years Smile. The problem is getting the switch to work from the command line. I could probably use the URL. But I am using Docker so things are a little unknown.
proof that an old dog can learn new tricks
Reply
#13

If you want to get it from the command line then you need to tell PHP to use argv argc in php.ini

Then read this:

argc argv
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#14

You can easily call a controller from the command line, read this: https://codeigniter4.github.io/userguide/cli/cli.html
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply




Theme © iAndrew 2016 - Forum software by © MyBB