File Manager and Dashboard help

Permalink
Hello, I am developing a package for a client (first time in C5) and i have a dashboard single page system, my first question is how to make it OOP as in using a controller to controll which php file to render depending on the page the user clicks all this has to happen in the admin area on the dashboard. Then my 2nd question is how to implement some of C5 features like the File Manager, for instance i want to use the C5 file manager for the image. The application i am building is a eCommerce system. Could someone please help me out!

codecube
 
uzer replied on at Permalink Reply
Regarding your second question, I believe in your php you can add something like:

$al = Loader::helper('concrete/asset_library');
echo $al->file('image', 'fID', 'Choose File');


to render a file selector.
codecube replied on at Permalink Reply
codecube
Thank you soo much, this worked!! Now how would I then get a list of images selected from the File Manager and then later render the actually image for frontend use?
JohntheFish replied on at Permalink Reply
JohntheFish
Have a look at
http://www.concrete5.org/marketplace/addons/list-files-from-set/...

And in the associated addon forum pages.
codecube replied on at Permalink Reply
codecube
Thank you, it worked, but now how do i use this information once i selected the photo, for example how would i get the image id so to speak and then run some php code and database this image, and then later recall this id to display the phot?