CodeIgniter Forums
confused about models - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: confused about models (/thread-51865.html)



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