> By Initializer.php, do you mean a front controller plugin that calls
> bootstrap functions? This is how I do mine:
> the plugin class:
> http://code.google.com/p/mz-project/source/browse/trunk/library/Mz/Bootstrapper.php
> bootstrap:
> http://code.google.com/p/mz-project/source/browse/trunk/demo/app/bootstrap.php
> (I include this in my index.php and call run().)
>
> It doesn't really demonstrate any benefit over the conventional way though.
> Maybe one benefit is that you can include the same bootstrap file in PHPUnit
> or Doctrine and call only the functions they need.
>
> -- Mon
Thanks - this is very similar to what I'm looking for. The only
difference is that your front controller plugin isn't using the format
presented in the Zend Studio for Eclipse 6.1.1 default project. As I
understand it, this new format is going to be the defacto standard, so
I'm trying to make sure that I'm using it. I can send you a copy of
it, if you'd like. You'll probably be able to figure out where
everything fits better than I, since you obviously have a lot more
experience working with the framework.
-Ed
没有评论:
发表评论