• posted 2½ years ago

    PHP Reflection class: a gem I found

    Narcissistic EagleIn developing my own mash-up of a framework, drawing inspiration from a lot of different areas, I ran into an interesting hurdles.

    Since my framework is MVC based, I ran into a problem whereby calling an action/method in a controller should only be fulfilled if the number of parameters passed in was valid. So for example, if I was dealing with a user's model, and I wanted to return the email address for the user, I would normally access it via a url pattern such as: http://www.website.com/users/details/email/
    read