Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How to Execute Task multiple params using OIL
  • I have a problem when I want to execute Task class that have multiple params inside method.

    public function build_img_by_type($module_type , $sub_module_type, $width = 251,$height = 112)
        {

    //do something
        }

    when method didn't have params is pretty nice using this 
    oil refine myclass: build_img_by_type

    I am try to do this 

    myclass: build_img_by_type('bird','fly'); // didn't not work
    myclass: build_img_by_type 'bird','fly'; // didn't not work

    any suggestion ?


  • There is no space between class and method name. This should work fine:

    oil refine myclass:build_img_by_type module sub  600 100

    there is no need to enclose a string in quotes unless it contains spaces.
  • thanks for advice 

    it's work

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion