The problem with the transmission of the value of the variable in the model - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: The problem with the transmission of the value of the variable in the model (/showthread.php?tid=1296) |
The problem with the transmission of the value of the variable in the model - vertisan - 02-26-2015 I have a problem. I am trying to pass the value of the variable $lider in the model but then I get an error: PHP Code: A PHP Error was encountered PHP Code: Severity: Notice Why? Here is my code: Controller PHP Code: $GAMEROOM = array ( 'sekcja' => 'GAMEROOM' ); Model PHP Code: public function pobierz_gdzie( $tabela, $warunek, $lider ) RE: The problem with the transmission of the value of the variable in the model - aurelien - 02-26-2015 Hi, I dont know... everything seems to be OK... Try : - Call the model directly whithout variables : ...->pobierz_gdzie( 'wolontariusze', array ( 'sekcja' => 'GAMEROOM' ), 'LIDER GAMEROOM' ); - Initialize parameters in the model : public function pobierz_gdzie( $tabela = '', array $warunek, $lider='' ) RE: The problem with the transmission of the value of the variable in the model - vertisan - 02-26-2015 (02-26-2015, 09:21 AM)aurelien Wrote: Hi, Second option work, thanks |