Hello all,
I am completely new here. I begin my first project in Yii. After reading both Yii books I have a question left about my project I want to start.
The program I am going to build requests items from an API. Because the API calls are limited, I cache the items in a MySQL database.
The question is. Should I have two models one for the API access functions, and one for MySQL? I know the latter do I have to create for sure. I am just unsure about the API functions.
Do I place the code for the API in the controller, or just create the Model for it?
Thanks!