Zend Framework - Resources
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
I am working with Zend right now on making the Front Controller work with or without mod_rewrite and the Router optional. There should be some changes coming up in the next release.Jenk wrote:oh well.. the Zend dream is over for me, for now at least.
Can't use it, soley because of that.
The includes are all coded relatively, so class Zend_This_Class is in file Zend/This/Class.php. All the includes within the framework code use relative paths. The core Zend Registry is also __autoload compatible.Jenk wrote:Also another gripe - why does it demand you must have the Zend libraries in include_path? Curious as to why they didn't just code their includes relatively, or 'hardcoded' with the use of realpath and __FILE__ etc.
(#10850)
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Well ... you are reading documentation for software that essentially Alpha quality and still in flux somewhat. I can't think if any PHP software that has as good of documentation as ZF does this early on. That does not necessarily mean that ZF's code will meet expectations, but it does indicate that it will probably have solid documentation.Jenk wrote:Then the note "must have the library directory in pnp's include_path ... " is redundant?
(#10850)
I'm just ranting, not necesarilly criticising Zend, so don't take offence 
btw - any got a simple dictionary of terminilogy?! I'm reading through, for example, the controller class and seeing I need to register dispatch tokens and routers etc. etc.. just what are they?! do they have alternative names that I might have heard of before (patterns?)
btw - any got a simple dictionary of terminilogy?! I'm reading through, for example, the controller class and seeing I need to register dispatch tokens and routers etc. etc.. just what are they?! do they have alternative names that I might have heard of before (patterns?)
http://framework.zend.com/manual/en/zen ... ng-process
That page explains exactly what those things are... I apologize if that's what you're looking at already, but those definitions make perfect sense to me.
That page explains exactly what those things are... I apologize if that's what you're looking at already, but those definitions make perfect sense to me.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
They are just as they say they are... 
A token...is a unit which typically cannot be broken down any further...
When parsing PHP code for instance...a code block consists of several high level tokens...likely made up of statements and constructs, etc...
Statements can be tokenized into keywords, expressions, etc...
expressions can be tokenized into operators, etc...
A token is the smallest token, so when writing a character based parser, a single character would be a token...a word parser...a single word would be a token...in PHP...it's more complex...as keywords are tokens...but so are braces, etc...
That is my concept of tokens anyways...but as you can see...they have different meaning under different contexts...
Usually when routing or dispatching tokens...I would assume a token is a message...and routing or dispatching are the actions executed on the token, for the token, etc...
Cheers
A token...is a unit which typically cannot be broken down any further...
When parsing PHP code for instance...a code block consists of several high level tokens...likely made up of statements and constructs, etc...
Statements can be tokenized into keywords, expressions, etc...
expressions can be tokenized into operators, etc...
A token is the smallest token, so when writing a character based parser, a single character would be a token...a word parser...a single word would be a token...in PHP...it's more complex...as keywords are tokens...but so are braces, etc...
That is my concept of tokens anyways...but as you can see...they have different meaning under different contexts...
Usually when routing or dispatching tokens...I would assume a token is a message...and routing or dispatching are the actions executed on the token, for the token, etc...
Cheers
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Applications built with the Zend Framework
I've been using Astrum Futura as an example and learning how to write an application with the Zend Framework by studying it, but one application is not enough, and it isn't finished. Does anybody know of a good application built on ZF that I can study? Or even better, multiple apps I can study? 
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
It's barely even started - leaving the heavy work until ZF 0.9 so until then it's largely about layout, design, and a little bit of experimentation. 
I would hazard there are few applications in open source that are a) complete and b) synced with the current releases. It's hard to keep the software updated after each revision. Yes, you can shift around the API, but just doing that means you lose the advantage of *why* the API changed - usually incremental feature improvements or plain new features. I know Zend_Log is seeing a major revision, so if you use the current version you might wind up needing to restructure how you use and take advantage of it.
As Bill Karwin notes on the mailing list - post 1.0 will see a stronger effort focused on providing examples, tutorials, and test applications. Until then those of us using the ZF are only using it in small apps, or simply keeping pace with an application scaffold (like AF largely is) in readiness for the magical 1.0 go-ahead signal.
I would hazard there are few applications in open source that are a) complete and b) synced with the current releases. It's hard to keep the software updated after each revision. Yes, you can shift around the API, but just doing that means you lose the advantage of *why* the API changed - usually incremental feature improvements or plain new features. I know Zend_Log is seeing a major revision, so if you use the current version you might wind up needing to restructure how you use and take advantage of it.
As Bill Karwin notes on the mailing list - post 1.0 will see a stronger effort focused on providing examples, tutorials, and test applications. Until then those of us using the ZF are only using it in small apps, or simply keeping pace with an application scaffold (like AF largely is) in readiness for the magical 1.0 go-ahead signal.
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
Just remembered that somewhere on the wiki are a list of applications using the ZF. Not sure how many are open source though...
http://framework.zend.com/wiki/pages/vi ... geId=14134
http://framework.zend.com/wiki/pages/vi ... geId=14134
-
zfdeveloper
- Forum Newbie
- Posts: 3
- Joined: Fri Feb 23, 2007 7:59 am
- Location: Romania
Related to Zend Framework Resource i would say to take a look here:
Zend Framework Tutorials
Zend Framework Forum
Zend Framework Tutorials
Zend Framework Forum
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
When initially starting the Zend Framework I found the Akrabat Zend Tutorial useful. Will probably take a short while until it is up to the latest version though. Besides that I have found both the Zend Framework manual and also this forum
very useful.