• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dropdown default value

#4
[eluser]Ninja[/eluser]
Anyway i found a solution to this problem I just needed to add the extra elament to the array like such

Controller
Code:
$data['parent'][0] = 'Not Applicable';
            foreach($client->all as $entry)
            {
                $clientID = $entry->company_id;
                $entry->company->get('companyname');
                $companyName = $entry->company->companyname;
                $data['parent'][$clientID] = $companyName;    
            }


Thanx to everyone who helped it is highly appreciated


Messages In This Thread
Dropdown default value - by El Forum - 07-17-2009, 12:17 AM
Dropdown default value - by El Forum - 07-17-2009, 04:26 AM
Dropdown default value - by El Forum - 07-17-2009, 04:38 AM
Dropdown default value - by El Forum - 07-17-2009, 04:42 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.