<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description></description><title>Agavi</title><generator>Tumblr (3.0; @agavi)</generator><link>http://blog.agavi.org/</link><item><title>Agavi 1.0.3 released!</title><description>&lt;p&gt;Agavi 1.0.3 has just been released and can be downloaded at &lt;a href="http://www.agavi.org/"&gt;&lt;a href="http://www.agavi.org"&gt;www.agavi.org&lt;/a&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Only very few changes were done since &lt;a href="http://blog.agavi.org/post/466464061/agavi-1-0-3-rc1-released"&gt;RC1&lt;/a&gt;, so I’ll once more leave it to the &lt;a href="http://trac.agavi.org/browser/tags/1.0.3/RELEASE_NOTES"&gt;RELEASE_NOTES&lt;/a&gt; to list the most important changes:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;This maintenance release fixes a number of issues over &lt;a href="http://blog.agavi.org/post/356745670/agavi-1-0-2-released"&gt;Agavi 1.0.2&lt;/a&gt; and features a few minor enhancements.&lt;/p&gt;
  
  &lt;p&gt;Several issues and inconsistencies have been fixed in &lt;code&gt;AgaviNumberValidator&lt;/code&gt; and &lt;code&gt;AgaviDecimalFormatter::parse()&lt;/code&gt;. Parsing behavior is now consistent with the &lt;code&gt;NumberFormatter&lt;/code&gt; implementations of ICU and ext/intl. No integer overflow occurs when checking against min and max values, and the validator accepts non-strings as input. Exporting of the validated value is now possible, in which case the original argument is not mutated. Please note that the “number” validator shortcut definition specifies “int” as the default value for the “type” parameter. No value for “type” will automatically lead to integer or float values, depending on the size of the number in the input string. A cast to the specified type is now automatically performed if no “cast_to” parameter is given.&lt;/p&gt;
  
  &lt;p&gt;All file validators now perform case-insensitive checks against the list of allowed file extensions, which may now also be a parameter array instead of a space-separated list of values.&lt;/p&gt;
  
  &lt;p&gt;This release bumps the minimum required version of Phing to 2.4.0; this was necessary to fix some bugs with the build system that were next to impossible to fix for both 2.3 and 2.4 (which drastically changed some internals structures) at the same time.&lt;/p&gt;
  
  &lt;p&gt;An issue relating to the behavior of DOM in PHP 5.1.12 and PHP 5.2.3 has been addressed. Running Agavi 1.0.3 might be necessary under certain circumstances when using these versions of PHP.&lt;/p&gt;
  
  &lt;p&gt;A couple of minor fixes have been made to the routing; most notably, overwriting of routes in other &lt;code&gt;&lt;ae:configuration&gt;&lt;/code&gt; blocks now always works as expected, even when using implied routes.&lt;/p&gt;
  
  &lt;p&gt;Some default code templates have been updated; most notably, caching configuration files now explicitly disable caching, as otherwise, Actions that do not use a View would be cached automatically.&lt;/p&gt;
  
  &lt;p&gt;The timezone database has been updated to version 2010h.&lt;/p&gt;
  
  &lt;p&gt;For a full list of changes, please refer to the &lt;a href="http://trac.agavi.org/browser/tags/1.0.3/CHANGELOG"&gt;CHANGELOG&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://blog.agavi.org/post/526135505</link><guid>http://blog.agavi.org/post/526135505</guid><pubDate>Fri, 16 Apr 2010 18:05:45 +0100</pubDate></item><item><title>Agavi on the Azure Platform</title><description>&lt;p&gt;The next release of Agavi will have initial support for running applications on the Microsoft &lt;a href="http://www.microsoft.com/windowsazure/"&gt;Windows Azure&lt;/a&gt; platform, as well as a database adapter for the new &lt;a href="http://sqlsrvphp.codeplex.com/"&gt;ext/sqlsrv&lt;/a&gt; driver to communicate with Microsoft SQL Server and support for the IIS7 web server, which now finally has a very nice &lt;a href="http://www.iis.net/download/urlrewrite"&gt;rewrite module&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;As always with these kind of features, the biggest task was getting to know the platform and its components. I spent a good amount of time setting up the necessary tools, learning the finer details of Azure deployment, researching on how the load balancing worked, finding the right rewrite rules for IIS and bending ext/sqlsrv to my will.&lt;/p&gt;

&lt;p&gt;In Agavi itself, you will merely find a new session storage class (for cloud-based sessions), a new database adapter class to talk to MSSQL, and some minor modifications to the web request and routing implementations to deal with IIS7’s URL decoding behavior. The latter is still a work in progress, and requires a lot of testing since unfortunately, Apache/IIS/lighttpd/… all have vastly different behavior especially when it comes to URL decoding.&lt;/p&gt;

&lt;p&gt;All of these updates will be in Agavi 1.0.4; I plan on releasing 1.0.3 as a final first (it’s been out there long enough in RC state now).&lt;/p&gt;

&lt;p&gt;Expect a blog post with examples on how to get your Agavi app up and running on Azure very soon; especially with the &lt;a href="http://www.windowsazure4e.org/"&gt;Toolkit for Eclipse&lt;/a&gt;, it’s a remarkably convenient way of testing and deploying your applications on a cloud infrastructure. And there will, of course, be another article with a wrap-up of last week’s &lt;a href="http://blog.agavi.org/post/502780238/jump-in-camp"&gt;Jump In Camp&lt;/a&gt;.&lt;/p&gt;</description><link>http://blog.agavi.org/post/518901216</link><guid>http://blog.agavi.org/post/518901216</guid><pubDate>Tue, 13 Apr 2010 20:52:53 +0100</pubDate><category>jumpincamp</category></item><item><title>Jump In! Camp</title><description>&lt;p&gt;&lt;a href="http://www.jumpincamp.com/"&gt;Jump In! Developers’ Camp&lt;/a&gt; has started today at a beautiful resort near Zürich, Switzerland. Over the next three days, we’ll have workshops focusing on the topics of cloud computing, the Microsoft Azure platform. There are quite a bunch of fellow Open Source developers here, and it’ll be exciting to sit together and hack away on various features.&lt;/p&gt;

&lt;p&gt;For Agavi, this means that work will be done this week on native support for the Azure cloud computing platform, support for IIS7 and the new SQL Server Driver for PHP. I’m also hoping to get some support in for the table and queue stores the Azure platform offers, although that will require a lot work on the new storage subsystem planned for Agavi 1.1 that will be difficult to squeeze into the next three days.&lt;/p&gt;

&lt;p&gt;In addition to that, I’ve been working on support for both input types (finally!) and a new security infrastructure that decouples authentication and authorization and will allow you, among other things, to access validated request data, so you can for instance implement an ACL subsystem to perform authorization checks directly on your business objects.&lt;/p&gt;

&lt;p&gt;I’ll blog several updates over the next few days, so stay tuned!&lt;/p&gt;

&lt;p&gt;– David&lt;/p&gt;</description><link>http://blog.agavi.org/post/502780238</link><guid>http://blog.agavi.org/post/502780238</guid><pubDate>Wed, 07 Apr 2010 09:42:21 +0100</pubDate><category>jumpincamp</category></item><item><title>Agavi 1.0.3 RC1 released!</title><description>&lt;p&gt;Agavi 1.0.3 RC1 is ready for testing and can be downloaded at &lt;a href="http://www.agavi.org/"&gt;&lt;a href="http://www.agavi.org"&gt;www.agavi.org&lt;/a&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I’ll quote right from the &lt;a href="http://trac.agavi.org/browser/tags/1.0.3RC1/RELEASE_NOTES"&gt;release notes&lt;/a&gt; to give you an overview of the most important changes. Please help us test this release thoroughly!&lt;/p&gt;

&lt;p&gt;This maintenance release fixes a number of issues over Agavi 1.0.2 and features a few minor enhancements.&lt;/p&gt;

&lt;p&gt;Several issues and inconsistencies have been fixed in AgaviNumberValidator and AgaviDecimalFormatter::parse(). Parsing behavior is now consistent with the NumberFormatter implementations of ICU and ext/intl. No integer overflow occurs when checking against min and max values, and the validator accepts non-strings as input. Exporting of the validated value is now possible, in which case the original argument is not mutated. Please note that the “number” validator shortcut definition specifies “int” as the default value for the “type” parameter. No value for “type” will automatically lead to integer or float values, depending on the size of the number in the input string. A cast to the specified type is now automatically performed if no “cast_to” parameter is given.&lt;/p&gt;

&lt;p&gt;All file validators now perform case-insensitive checks against the list of allowed file extensions, which may now also be a parameter array instead of a space-separated list of values.&lt;/p&gt;

&lt;p&gt;This release bumps the minimum required version of Phing to 2.4.0; this was necessary to fix some bugs with the build system that were next to impossible to fix for both 2.3 and 2.4 (which drastically changed some internals structures) at the same time.&lt;/p&gt;

&lt;p&gt;An issue relating to the behavior of DOM in PHP 5.1.12 and PHP 5.2.3 has been addressed. Running Agavi 1.0.3 might be necessary under certain circumstances when using these versions of PHP.&lt;/p&gt;

&lt;p&gt;A couple of minor fixes have been made to the routing; most notably, overwriting of routes in other &lt;configuration&gt; blocks now always works as expected, even when using implied routes.&lt;/configuration&gt;&lt;/p&gt;

&lt;p&gt;Some default code templates have been updated; most notably, caching configuration files now explicitly disable caching, as otherwise, Actions that do not use a View would be cached automatically.&lt;/p&gt;

&lt;p&gt;The timezone database has been updated to version 2010f.&lt;/p&gt;

&lt;p&gt;For a full list of changes, please refer to the &lt;a href="http://trac.agavi.org/browser/tags/1.0.3RC1/CHANGELOG"&gt;CHANGELOG&lt;/a&gt;.&lt;/p&gt;</description><link>http://blog.agavi.org/post/466464061</link><guid>http://blog.agavi.org/post/466464061</guid><pubDate>Mon, 22 Mar 2010 22:23:24 +0000</pubDate></item><item><title>Agavi at ConFoo</title><description>&lt;p&gt;The beacon of hope that is Agavi is carried to Montréal this week, where the &lt;a href="http://www.confoo.ca/"&gt;ConFoo Web Tech conference&lt;/a&gt; takes place.&lt;/p&gt;

&lt;p&gt;David will be giving a talk on Agavi, and although we know that some of you will be there to watch it live, all those who couldn’t make it to Montréal (it’s a lovely city, so consider attending next year) need not despair, as at least the slides, and possibly also a recording of the talk will be posted after the conference.&lt;/p&gt;

&lt;p&gt;If you’re there in person, make sure to catch a seat in one of the front rows so you can be first in line after the talk to grab one of the Agavi t-shirts that made the long journey to Canada.&lt;/p&gt;</description><link>http://blog.agavi.org/post/437375988</link><guid>http://blog.agavi.org/post/437375988</guid><pubDate>Tue, 09 Mar 2010 20:33:00 +0000</pubDate></item><item><title>PHP UK Conference 2010 Agavi Discount</title><description>&lt;p&gt;We’re proud to announce that Agavi is a community partner of the always-awesome &lt;a href="http://www.phpconference.co.uk/"&gt;PHP UK Conference&lt;/a&gt; which takes place this Friday, February 26, in London, England.&lt;/p&gt;

&lt;p&gt;The conference is now in its fifth year and is bigger and better than ever. Friday’s event has 16 different hour-long talks from some of the world’s best PHP speakers, covering core, database and various specialist topics. It takes place at the modern Business Design Centre in London’s bustling Islington area, close to Kings Cross and Euston and just two minutes walk from Angel underground station, and as usual we’ve arranged social events for both the evening before and straight after the event - the former being free to anyone to come along and the latter starting with a sponsored bar by Facebook. The registration price also includes a buffet lunch and dessert, refreshments throughout the day, cloakroom facilities, access to discounted books from O’Reilly and Packt publishers, countless networking opportunities, and a raffle with over 50 prizes on offer, including Agavi T-Shirts!&lt;/p&gt;

&lt;p&gt;Agavi is a community partner of the event and we are pleased to be able to offer all Agavi friends, users and developers a £20 discount on the event registration. Just head to &lt;a href="http://www.phpconference.co.uk/registration/agavi"&gt;&lt;a href="http://www.phpconference.co.uk/registration/agavi"&gt;http://www.phpconference.co.uk/registration/agavi&lt;/a&gt;&lt;/a&gt; to get the reduced price, and please browse the rest of the site for much more information on the conference.&lt;/p&gt;

&lt;p&gt;We hope to see you there on Friday! David will also be giving a talk on Designing URLs and RESTful APIs at the pre-conference social on Thursday evening; &lt;a href="http://www.phpconference.co.uk/socials"&gt;&lt;a href="http://www.phpconference.co.uk/socials"&gt;http://www.phpconference.co.uk/socials&lt;/a&gt;&lt;/a&gt; has more info.&lt;/p&gt;</description><link>http://blog.agavi.org/post/404748571</link><guid>http://blog.agavi.org/post/404748571</guid><pubDate>Mon, 22 Feb 2010 11:23:00 +0000</pubDate></item><item><title>Agavi 1.0.2 released!</title><description>&lt;p&gt;The Agavi team is happy to announce that Agavi 1.0.2 is now available for download at &lt;a href="http://www.agavi.org/"&gt;&lt;a href="http://www.agavi.org"&gt;www.agavi.org&lt;/a&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;a href="http://trac.agavi.org/browser/tags/1.0.2/CHANGELOG"&gt;CHANGELOG&lt;/a&gt; for this release counts 8 additions, 22 changes and at least 39 fixes over Agavi 1.0.1; the most important ones are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Support for HTML 5 forms in AgaviFormPopulationFilter.&lt;/li&gt;
&lt;li&gt;Support for Doctrine 1.2.&lt;/li&gt;
&lt;li&gt;Support for Propel 1.4.&lt;/li&gt;
&lt;li&gt;Support for Phing 2.4.0.&lt;/li&gt;
&lt;li&gt;Support for PHPTAL 1.2.&lt;/li&gt;
&lt;li&gt;Support for PHP 5.3 Namespaces&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Several validation-related fixes and changes have been made, and a ton of bugfixes were backported from the ICU project in the internationalization subsystem.&lt;/p&gt;

&lt;p&gt;The bundled PHPUnit, timezonedb and Schematron versions have also been updated to their latest releases.&lt;/p&gt;

&lt;p&gt;As always, the &lt;a href="http://trac.agavi.org/browser/tags/1.0.2/RELEASE_NOTES"&gt;RELEASE_NOTES&lt;/a&gt; have the full story.&lt;/p&gt;</description><link>http://blog.agavi.org/post/356745670</link><guid>http://blog.agavi.org/post/356745670</guid><pubDate>Wed, 27 Jan 2010 22:36:43 +0000</pubDate></item><item><title>Agavi 1.0.2 RC4 released!</title><description>&lt;p&gt;Agavi 1.0.2 RC4 is now available for download at &lt;a href="http://www.agavi.org/"&gt;&lt;a href="http://www.agavi.org"&gt;www.agavi.org&lt;/a&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This release adds support for Doctrine 1.2 and implements HTML 5 forms in AgaviFormPopulationFilter.&lt;/p&gt;

&lt;p&gt;A couple of bugs have also been fixed; the most important one results in whitespace-only configuration parameter values being cast to null now instead of an empty string.&lt;/p&gt;

&lt;p&gt;The timezone database has also been updated to their latest versions.&lt;/p&gt;

&lt;p&gt;As always, the &lt;a href="http://trac.agavi.org/browser/tags/1.0.2RC4/CHANGELOG"&gt;CHANGELOG&lt;/a&gt; has the full list of changes in this release.&lt;/p&gt;

&lt;p&gt;Please test this thoroughly; a final release is scheduled to follow next week.&lt;/p&gt;</description><link>http://blog.agavi.org/post/342494615</link><guid>http://blog.agavi.org/post/342494615</guid><pubDate>Tue, 19 Jan 2010 10:41:49 +0000</pubDate></item><item><title>Server Migration Wednesday/Thursday</title><description>&lt;p&gt;We’re about to move &lt;a href="http://www.agavi.org/"&gt;agavi.org&lt;/a&gt; and a ton of related stuff to a new server. This will affect the website, Trac, SVN, PEAR Channels, Mailing Lists and so forth.&lt;/p&gt;

&lt;p&gt;The DNS TTL for agavi.org is 24 hours and unfortunately, we can’t change that, so it’ll take quite a bit for the updated nameserver records to propagate. Because of this, we’re switching all services on the old servers to a read-only mode until the migration is completely finished. The mailing lists &lt;em&gt;should&lt;/em&gt; migrate relatively instantly (and seamlessly), but you never know.&lt;/p&gt;

&lt;p&gt;If you’re still experiencing any kind of trouble after Thursday, please let us know so we can investigate.&lt;/p&gt;

&lt;p&gt;Thank you for your patience and have very happy holidays!&lt;/p&gt;</description><link>http://blog.agavi.org/post/296946571</link><guid>http://blog.agavi.org/post/296946571</guid><pubDate>Wed, 23 Dec 2009 16:13:52 +0000</pubDate></item><item><title>Save Letters, Use Short Validator Names!</title><description>&lt;p&gt;Something’s been bugging me lately. Be it customer projects or code people post on the channel, I often find code that spells out long validator names, over and over again:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;ae:configurations
    xmlns="http://agavi.org/agavi/config/parts/validators/1.0"
    xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0"
    parent="%core.module_dir%/Account/config/validators.xml"
&gt;
    &lt;ae:configuration&gt;

        &lt;validators&gt;
            &lt;validator class="FooBarValidatorWithVeryLongClassname"&gt;
                &lt;arguments&gt;
                    &lt;argument&gt;foo&lt;/argument&gt;
                &lt;/arguments&gt;
            &lt;/validator&gt;

            &lt;validator class="FooBarValidatorWithVeryLongClassname"&gt;
                &lt;arguments&gt;
                    &lt;argument&gt;bar&lt;/argument&gt;
                &lt;/arguments&gt;
            &lt;/validator&gt;

            &lt;validator class="string"&gt;
                &lt;arguments&gt;
                    &lt;argument&gt;baz&lt;/argument&gt;
                &lt;/arguments&gt;
            &lt;/validator&gt;

        &lt;/validators&gt;

    &lt;/ae:configuration&gt;
&lt;/ae:configurations&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Granted, this is one of the less documented features in Agavi, but does nobody ever wonder whether there’s a better way? There’s obviously a way to create shortcuts or the validator named string couldn’t be resolved - the full classname is AgaviStringValidator.&lt;/p&gt;

&lt;p&gt;Actually, it’s quite simple. At any point in a validation file you can define shortnames and use like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;ae:configurations xmlns="http://agavi.org/agavi/config/parts/validators/1.0" 
xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0"&gt;

    &lt;ae:configuration&gt;
        &lt;validator_definitions&gt;

            &lt;validator_definition name="foo" class="FooBarValidatorWithVeryLongClassname" /&gt;

        &lt;/validator_definitions&gt;

        &lt;validators&gt;
            &lt;validator class="foo"&gt;
                &lt;arguments&gt;
                    &lt;argument&gt;foo&lt;/argument&gt;
                &lt;/arguments&gt;
            &lt;/validator&gt;

            &lt;validator class="foo"&gt;
                &lt;arguments&gt;
                    &lt;argument&gt;bar&lt;/argument&gt;
                &lt;/arguments&gt;
            &lt;/validator&gt;

            &lt;validator class="string"&gt;
                &lt;arguments&gt;
                    &lt;argument&gt;baz&lt;/argument&gt;
                &lt;/arguments&gt;
            &lt;/validator&gt;

        &lt;/validators&gt;
    &lt;/ae:configuration&gt;
&lt;/ae:configurations&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Validatordefinitions can include default parameters and multiple definitions can reference the same class:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;ae:configurations xmlns="http://agavi.org/agavi/config/parts/validators/1.0" 
xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0"&gt;

    &lt;ae:configuration&gt;
        &lt;validator_definitions&gt;

            &lt;validator_definition name="foo" class="FooBarValidatorWithVeryLongClassname" /&gt;


            &lt;validator_definition name="foobar" class="FooBarValidatorWithVeryLongClassname"&gt;
                &lt;ae:parameters&gt;
                    &lt;ae:parameter name="bar"&gt;baz&lt;/ae:parameter&gt;
                &lt;ae:parameters&gt;
            &lt;/validator_definition&gt;

        &lt;/validator_definitions&gt;

    &lt;/ae:configuration&gt;
&lt;/ae:configurations&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The default parameters can be overwritten by the actual validator definition referencing that shortname. This is how all the shortnames we provide are implemented - the curious among you can have a peek in the config/defaults/validators.xml file.&lt;/p&gt;

&lt;p&gt;Projects created with Agavi &gt; 1.0.0 will have a cascade of validator files that are loaded: The actual validaton file for the action which references a validator config in the module’s config directory which in turn references a validator config file in the app’s config directory which in turn references the agavi default file. Older projects do not have this structure but I do recommend to create at least a global config file to shorten often used names.&lt;/p&gt;</description><link>http://blog.agavi.org/post/284778196</link><guid>http://blog.agavi.org/post/284778196</guid><pubDate>Tue, 15 Dec 2009 15:51:28 +0000</pubDate></item><item><title>Agavi 1.0.2 RC3 released!</title><description>&lt;p&gt;Agavi 1.0.2 RC3 is now available for download at &lt;a href="http://www.agavi.org/"&gt;&lt;a href="http://www.agavi.org"&gt;www.agavi.org&lt;/a&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This release adds support for Propel 1.4 and introduces a new way to configure connection setting overrides for Propel; see the &lt;a href="https://trac.agavi.org/browser/tags/1.0.2RC3/RELEASE_NOTES"&gt;RELEASE_NOTES&lt;/a&gt; for details.&lt;/p&gt;

&lt;p&gt;A couple of bugs have also been fixed, most notably an issue where the first element of a multi-dimensional array would be lost when exported from a validator.&lt;/p&gt;

&lt;p&gt;PHPUnit and the timezone database have been updated to their latest versions.&lt;/p&gt;

&lt;p&gt;As always, the &lt;a href="https://trac.agavi.org/browser/tags/1.0.2RC3/CHANGELOG"&gt;CHANGELOG&lt;/a&gt; has the full list of changes in this release.&lt;/p&gt;

&lt;p&gt;Unless there are any nasty surprises, a final release will follow next week.&lt;/p&gt;</description><link>http://blog.agavi.org/post/277325864</link><guid>http://blog.agavi.org/post/277325864</guid><pubDate>Thu, 10 Dec 2009 08:45:01 +0000</pubDate></item><item><title>Agavi 1.0.2 RC2 released!</title><description>&lt;p&gt;Hello everybody,&lt;/p&gt;

&lt;p&gt;Agavi 1.0.2 RC2 is now available for download at &lt;a href="http://www.agavi.org/"&gt;&lt;a href="http://www.agavi.org"&gt;www.agavi.org&lt;/a&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A couple of fixes have been made since RC1, and PHPUnit and the timezone database have been updated to their latest versions.&lt;/p&gt;

&lt;p&gt;We’re currently planning a final release next week, after another new version of the timezone database has been released.&lt;/p&gt;

&lt;p&gt;Enjoy your weekend,&lt;/p&gt;

&lt;p&gt;David&lt;/p&gt;</description><link>http://blog.agavi.org/post/235059472</link><guid>http://blog.agavi.org/post/235059472</guid><pubDate>Fri, 06 Nov 2009 16:19:45 +0000</pubDate></item><item><title>Fifth Agavi Article on IBM developerWorks</title><description>&lt;p&gt;The fifth and final article in the &lt;a href="http://blog.agavi.org/post/141488227"&gt;series on Agavi over at IBM developerWorks&lt;/a&gt; has just been published.&lt;/p&gt;

&lt;p&gt;This last part talks about handling of file uploads, storing data in sessions and writing custom validator classes.  Go &lt;a href="http://www.ibm.com/developerworks/xml/library/x-agavipt5/"&gt;read it&lt;/a&gt;, rate it, blog about it and spread the word!&lt;/p&gt;</description><link>http://blog.agavi.org/post/189159167</link><guid>http://blog.agavi.org/post/189159167</guid><pubDate>Wed, 16 Sep 2009 07:26:07 +0100</pubDate></item><item><title>Agavi 1.0.2 RC1 released!</title><description>&lt;p&gt;Agavi 1.0.2 RC1 is now available for download at &lt;a href="http://www.agavi.org/"&gt;&lt;a href="http://www.agavi.org"&gt;www.agavi.org&lt;/a&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This maintenance release fixes a number of issues over Agavi 1.0.1 and brings a couple of minor enhancements.&lt;/p&gt;

&lt;p&gt;The following fixes are worth mentioning:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AgaviArraylengthValidator didn’t work with files.&lt;/li&gt;
&lt;li&gt;AgaviValidationManager::clear() didn’t clear validation errors.&lt;/li&gt;
&lt;li&gt;Multiple settings blocks and settings prefixes were not allowed in module configs.&lt;/li&gt;
&lt;li&gt;AgaviNumberValidator does not mutate invalid input anymore.&lt;/li&gt;
&lt;li&gt;Several ICU bugfixes have been ported.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Important Changes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Optional strict comparison of elements in AgaviInarrayValidator now possible.&lt;/li&gt;
&lt;li&gt;Validator shortcut “arraylength” now defaults to minimum of one element.&lt;/li&gt;
&lt;li&gt;Routing callback parameters are now set before initialize method is called.&lt;/li&gt;
&lt;li&gt;Lots of ICU bugfix and change backports to the date and translation system. As a result, custom time zones now have identifiers like “GMT+0200”.&lt;/li&gt;
&lt;li&gt;Namespaced class identifiers can now be used in all configuration files.&lt;/li&gt;
&lt;li&gt;AgaviValidator::getArgument() now accepts an argument identifier.&lt;/li&gt;
&lt;li&gt;Support for PHPTAL 1.2.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Bundle updates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The timezone database has been updated to version 2009m.&lt;/li&gt;
&lt;li&gt;PHPUnit has been updated to version 3.4.0RC3.&lt;/li&gt;
&lt;li&gt;ISO Schematron has been updated to version 2009-05-18.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Please refer to &lt;a href="http://trac.agavi.org/browser/tags/1.0.2RC1/CHANGELOG"&gt;CHANGELOG&lt;/a&gt; for a full list of changes.&lt;/p&gt;</description><link>http://blog.agavi.org/post/187094099</link><guid>http://blog.agavi.org/post/187094099</guid><pubDate>Sun, 13 Sep 2009 19:57:00 +0100</pubDate></item><item><title>Fourth Agavi Article on IBM developerWorks</title><description>&lt;p&gt;The fourth article in the &lt;a href="http://blog.agavi.org/post/141488227"&gt;series on Agavi over at IBM developerWorks&lt;/a&gt; has just been published.&lt;/p&gt;

&lt;p&gt;The new part details Agavi’s Output Types and how to quickly implement alternative response formats.  Go &lt;a href="http://www.ibm.com/developerworks/xml/library/x-agavipt4/"&gt;read it&lt;/a&gt;, rate it, blog about it and spread the word!&lt;/p&gt;</description><link>http://blog.agavi.org/post/177856217</link><guid>http://blog.agavi.org/post/177856217</guid><pubDate>Wed, 02 Sep 2009 11:24:21 +0100</pubDate></item><item><title>Get me a standard agavi project, the fast way</title><description>&lt;p&gt;More often than not I want to create a new agavi project the “standard” way, that is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change the projects name&lt;/li&gt;
&lt;li&gt;Change the projects prefix&lt;/li&gt;
&lt;li&gt;Use the defaults for all other options&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Calling agavi project-wizard makes me answer all questions, one by one. Sure, pressing enter at every prompt works, but I value my time too much to press enter at every prompt. I’d rather go write a blog post about how not to press enter at every prompt.&lt;/p&gt;

&lt;h2&gt;Enter “yes”&lt;/h2&gt;

&lt;p&gt;“yes” is a small commandline utility that answers “yes” or any given string to any prompt given to it:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;yes '' | agavi project-wizard
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;will create a project with all default values. Now the only thing that needs fixing is the project name and the project prefix - we can do that on the commandline[1]:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;yes '' | agavi -D project.name "My little test project" -D project.prefix "MyLTP" project-wizard
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This is not faster in any way than running through the wizard, but I can do other things during that time.&lt;/p&gt;

&lt;p&gt;[1] Please note this bug that prevents passing parameters with spaces to the build system: &lt;a href="http://trac.agavi.org/ticket/1137"&gt;http://trac.agavi.org/ticket/1137&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.agavi.org/post/166523473</link><guid>http://blog.agavi.org/post/166523473</guid><pubDate>Wed, 19 Aug 2009 15:33:31 +0100</pubDate></item><item><title>Third Agavi Article on IBM developerWorks</title><description>&lt;p&gt;The third article in the &lt;a href="http://www.ibm.com/developerworks/library/x-agavipt3/"&gt;series on Agavi over at IBM developerWorks&lt;/a&gt; has just been published.&lt;/p&gt;

&lt;p&gt;This part focuses on creating an administration interface and on securing it. Go read it, rate it, blog about it and once again spread the word!&lt;/p&gt;</description><link>http://blog.agavi.org/post/161362607</link><guid>http://blog.agavi.org/post/161362607</guid><pubDate>Wed, 12 Aug 2009 17:33:18 +0100</pubDate></item><item><title>Finally, nightly documentation builds</title><description>&lt;p&gt;Finally a nightly pdf build of the agavi guide is available. It’s based on trunk and can be downloaded from &lt;a href="http://www.agavi.org/documentation-nightly-pdf.tar.gz"&gt;&lt;a href="http://www.agavi.org/documentation-nightly-pdf.tar.gz"&gt;http://www.agavi.org/documentation-nightly-pdf.tar.gz&lt;/a&gt;&lt;/a&gt;. The tarball contains the pdf version of the guide and all stage tarballs.&lt;/p&gt;

&lt;p&gt;The current build scheme is very simple and the file is replaced every night. The location may change if and when we decide to keep older versions of the guide around. Until then: Enjoy.&lt;/p&gt;</description><link>http://blog.agavi.org/post/161358861</link><guid>http://blog.agavi.org/post/161358861</guid><pubDate>Wed, 12 Aug 2009 17:26:00 +0100</pubDate></item><item><title>Using your own build templates from second zero</title><description>&lt;p&gt;Some tasks are nice to have around in each and every project, such as the JSLint task I &lt;a href="http://blog.agavi.org/post/155525959/extending-the-build-system-integrating-jsllint"&gt;wrote about earlier today&lt;/a&gt;. However, we still don’t want that in each and every project - where’s the point in having a js-lint in a project that does not use any javascript at all like a pure service oriented project without any html output? So we don’t want that task in the core agavi build file but still in our standard project.
However, using &lt;code&gt;agavi project-wizard&lt;/code&gt; copies the standard agavi buildfile, so we have to manually copy our changes over and over again. Tedious work. We might also have a customized set of templates to use with the latest &lt;a href="http://blog.agavi.org/post/145953668/news-from-the-edge-improved-build-system"&gt;output type generation&lt;/a&gt; feature and we’d like to use that from the start so that all views generated in the project wizard benefit from that as well. But hmm, &lt;code&gt;agavi project-wizard&lt;/code&gt; uses the standard templates. So let’s go change that.&lt;/p&gt;

&lt;h2&gt;A custom template set&lt;/h2&gt;

&lt;p&gt;We start off by copying the standard template set - there’s a task for it:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Zodiacal-Light:Sites fgilcher$ mkdir agavi-build-templates
Zodiacal-Light:Sites fgilcher$ cd agavi-build-templates/
Zodiacal-Light:agavi-build-templates fgilcher$ agavi system-template-copy-all 
Agavi &gt; system-template-copy-all:

Output directory [/Users/fgilcher/Sites/agavi-build-templates]: 
     [copy] Copying 55 files to /Users/fgilcher/Sites/agavi-build-templates

Zodiacal-Light:agavi-build-templates fgilcher$ 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now we modify the build.xml.tmpl to contain our JSL-Task:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;project name="%%PROJECT_NAME%%" basedir="." default="status"&gt;

    &lt;!--
      Define project-specific or custom build targets.
      --&gt;

    &lt;target name="lint-javascripts" description="check all javascripts for validity"&gt;
        &lt;property name="javascript.lint.showWarnings" value="true" /&gt;
        &lt;jsllint showWarnings="${javascript.lint.showWarnings}" haltOnFailure="true"&gt;
            &lt;fileset dir="${project.directory}/pub/"&gt;
                &lt;include name="**/*.js" /&gt;
            &lt;/fileset&gt;
        &lt;/jsllint&gt;
    &lt;/target&gt;

&lt;/project&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;We can also change or add any other template we might like at this point. From here on it’s a matter of passing the template directory to use to the agavi script:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Zodiacal-Light:Sites fgilcher$ agavi -D templates.directory /Users/fgilcher/Sites/agavi-build-templates project-wizard
...
Zodiacal-Light:Sites fgilcher$ 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Done. This project will use the modified set of build templates from now on.&lt;/p&gt;</description><link>http://blog.agavi.org/post/155569516</link><guid>http://blog.agavi.org/post/155569516</guid><pubDate>Tue, 04 Aug 2009 11:46:51 +0100</pubDate></item><item><title>Extending the build system - integrating JSLLint</title><description>&lt;p&gt;Javascript errors are annoying and notoriously hard to track down due to limited IDE support and misleading error messages in browsers, but often it’s only a missing comma or a bracket in the wrong place. A linter helps by checking that your javascript is a least structurally sound. It’s the first check I run on any javascript that does not work, so having it right at my fingertips is important. I’ll show how to integrate that into any agavi project.&lt;/p&gt;

&lt;p&gt;There’s a number of JS-Linters out there, I use &lt;a href="http://www.javascriptlint.com/,"&gt;http://www.javascriptlint.com/,&lt;/a&gt; primarily because there’s an existing phing task for it (1). As the agavi build system is based on phing integrating that task is a breeze. Each agavi project has a build.xml in the root directory that can be used to define project-specific targets. By default it’s empty and looks like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;project name="Sample" basedir="." default="status"&gt;

    &lt;!--
      Define project-specific or custom build targets.
      --&gt;

&lt;/project&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Adding a JSL-Task is a matter of seconds:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;project name="Sample" basedir="." default="status"&gt;

    &lt;!--
      Define project-specific or custom build targets.
      --&gt;

    &lt;target name="lint-javascripts" description="check all javascripts for validity"&gt;
        &lt;property name="javascript.lint.showWarnings" value="true" /&gt;
        &lt;jsllint showWarnings="${javascript.lint.showWarnings}" haltOnFailure="true"&gt;
            &lt;fileset dir="${project.directory}/pub/"&gt;
                &lt;include name="**/*.js" /&gt;
            &lt;/fileset&gt;
        &lt;/jsllint&gt;
    &lt;/target&gt;

&lt;/project&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And now it’s just a call to&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Zodiacal-Light:~ fgilcher$ agavi lint-javascripts
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;That’s it. It’s trivial to extend the task-definition to pass some options to the linter - I’ll leave that to you.&lt;/p&gt;

&lt;p&gt;(1) There’s a minor bug in the JSL-Lint Task that’s fixed on trunk. See &lt;a href="http://phing.info/trac/ticket/349"&gt;http://phing.info/trac/ticket/349&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.agavi.org/post/155525959</link><guid>http://blog.agavi.org/post/155525959</guid><pubDate>Tue, 04 Aug 2009 09:45:54 +0100</pubDate></item></channel></rss>
