CodeIgniter Forums
confused about models - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: confused about models (/showthread.php?tid=51865)



confused about models - El Forum - 05-21-2012

[eluser]ns8814[/eluser]
I am new to both php and codeigniter. I am trying to develop an application for myself, and got confused.

I am trying to setup a simple bit of cose to work on my view.
[code]function getProjectGallery()
{
$imagesize='width=\\\\\\\\"553\\\\\\\\" height=\\\\\\\\"300\\\\\\\\"';
$customerid = $this->uri->segment(3);
$projectimagepath= base_url('images/estimates/'.$customerid);
$directory = $_SERVER['DOCUMENT_ROOT'].'codeignitor1/images/estimates/'."$customerid";
foreach (glob("$directory".'/'."*.jpg") as $filename)
{
basename($filename);
echo "<img