Skip to content

code is not working #1

@mamdouhweb

Description

@mamdouhweb

the code simply is not working, I tried with codeigniter, regular php and all the same. it's always returning null.
same example you posted I have been using. and only null in return.
if I changed the Ups class to extend Ups_Live_Rates I would get invalid argument supplied for foreach.
if you do :

    var_dump(get_class_methods($this->ups));
    var_dump(method_exists($this->ups,'get_rate'));
    return $rate = $this->ups->get_rate('90007', $packages);

results would be:

    array(5) {
    [0]=>
    string(11) "__construct"
    [1]=>
    string(4) "load"
    [2]=>
    string(6) "__call"
    [3]=>
    string(3) "get"
    [4]=>
    string(3) "set"
    } 
    bool(false)
    NULL

you would get null and false for method exists.

any help, been struggling with this since morning?!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions