I know YII supports various databases, but with the current project I am working on, YII won’t be connecting to conventional database. Checking if a username is valid and even registering a new user is done via a REST API.
As a noob to YII, please help me understand:
- Can YII be set up to use my custom rest api?
- Will commands like $model->validate() work if it’s not really talking to a conventional database?
Any advice would be greatly appreciated.
Yes, there is an active resource extension that serves this purpose. it behaves like conventional active record, but instead of using a relational database it uses a restful end.