Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-13 Thread Paul M Foster
On Mon, Feb 13, 2012 at 09:01:03AM +0100, Simon Schick wrote: > Hi, Paul > > I personally pretty much like the idea of auto-loaders, but that's a > personal point of view. > If you have always develop with scripts having autoloaders you'll hate to > write a *require_once* command at the beginning

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-13 Thread Simon Schick
Hi, Elbert I personally would remove the set_error_handler completely. This is a configuration that the administrator has to handle himself. In a development-env they want to see all errors, warnings etc, yes - even a strict_notice. But in a production-env they dont want to show anything to the us

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-13 Thread Simon Schick
Hi, Paul I personally pretty much like the idea of auto-loaders, but that's a personal point of view. If you have always develop with scripts having autoloaders you'll hate to write a *require_once* command at the beginning of all files. And what would a dependency-injection-container be without a

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-12 Thread Benjamin Hawkes-Lewis
On Sun, Feb 12, 2012 at 11:36 PM, Paul M Foster wrote: > The more I've thought about it since then, the more I've considered it a > Good Thing(tm). It makes troubleshooting existing code a whole lot > easier. I don't have to wonder what the autoloader is doing or where the > files are, on which th

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-12 Thread Paul M Foster
On Mon, Feb 13, 2012 at 09:24:38AM +1100, Elbert F wrote: > Hi Simon, > > I think you're right that I may be abusing the constructor a bit. I'm going > to follow your suggestion and split it up into smaller functions. I'm also > thinking of moving the set_error_handler and spl_autoload_register >

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-12 Thread Elbert F
Hi Simon, I think you're right that I may be abusing the constructor a bit. I'm going to follow your suggestion and split it up into smaller functions. I'm also thinking of moving the set_error_handler and spl_autoload_register functions to index.php where Swiftlet is bootstrapped so they can be c

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-12 Thread Simon Schick
Hi, Elbert I've looked through the code and found it quite tiny. I like that. Until now I found some things that I'd like to discuss with you: In the class App you're doing all the stuff (routing, calling the constructor aso) in the constructor. Would it not be better to have separate functions