Welcome Guest, Not a member yet? Register   Sign In
warning "missing argument"
#1

[eluser]Unknown[/eluser]
hi,

i have a model with a function which has some arguments with default values like...

Code:
function doSomething($arg1, $arg2="foo") { ... }

calling that function from a controller like....

Code:
doSomething("stupid");

returns a warning message saying
Quote:Missing argument 2 for Foo_model::doSomething(), called in /path/to/file.php on line XX and defined

what i'm doing wrong?

thanks
martin


Messages In This Thread
warning "missing argument" - by El Forum - 06-21-2007, 09:11 AM
warning "missing argument" - by El Forum - 06-21-2007, 09:27 AM
warning "missing argument" - by El Forum - 06-21-2007, 09:41 AM
warning "missing argument" - by El Forum - 06-21-2007, 05:08 PM
warning "missing argument" - by El Forum - 06-22-2007, 04:39 AM
warning "missing argument" - by El Forum - 06-22-2007, 09:09 AM
warning "missing argument" - by El Forum - 06-22-2007, 05:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB