[eluser]USCTrojans[/eluser]
Hello, I'm using HMVC modular extensions on my install and for some reason when I send a variable from a module controller to an /application/model/ model (not in a module) it is giving me problems. Here's the code for my controller,
Code:
for($n=0; $n<count($data['network']); $n++)
{
$info['type'] = strtolower($data['network'][$n][0]);
$info['alias'] = $data['network'][$n][1];
$model = $info['type'] . "/" . $info['type'] . "_update";
$method = $info['type'] . "_update";
$this->load->model($model);
$return[$n] = $this->$method->$method($info);
}
and the code for my model:
Code:
function twitter_update($info){
etc etc
}
I can still access the info array and return it etc but for some reason it is giving me warning messages:
A PHP Error was encountered
Severity: Warning
Message: Missing argument 1 for Twitter_update::twitter_update(), called in /home/dotcloud/rsync-1332957270414/system/core/Loader.php on line 303 and defined
Filename: twitter/twitter_update.php
Line Number: 4