How to increase Zend Framework learning speed?

后端 未结 9 952
再見小時候
再見小時候 2021-01-30 01:29

A preamble: I\'ve been using PHP for over 8 year every now and then, but never used a framework, only wrote scripts and addons. Mostly I used code generators like CodeCharge Stu

相关标签:
9条回答
  • 2021-01-30 01:39

    I'm in your exact situation right now (just less years with php :P)

    Currently i'm using Zend FrameWork in action as reference and for what i've seen till now it's pretty easy to reuse your structure from old jobs. Once you've setted up your preferred options and tree structure you can reuse it over and over.

    So I think that it's better not rely to third party generators and create your own skeleton. In this mode you will be much more comfortable with the code structure, and you'll have better code's grasp.

    0 讨论(0)
  • 2021-01-30 01:40

    There is a good german book, you can find a starter app in an archive on this site and study the code: http://www.zend-framework-buch.de/

    0 讨论(0)
  • 2021-01-30 01:46

    If you're already acquainted with MVC and design patterns, then why not look into tools to helps you code faster?

    Although I generally like free tools, I must say using Zend Studio IDE (based on Eclipse) helps going faster (30-day free trial).

    The main points (apart from the debugger/profiler):

    • it can generate a skeleton for MVC applications
    • default code skeletons for basic bricks (controllers, views, models)

    and -last but not least-

    • auto-completion for all Zend classes (and you can Ctrl+click through the classes names to open them). Very convenient I must say.

    Just make sure to have a computer with a whole lot of memory!

    0 讨论(0)
  • 2021-01-30 01:51

    Akra's DevNotes has a great tutorial that creates a sample application:

    http://akrabat.com/zend-framework-tutorial/

    This is where I started working with the ZF.

    0 讨论(0)
  • 2021-01-30 01:53
    • for basic site, just follow the QuickStart;
    • more advanced stuff, e.g. on http://devzone.zend.com/ or http://www.zftutorials.com/

    Using framework means, that you're not going to have to do all of that tedious repetitive stuff.

    0 讨论(0)
  • 2021-01-30 01:56

    As I understand there are repetitious tasks that take a lot of time.

    This is true, and as you stated, just about every website has a registration process and the like. While I agree that implementing such features over and over again can be repetitive, to some extent, each application will have its own unique set of requirements - meaning there will be at least a little customization work involved, even if you're reusing code from an older ZF-based project. I will now have a bash at answering your numbered questions

    Do you, Zend developers, use some kind of prototypes you've written to roll out a basic site quickly?

    Not really. I would not choose the ZF for a 'basic' site, nor would I use any MVC framework. My current assumption is that a basic site consists of about 8 to 12 separate parts, with no really special functionality, and finite requirements. Remember that once we say 'framework', there is almost always a noticeable performance hit, in addition to whatever bugs and issues which might be inherent within that framework. The 'prototypes' you speak of would be in the classes available within the Zend Framework, for example, Zend_Auth for creating a fully featured authentication system in about 15 minutes.

    2) Or are there some site source codes to be built upon already available?

    Probably, though I have to say, my worst nightmare would be having to support an application built on some kind of framework that wraps another framework. Image how much fun debugging it would be. Imagine how much fun teaching someone to support it would be. You're already using a framework, let's not get greedy now.

    3) Is there some app generator or minor tool for pages with grids, records etc?

    I'm not quite sure what you mean by this, but if I had to chance a guess, perhaps Zend Studio?

    0 讨论(0)
提交回复
热议问题