CodeIgniter Forums
Best way to lay out MVC for a search engine - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Best way to lay out MVC for a search engine (/showthread.php?tid=53168)



Best way to lay out MVC for a search engine - El Forum - 07-13-2012

[eluser]Unknown[/eluser]
- retrieves JSON files from separate search engines
- user can select to view individually or combined in any combination (engine 1+2, engine 2+3, engine 1+3, engine 1+2+3)
- it would be nice but not essential if the search could be run directly from typing in a URL such as (search/engine/query/numberofresults/ so the user wouldn't even need to load the homepage

I'm a bit unsure about best to way to lay this out. Ideas include:

1. include everything in controller function index and use if/else statements to retrieve the correct JSONs
2. separate controller functions and call them individually there, not sure if this is even possible?
3. use models to retrieve JSONs

Newbie to CI and PHP, please help!