Welcome Guest, Not a member yet? Register   Sign In
Using a CI class from a unix command line
#1

[eluser]Unknown[/eluser]
Wondering if it is possible to run a CI class from unix command line? As of now, the class extends Controller because the class is part of a much larger program. If you try 'php myfile.php' at the unix command line, it produces the following error:

------------
Fatal error: Class myfile: Cannot inherit from undefined class controller in ci/system/application/controllers/myfile.php on line
------------

Is it possible to use just one class of a much larger program and execute it from the unix command line?


Messages In This Thread
Using a CI class from a unix command line - by El Forum - 12-17-2007, 03:12 PM
Using a CI class from a unix command line - by El Forum - 12-17-2007, 04:28 PM
Using a CI class from a unix command line - by El Forum - 12-19-2007, 05:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB