Recording drop down box on model |
Hello,
A PHP Error was encountered Severity: Notice Message: Undefined variable: options Filename: models/Mpages.php Line Number: 273 Backtrace: File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\companygiondaci\application\models\Mpages.php Line: 273 Function: _error_handler File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\companygiondaci\application\controllers\Cpages.php Line: 525 Function: add_user File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\companygiondaci\index.php Line: 315 Function: require_once models/Mpages.php PHP Code: Line 273: 'role' => form_dropdown('roles', $options, 'administrator') controllers/cpages.php PHP Code: public function addusers() { views/addusers.php PHP Code: <div class="row-fluid"> models/Mpages.php PHP Code: public function add_user() 1) How to by pass the $option to the model so that it could read what is $option ? 2) After I press submit button then the next textbox turns small instead of big like the previous one. Why is it ? And how to control the textbox so that it remains on the same size even after I press the submit button ?
" If I looks more intelligence please increase my reputation."
And what does undefined variable mean?
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
I thought this is the definition:
PHP Code: $data['options'] = array(
" If I looks more intelligence please increase my reputation."
In your model if form false I would run data again and only use two equal == and don't for get to set_rules http://www.codeigniter.com/user_guide/li...pping-data
PHP Code: function something() { Another controller way is this PHP Code: function something() { Model PHP Code: public function add_user() { On view Code: form_dropdown('roles', $options, 'administrator')
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Welcome Guest, Not a member yet? Register Sign In |