Welcome Guest, Not a member yet? Register   Sign In
PHP won't run model functions from terminal
#1

[eluser]bndk[/eluser]
Good evening,

When I try to to run a controller's method from the terminal like so
Quote:php index.php some_controller some_function
with the following function body
Code:
function some_function() {
       echo 'I like eggs';
    }
it works like a charm, outputing the string as expected.

However, when I load a model and try to call one of its functions from the controller, nothing happens.
I tried to call the same model function from a web browser and it did what it was supposed to do, so I know there's not a problem with the function.

Does anyone have an idea as to why it doesn't work?

Your help is much appreciated Smile


Messages In This Thread
PHP won't run model functions from terminal - by El Forum - 06-04-2012, 12:27 AM
PHP won't run model functions from terminal - by El Forum - 06-04-2012, 10:26 AM
PHP won't run model functions from terminal - by El Forum - 06-04-2012, 12:55 PM
PHP won't run model functions from terminal - by El Forum - 06-04-2012, 01:10 PM
PHP won't run model functions from terminal - by El Forum - 06-04-2012, 01:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB