CodeIgniter Forums

Full Version: Best way to lay out MVC for a search engine
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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!