09-22-2009, 02:11 AM
[eluser]Gazzhop[/eluser]
Solved! thanks, I have another question:
in /var/www/html I have two sites main and the CMS.
I have created a form and want to dump out the images in the main site's image folder into options (so they can be assigned).
But when I use
view
I get no options, what have I done wrong?
Solved! thanks, I have another question:
in /var/www/html I have two sites main and the CMS.
I have created a form and want to dump out the images in the main site's image folder into options (so they can be assigned).
But when I use
Code:
$this->load->helper('directory');
$pics = directory_map($_SERVER['DOCUMENT_ROOT'] . "/MAIN/images";
$this->load->view('Assign', 'pics'=>$pics);
view
Code:
foreach($pics as $row){
print "<option value='" . $row . "'>" . $row . "</option>";
}
I get no options, what have I done wrong?