• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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, 04:15 PM
RE: CLI access missing variables - by kilishan - 05-18-2017, 08:36 PM
RE: CLI access missing variables - by Sam - 05-19-2017, 12:14 PM
RE: CLI access missing variables - by rtenny - 05-26-2017, 08:39 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.