News for hackers. Stuff that matters.
Re:Fuel - A simple and flexible PHP Web Framework by Pewpewarrows on Sunday April 10, 2011 @10:39AM (#2429528)
If the developers are reading this: please for the love of god get a real view/templating engine in there. While you certainly _could_ use raw PHP for your views, it opens up a lot of security concerns and just doesn't have a lot of the features you'd come to expect when coming from other frameworks.

Go look at something like Twig (http://www.twig-project.org/) from the Symphony devs. That's step one I would take before using your project, is to hack it to use Twig templates instead of your views.

Re:Fuel - A simple and flexible PHP Web Framework by dhorrigan on Sunday April 10, 2011 @11:19AM (#2429604)
And you can't simply throw the Twig classes in app/classes why? Oh ya...no reason. Why should we lock people into a specific templating system? We are working on something for v1.1, but it will still not be core...it will be a package.

You could add Twig into Fuel in the time it took you to write that comment.

Re:Fuel - A simple and flexible PHP Web Framework by datasink on Sunday April 10, 2011 @01:05PM (#2429861)
I've been using Fuel for a number of weeks now, and I'm generally really liking it. I agree with the Twig recommendation though, and did drop Twig in almost immediately.

To answer your question specifically: it would be smart to use Twig by default, rather than developing your own custom Fuel template engine, because you would need to spend a significant amount of time to get something with the same feature-set, build quality and documentation coverage. Would this time not be better spent elsewhere?

As a pretty content Fuel user, I should also mention that your tone doesn't benefit the project.

Re:Fuel - A simple and flexible PHP Web Framework by Pewpewarrows on Sunday April 10, 2011 @03:14PM (#2430169)
Sure, and you could provide zero abstractions to the database (with an ORM) and tell people to grab their own library. For one of the core pieces of MVC, I would hope that you'd actually develop into the V part more.

Your replies to any not purely positive comments or criticism in this thread or elsewhere come off as very abrasive and rude by the way: not the kind of attitude HN expects and is certainly not the way to attract more of a community.

Your framework looks very neat and I'm interested in seeing what it turns into in the coming months/years: don't spoil your reputation before you even leave the gate.

Re:Fuel - A simple and flexible PHP Web Framework by jschreuder on Sunday April 10, 2011 @10:43AM (#2429541)
There will be a Parser lib in v1.1 which will allow you to plugin pretty much any templating engine. Also you won't need to "hack" anything to use Twig with Fuel, the Views aren't loaded when not used. Just use Twig to create your HTML output.
Re:Fuel - A simple and flexible PHP Web Framework by philfreo on Sunday April 10, 2011 @10:42AM (#2429536)
Sidenote I guess, but the variables in the templates are automatically HTML-escaped.