MVC Love

I started using frameworks about four years ago upon being introduced to Spring in a Java shop. At first it felt like that ill fitting pair of pants. What it did though was change how I looked at my PHP development. I built the content system behind this web site using the CodeIgniter framework. As a home grown solution, it does not have all the bells and whistles that larger content systems offer. I kind of like that. With my goal of writing more posts however I saw that I needed to add a hyperlink to the blog posts titles and call a new get by post id method.

No problem because here is where frameworks, let alone OOP, shine. All I had to do was take a quick look at my get by tag controller and model methods. Since I am using a view structure with a main page view and a by area of site content view all I had to do was add the post id to the controller passing the blog content. Then add a link tag around the blog header to the new get by post id method. In less than 13 minutes I had the links on my page. With testing 25 minutes.

Posted in php

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Activity

  • Weight Training
    On February 21, 2018 4:53 pm rode 0.00 mi. during 00:20:00 hours climbing 0.00 ft.
  • Afternoon Run
    On February 20, 2018 3:43 pm rode 3.56 mi. during 00:35:29 hours climbing 144.03 ft.
  • Workout
    On February 17, 2018 4:43 pm rode 0.00 mi. during 01:30:00 hours climbing 0.00 ft.
  • Afternoon Walk
    On February 15, 2018 4:59 pm rode 1.40 mi. during 00:30:00 hours climbing 0.00 ft.
  • Afternoon Run
    On February 14, 2018 1:32 pm rode 3.78 mi. during 00:40:07 hours climbing 168.64 ft.
  • Afternoon run
    On February 12, 2018 5:22 pm rode 3.20 mi. during 00:30:00 hours climbing 0.00 ft.