Simple Blog is a multi-part series. Check out The Index
Please remember, this is NOT a tutorial about rolling your own blog. This series is about exploring different PHP methodologies to solve the same problem so that we can compare and contrast the pros and cons of each approach. The application we’ll be developing over and over again throughout this series is a simple blogging app that allows the user to create, read, update, and delete blog posts stored in a MySql database. Here’s a quick rundown of the end-result.
The index page pulls all posts from MySQL and displays them as HTML:
- The programming styles used; in this case CodeIgniter.
- Link to create a new blog post.
- Link to read a single blog post.
- The blog post’s content and date created.
The read page pulls a single blog post from MySQL and displays it as HTML:
- The blog post’s title, content, and date created.
- Links to update or delete the blog post.
And, finally, the create and update pages accept user input, which is sent to MySQL to create new blog posts or edit existing ones:
- Textbox for blog’s title
- Textbox for blog’s content
- Button to submit the form and create/update a new post.
Simple Blog’s very basic Data Model.
Simple Blog – Data Model