I don't want to flood the standard
How do I pass the
config
table with my vars, so I created a new config table. Sample code in my migration fileCode:
public function update_data(){return [$data = ['var_1'=> 1,'var_2'=> 1,'var_3'=> 0,];// Call a custom callable function to perform more complex operations.['custom', [[$this, 'callable_install']]],];}public function callable_install($data){// Run some SQL queries on the database}
$data
array in update_data()
? I know I could probably do $this->callable_install($data)
, but I'm not sure if ['custom', [[$this, 'callable_install']]],
allows passing vars.Statistics: Posted by Kailey — Fri Apr 11, 2025 1:06 pm