File manager with icons |
[eluser]rafabayona[/eluser]
[quote author="sheri.nust" date="1254393984"]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="<?=$iconImage?>" alt="Icono" class="icono"/>[/quote] Oops, I haven't seen this post, sorry! Thank you for the advise, but I need an icon for each file. I show 30 files per page. Maybe making a helper? |
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
|