Wednesday, September 9, 2026

HTTP Caching setup



https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching#Cache_validation

https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html

http://www.web-caching.com/mnot_tutorial/

https://tools.ietf.org/html/rfc7234

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control

https://developers.google.com/speed/docs/insights/LeverageBrowserCaching

https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching


Bug-Hunt Days May 2011 Anouncement!

A new Bug-Hunt days are coming. On 26th, 27th and 28th - join the team of best PHP developers in magnificent quest of resolving Zend Framework bugs and issues.

For each first-time bug hunter it is recommended to view "The list of all Zend Framework open issues" and joining the IRC channel #zftalk.dev on Freenode.

You can read the detailed information about participating in Zend Farmework bug-hunt days and if you will close a lot of bugs you will win a valuable prizes.

Happy hunting!

Zend Framework core developers update

We had couple ZF code developers changes during last 1-2 months that worth to be mentioned.

Alexander Veremiev is not in the official Zend Framework development core team any more, but will still support the development as community member.

Anyway we have a new core developer introduced by Matthew Weier O'Phinney last month. Enrico Zimuel worked for Zend for several years as a consultant for companies that use PHP solutions.

You can find more information about Enrico on his personal blog: http://www.zimuel.it/blog

Welcome on board!!

Got an idea? Create a Zend Framework proposal!

If you have a brilliant idea about the component, that should be a part of Zend Framework, you can create a proposal for that. After successful discussion and community prove - your proposal can be accepted for implementation.

Zend Framework is a community driven project and people (that has signed CLA) can contribute their ideas. Sometimes developers ask "how to prepare a documentation framework proposal?". Well, its very easy and takes only few steps:
  1. New. Write a proposal according to proposal requirements.
  2. Ready for review. Announce your proposal for community at mailing lists and IRC #zftalk.dev, to start a discussion. Don't forget to answer in comments to explain everyone why this component is important.
  3. Ready for recommendation. If your proposal was accepted by community, you have a lot of positive comments and adapted you proposal according to the recommendations of community members you can move it to review by Zend Framework Community Review Team (rc-team).
  4. Implementation! Implement your proposed component. Rc-team will guide you during next few steps to deliver your component to trunk and release.
The detailed information about creating of your proposal and moving it to implementation can be found on Zend Framework development Wiki in Proposal Process article and Proposers Wiki section.

Underscore templates usage

Effectively serving static content with nginx

Building Apache Cordova on Ubuntu 14.04

I was receiving the number of errors trying to build Apache Cordova project for Android platform. The main issue was due to ussage the following construct in bash script "create"

# we do not want the script to silently fail
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap on_error ERR
trap on_exit EXIT

it shows the error of next executed command but not the original one that produced the error.

For example it showed the error:

An unexpected error occurred: [ ! -e "$BUILD_PATH"/framework/libs/commons-codec-1.7.jar ] exited with 1


But originally the problem was with previous command:
$ android update project --target 17 --path /home/joseph/android-sdk-linux_x86/cordova/cordova-android/framework

Because of incorrect target platform inserted here.

It just exatract the maximum possible platform available out of your android SDK with the following command:
$ android list targets | grep id: | tail -1 | cut -f 2 -d ' '



So in order to build the project successsfully you should run
$ android list targets
and make sure you have the platform you need in the list


After removal of all the junk my target looked like:

$ android list targets
Available Android targets:
----------
id: 1 or "android-17"
     Name: Android 4.2
     Type: Platform
     API level: 17
     Revision: 1
     Skins: WVGA800 (default), HVGA, WXGA800-7in, WQVGA400, WVGA854, QVGA, WQVGA432, WXGA720, WSVGA, WXGA800
     ABIs : armeabi-v7a, mips


OK, now I was able run build but it still throwed an errors.

I tried to build cordova manually by entering the frameworks directory

$ cd ./framework
$ android update project -p . -t android-17
$ ant jar

sudo update-alternatives --config java


JAVA_HOME=/usr/lib/jvm/java-7-oracle/jre/
./bin/create /home/joseph/workspace/RoadTripCosts com.ChervoneMobile.RoadTripCosts RoadTripCosts

SQL Parser fo Zend Db

Fount intresting parser written by NEUMANN-RYSTOW François and shared on PHPClasses here 
http://phpclasses.toperz.pl/browse/file/24895.html

Another interesting solution
http://phpclasses.toperz.pl/package/5007-PHP-Parse-and-compose-SQL-queries-programatically.html

