Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Oil
How to Execute Task multiple params using OIL
viyancs
February 2014
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 ?
Harro
February 2014
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.
viyancs
February 2014
thanks for advice
it's work
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
February 2014
viyancs
February 2014