Tuesday, August 31, 2010

FIle system - joomla way

Here is a simple document about file system packages and functions in joomla.
It has almost all the functions which deals with file system in joomla way. Also
has an example of file uploading and reading !!

How_to_use_the_file system_package


Just to upload and display set of images
1. create a new folder using 'media manager' and upload set of images
2. write this code where you want them to get displayed

if(JFolder::exists($imagesfolderpath)){
$opimages=JFolder::files($imagesfolderpath, $filter = '.', $recurse, $fullpath , $exclude); // check above link for more info
}
foreach($opimages as $key=>$opimage){
--- display using image tag ---
}

No comments:

Post a Comment

Saving agility from scrum: Accelerate book summary

Recently, I came across a post in our internal developer channel on shortcomings of scrum which they were facing in their project. Scrum ...