Welcome Guest, Not a member yet? Register   Sign In
File manager with icons
#5

[eluser]sheri.nust[/eluser]
And
go to link for CI documentation

http://ellislab.com/codeigniter/user-gui...pflow.html

first have a good understanding of CI application Flow.

You shouldn't call your Model function directly within your View.

Rather you have to call through your controller function.

In your controller function

function index($extension)
{
$iconImage=$this->Ficheros_model->getExtIcon($Imgname);// $Imgname or whatever you want to pass
}

And use this in your View

<img src="&lt;?=$iconImage?&gt;" alt="Icono" class="icono"/>


Messages In This Thread
File manager with icons - by El Forum - 09-28-2009, 03:59 AM
File manager with icons - by El Forum - 09-28-2009, 06:41 AM
File manager with icons - by El Forum - 09-29-2009, 02:04 AM
File manager with icons - by El Forum - 09-29-2009, 02:33 AM
File manager with icons - by El Forum - 09-30-2009, 11:46 PM
File manager with icons - by El Forum - 10-01-2009, 12:49 AM
File manager with icons - by El Forum - 10-01-2009, 02:52 AM
File manager with icons - by El Forum - 10-01-2009, 05:22 AM
File manager with icons - by El Forum - 10-01-2009, 05:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB