CodeIgniter Forums
first project no db, no form, just JSON, MVC and router - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: first project no db, no form, just JSON, MVC and router (/showthread.php?tid=69359)



first project no db, no form, just JSON, MVC and router - jaiunci - 11-09-2017

Hi,

I read and watch some stuffs about CI.
For a tiny project I need to work with a JSON as my database (in read-only).
This is not a blog in json but very similar (view all, view one…) .


How to structure this project, any similars code ?

the fake json

http://jsoneditoronline.org/?id=97bf37f98882b64069c0d595c55d392c
Code:
{
 "articles": {
   "first-post": {
     "title": "first post",
     "body": "first lorem ipsum"
   },
   "second-post": {
     "title": "second post",
     "body": "second lorem ipsum"
   }
 }
}