On 03/12/2010 19:10, Matthew Weier O'Phinney wrote:
-- Mike A<[email protected]> wrote
(on Friday, 03 December 2010, 06:07 PM +0000):
I noticed documentation included with ZF 2.0.0dev1 contains old
quick start naming conventions. No namespaces for example.
Are there any references for starting a ZF 2.0 project? Have Goggled
with little success. Trying to save some time with such things as
namespace usage, class renaming and the like.
No, not yet -- because we're just now working on the MVC milestone, and
it doesn't make sense to do a ZF2 QuickStart until we know what the MVC
will actually look like.
In the meantime, just convert your code 1:1 from vendor prefixes to
namespaces in your ZF1 app, and it *should* work. No guarantees, however
-- and I'd recommend grabbing the latest code from the git repo to be
safest. :)
A walking skeleton didn't work. Took a working basic set-up, converted
namespaces and hey presto - failed on Bootstrap class!
How would a conventional ZF v1.11.1 application bootstrap class convert
to v2.0 in cases where there are plugins from a home-brew library?...
Old:
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap{...
New:
namespace Zend\Application;
namespace PMSv0x2\Action\Helper;
class Bootstrap extends Bootstrap
{...
I note v2.0 Bootstrap object extends AbstractBootstrap so figured it was
the right class to call. However, I get varying exceptions depending on
how I set namespaces: like "Cannot redeclare class
Zend\Application\Bootstrap in
E:\xampp1.7.3\xampp\MAtemplatev-ZF2-1x2-svr\Bootstrap.php on line 14";
"Fatal error: Class 'PMSv0x2\Action\Helper\Bootstrap' not found..." and
abstract class Bootstrap must be declared abstract or implement methods.
Keen to spend time on this but need a jump start.