Looks wonderful
http://www.tehuber.com/article.php?story=20081016164856267


Fund also PEAR package
http://pear.php.net/package/SQL_Parser
but it is not maintained anymore


The easiest parsing method ever
http://marc.info/?l=php-general&m=105171856902152&w=1


Zend Framework 2.0 stable release

Finally after all these years I'm glad to announce the Zend Framework 2.0 stable release. It is still not ideal but as we have stable release now - we can start polishing it and try and use it for our needs.
Congratulations to everyone!

Zend Mail 2.0 to be delivered for upcoming ZF2 beta2

The work under new Zend Mail 2.0 component has been started recently. Matthew Weier O'Phinney created the architectural outline of proposed object relations and interactions. That document can be found under following Wiki page: "RFC - Mail Refactoring"

Mail goals that should be addressed in new Zend Mail component are:
  • handing of mass messaging
  • better separation between message handing and transport
  • improved MIME-types encoding and Unicode support
  • more intuitive handing of attachments and custom message headers
Feel free to provide your comments under the appropriate Wiki page according the proposed architecture.

Revised version of Zend Mail 2.0 is planed to be delivered for upcoming Zend Framework 2 beta2 release.

Zend Framework 2 MVC brainstorm

During next 4 weeks everyone can contribute ideas according ZF2 MVC requirements and architecture on the Zend Framework MVC requirements brainstorm page. As it was stated by Matthew Weier O'Phinney, the main idea is to finally come up with a concrete list of deliverables for the ZF2 MVC.

Feel free to give your comments and join discussion on mailing lists, IRC and Wiki.

Bug-Hunt Days March 2011 started!

Ralph Schindler announced Zend Framework Monthly Bug-hunt Days for 24-25-26 March. See detailed announcement in the news section on Zend Developers Network website.

Such event is organised every month to reduce the amount of open issues we have in ZF issue tracker.

Everyone can participate in the event and even win the priceless presents like Zend Framework T-shirt!

Why its important to participate in bug hunt days? well... you can:
  • communicate with the best PHP developers in the world;
  • improve the code base  you use everyday in your work;
  • learn Zend Framework internals and increase your QA skills;
  • and finally you will do a great work for all the people from Zend Framework community and that will give you a positive influence on your karma!

So make sure you have a signed CLA, join #zftalk.dev IRC channel and search for the Zend Framework issue you want to resolve.

Zend Framework 2 Coding Standards draft discussion

Zend Framework Project Lead Matthew Weier O'Phinney presented a working draft of Zend Framework 2 Coding Standards.

Here are some outlines from this draft document according the changes we will have comparing to Zend Framework 1.x :
  • For any custom piece of code you should utilise a separate PHP namespace.
  • Namespaces are mapped 1:1 to directories.
  • Underscores "_" will not have a special meaning any more, but possibly still be mapped to directories inside component hierarchy.
  • MixedCase naming convention will be used instead of UPERCASE for acronyms (not a change, but anyway worth mentioning as there were a hot discussion about this)
  • Abstract classes should be prefixed with "Abstract" keyword.
  • Interfaces will not have "Interface" keyword and should be named with nouns or adjectives.
  • Function in global scope is discouraged, its better to define functions in a separate namespace or as a static method.
  • ... and a lot of new staff related to Namespaces...
Note that this document is still in active development and discussion, so nothing is final here and can be changed possibly by you! Just join the contributors mailing list discussion.

Check out Zend Form 2.0 proposal

Matthew Weier O'Phinney published Zend Form 2.0 proposal more than a year ago, but only right now it is the time to start an active discussion about this component.

The main changes that are outlined in current proposal are:
  •  Model-related logic and View-related logic should be separated, so we should have two layers: business (filtering, validation) and presentation (elements rendering, decoration).
  • Simplify form decoration process to make it usable.
  • Move localisation and translation to View layer.

View Zend Form 2.0 proposal and participate in community discussions, as it is time to start our work under this component.

Service Locator and Dependency Injection proposal

As a part of MVC Zend Framework component development there was a Service Locator and Dependency Injection mechanism proposed that will define the way different framework components will be referenced between each other, gain access to the resources and services they need.

Feel free to participate in discussions.

Second life of ZendX JQuery

Benjamin Eberlei - the maintainer of jQuery component for Zend Framework 1.0 discontinues his maintenance of this component for Zend Framework 2.0

"2 years ago I was pretty sure of the Dojo and jQuery components/integration into ZF. I have since changed my mind radically. I do maintained the jQuery component but I would suggest to drop it for 2.0..." - he said.

The main reasons are:

  • It takes more time to write PHP code than jQuery itself.
  • It doesn't let you to reuse JavaScript code, for example by creating your own jQuery plug-in.
  • Its harder to deal with front-end designers that are familiar with JavaScript rather than PHP.
  • Writing of PHP code that generates required JavaScript code is a bad idea in general :)

Benjamin's message started the hot discussion on the contributors mailing-list and #zftalk.dev IRC channel on Freenode.

Here are some pros to continue maintenance of ZendX_JQuery highlighted from  discussions:

  • The ability to dynamically enable/disable jQuery for some specific pages.
  • It simplifies the usage of jQuery UI with Zend_Form form elements (auto-complete, date picker) and AJAX form validation.
  • Please don't drop JQuery support from Zend Framework!!!11 :)

The Project Lead of Zend Framework Matthew Weier O'Phinney said:

"...If you talk to experienced front-end and UI/UX designers,
you'll find that they prefer having plain old semantic HTML served to
them. They will then write JS and CSS to work with that HTML in order to
deliver the final UI.

As such, the various head*() and inline view helpers probably provide
the most value. Any JS integration we have will typically be more
relevant for prototyping or simple sites that do not have many UI needs...
"

And finally I want to finish this post with the words of Ralph Schindler, member of ZF core development team:

"There is a strong use case for keeping Zend_Jquery in the small-project  / sprinkle some Javascript in / just-get-it-done use cases.  That said,  it makes sense to evaluate this again after MVC and forms are done in 2.0.  I am sure we'll have no problem finding someone who loves Jquery enough  to give this component some attention should the community decide to  keep it around."

My own opinion, like it was already mentioned by other participants, is to look at the jQuery integration in ASP.NET MVC3 and move this component development in that direction.

In case you love jQuery enough to bring a second life for its component within Zend Framework feel free to express that for community and take the responsibility of maintenance.

Contributing to Zend Framework for developers from Windows

Alongside with my last post about organisation issues you should resolve in order to contribute into Zend Framework indicated by Matthew Weier O'Phinney on his personal blog, I want to mention the same material but from the technical point of view.

Lets start from the tutorial on how to start contributing to Zend Framework for developers working under Windows described by Thomas Weidner, I18N Team Leader at Zend Framework in his blog.

The main problem is that Zend Framework 2 moved to Git version control system and Windows developers (unlike the Linux ones :P) should become familiar with this new truly brilliant version control system developed by Linus Torvalds to maintain Linux kernel development. Gut become very popular and widely used right now thanks to its distributed nature, efficiency and rich functionality.

So, in short, here are the main points Windows users should know:
  1. Windows has a Git port named "msysgit" and it should be installed first.
  2. To be able to use Git in Windows-way - you can install a special GUI software - "TortoiseGit" from widely known Tortoise* software family.
  3. You need an account at GitHub.com in order to participate and configure your version control software wit the email from ZF jira account.
  4. Clone ZF2 repository, create a separate branch and start contributing!
Read the  rest of detailed instructions in the article for Zend Framework contributors from Window.

Have a good times digging into Zend Framework!

Introducing Zend Framework 2.0

Check out SlideShare Presentation - Introducing Zend Framework 2.0
Quite old presentation but still worth to be published.

MVC interfaces proposal for Zend Framework 2

Project lead of  Zend Framework development Matthew Weier O'Phinney,  introduced new MVC interfaces proposal about a month ago. There were a very active discussion about those changes that should be applied to MVC stack in order to produce new quality solution for ZF 2.0

General ideas within this proposal are:
  • make MVC standardised and easy understandable
  • allow to create custom MVC layers
  • provide simple native MVC implementation
And note that the main point is to provide Interfaces for each component that will allow to extend and replace them with an alternative implementations that will implement the appropriate unified MVC component interface.

Introducing my Zend Framework Development blog

Hi, guys!

My aim is to compile and publish news about Zend Framework development, mailing lists overview, interesting proposals, bug hunting :) and community discussions to popularise contribution and active participation in community development process.

I'm looking into the Zend Framework development since 2007, in 2008 signed CLA and tried to report some bugs and contribute to documentation but with not any huge commitments. Anyway I willing to start participate in ZF community more actively, so hope this blog will help me to keep moving by sharing my experience with others.