• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best Method to Create CI Page Directory Viewer?

#1
I am using CI 3 and need to create a page that displays the contents (i.e., files and folders) of a directory on the file system. I am using Windows with IIS 7.5. I am relatively new to CI so keep that in mind. Any information will be greatly appreciated.
Reply

#2
Create a controller and views for it, the controller will go in ./application/controllers
and the views will go in the ./application/views directories.
What did you Try? What did you Get? What did you Expect?

Joined the CodeIgniter Community in 2009.          ( Skype: insitfx )
Reply

#3
(01-08-2018, 05:10 PM)InsiteFX Wrote: Create a controller and views for it, the controller will go in ./application/controllers
and the views will go in the ./application/views directories.

Thanks for the response. I know how to set up a new page using the MVC architecture, but I need a solution for creating a page that displays the folder on the file system for a user to view and download. Displaying the folder tree (js/jquery) and combining with CI php is what I need help with.
Reply

#4
This is one of the nest jQuery Tree Plugins out there.

Has very good documentation etc;

jsTree
What did you Try? What did you Get? What did you Expect?

Joined the CodeIgniter Community in 2009.          ( Skype: insitfx )
Reply

#5
You can make all View page in views Directory in given folder.
Also you can manage all pages as per controller name
Suppose you are using user controller than you can make user Directory in views folder and add all views in this Directory for user controller
Reply

#6
(01-08-2018, 09:15 PM)InsiteFX Wrote: This is one of the nest jQuery Tree Plugins out there.

Has very good documentation etc;

jsTree

Thanks!  I think this is the best solution.  
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
2 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.