News for hackers. Stuff that matters.
Re:Show HN: Rails-Inspired PHP Framework by danso on Monday April 08, 2013 @02:59PM (#5513723)
Out of curiosity, but is there a design-reason why the controller names are tied (by naming convention) to HTTP convention?

i.e.

    public static function show_GET($params=null) {	
	self::render('show',array("layout" => "default"));
    }

    public static function index_POST($params=null) {
	self::redirect('/auction/show');
    }
As opposed to how Rails does it (controllers are defined in their own file and associated with a HTTP protocol in a routing file): http://guides.rubyonrails.org/routing.html

in routes file:

     get 'photos/show'
in controller: photos_controller.rb

    class PhotosController < ApplicationController
       def show
          # render stuff
       end
    end

Seems like it's an unnecessary coupling (also, I think in Rails, you don't have to define protocol unless you feel it's explicitly needed), but my main nitpick was seeing a naming convention that featured the kind of letter-case-changing that has made PHP a difficult language to enjoy
Re:Show HN: Rails-Inspired PHP Framework by mgauthier on Monday April 08, 2013 @03:01PM (#5513739)
This was a short term approach. The plan is to get to a routing file approach.
Re:Show HN: Rails-Inspired PHP Framework by danso on Monday April 08, 2013 @03:13PM (#5513810)
Ah good to know. Wasn't being completely snarky...I'm interested in how the difference between Ruby/PHP imposes different constraints/style in how opinionated the framework can be. Good luck!
Re:Show HN: Rails-Inspired PHP Framework by mgauthier on Monday April 08, 2013 @03:32PM (#5513948)
Thanks!