Welcome Guest, Not a member yet? Register   Sign In
CLI access missing variables
#4

there is a global function called is_cli() which you can use to pre-set things you need when in CLI mode

if (is_cli()) {}

There is also different configs being loaded depending on the ENVIRONMENT maybe that why you base_url is not set.
On the package it said needs Windows 7 or better. So I installed Linux.
Reply


Messages In This Thread
CLI access missing variables - by Sam - 05-18-2017, 03:15 PM
RE: CLI access missing variables - by kilishan - 05-18-2017, 07:36 PM
RE: CLI access missing variables - by Sam - 05-19-2017, 11:14 AM
RE: CLI access missing variables - by rtenny - 05-26-2017, 07:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB