Welcome Guest, Not a member yet? Register   Sign In
Best way to lay out MVC for a search engine

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

Theme © iAndrew 2016 - Forum software by © MyBB