<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 21 May 2013 16:57:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[NetTuts.com: How to Create a PyroCMS Theme]]></title>
      <guid>http://www.phpdeveloper.org/news/19613</guid>
      <link>http://www.phpdeveloper.org/news/19613</link>
      <description><![CDATA[<p>
On NetTuts.com today there's a new tutorial posted showing you how to <a href="http://net.tutsplus.com/tutorials/php/how-to-create-a-pyrocms-theme/">create a theme for PyroCMS</a>, an open source, PHP-based <a href="https://www.pyrocms.com/">content management system</a> with a large user base and community.
</p>
<blockquote>
Like most content management systems, <a href="https://www.pyrocms.com/">PyroCMS</a> uses front-end themes. Though PyroCMS themes are built a bit differently than what you might be used to from other systems, they're still quite easy to create. They're so easy, in fact, that very little PHP experience is required to assemble them!
</blockquote>
<p>
He walks through things like the folder structure of the templates directory and how to get started on a custom "Foo" theme of your own. He covers how to lay out the HTML markup for the theme and how you can use partials for the sections of the site. He briefly touches on using multiple layout files and how to use different layouts shown only to mobile devices.
</p>
Link: http://net.tutsplus.com/tutorials/php/how-to-create-a-pyrocms-theme]]></description>
      <pubDate>Tue, 21 May 2013 11:19:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[CodeIgniter.com: New User Guide in Development]]></title>
      <guid>http://www.phpdeveloper.org/news/16957</guid>
      <link>http://www.phpdeveloper.org/news/16957</link>
      <description><![CDATA[<p>
The CodeIgniter development team is happy to announce <a href="http://codeigniter.com/news/new_user_guide_in_development#When:19:23:01Z">work that's been done on the framework's user guide</a> to help make it even better and easier to find the information you're looking for (now based on the <a href="http://sphinx.pocoo.org/">Sphinx documentation generation engine</a>).
</p>
<blockquote>
In addition to handling the tedium of generating page and document tables of contents, or maintaining internal links and references, the documentation is now easier to write, as you can simply focus on the content instead of markup and presentation.  Don't forget syntax highlighting of PHP, HTML, CSS, and JavaScript in code samples.  Based on ReStructured Text, it's also more human readable in a text editor than HTML is, which is likely where you spend most of your time.  As an added benefit, Sphinx can output HTML, PDF, and even EPUB formats all from the same source files.
</blockquote>
<p>
There's also been a style redesign in the latest release (<a href="https://github.com/EllisLab/CodeIgniter/commit/8ede1a2ecbb62577afd32996956c5feaf7ddf9b6">here on github</a>) on the development branch of the framework. They warn of a few "bumps" that you might come across in using it, but they're working hard to take care of those quickly. If you'd like to see the new version, check out <a href="http://codeigniter.com/nightly_user_guide/">the nightly build results</a>.
</p>]]></description>
      <pubDate>Thu, 06 Oct 2011 09:55:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jason Gilmore's Blog: How I Learned to Stop Worrying and Love Zend_Form]]></title>
      <guid>http://www.phpdeveloper.org/news/16753</guid>
      <link>http://www.phpdeveloper.org/news/16753</link>
      <description><![CDATA[<p>
On his blog today <i>Jason Gilmore</i> has a quick post about <a href="http://www.wjgilmore.com/blog/entry/how_i_learned_to_stop_worrying_and_love_zend_form">solving one of his frustrations with Zend_Form</a> (a part of the <a href="http://framework.zend.com">Zend Framework</a>) - the default form decorators.
</p>
<blockquote>
It is a fantastically productive framework, one which I happen to use almost every single day. There was however one feature which absolutely drove me crazy. The Zend_Form component's uses the dd, dl, and dt elements as the default form markup decorators, meaning that even a simple contact form consisting of name, email, and message fields and a submit button [is marked up with dl, dt and dds]. [...]  It goes without saying that the overwhelming majority of developers do not use these elements to mark up their forms, with the sheer number of questions posted to StackOverflow and elsewhere about getting rid of these decorators backing this assertion.
</blockquote>
<p>
He gives his simple solution to the issue, something better than removing all of the decorators and using <a href="http://framework.zend.com/manual/en/zend.form.decorators.html">setDecorator</a> to replace them - a simple partial view that echos out the fields directly. The trick is to use the setDecorators call with a "ViewScript" option pointing to your partial and  setElementDecorators() call to use a "ViewHelper".
</p>]]></description>
      <pubDate>Mon, 22 Aug 2011 13:57:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Benjamin Schneider's Blog: Use PHP's Tidy extension to validate your (X)HTML markup]]></title>
      <guid>http://www.phpdeveloper.org/news/15245</guid>
      <link>http://www.phpdeveloper.org/news/15245</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Benjamin Schneider</i> looks at how you can <a href="http://www.bsdevblog.com/php/phps-tidy-extension-validate-xhtml-markup/">use the Tidy extension</a> to clean up the (X)HTML markup that comes out of your application.
</p>
<blockquote>
Tidy is a very cool PHP extension. You can let it tell you what kind of mistakes you might have in your HTML markup and even correct it for you - if you want. In my projects I use it to give me a hint if my generated markup is invalid. This way I can easily correct it during development without being dependent on external validators. In this post I will show you how easy it is and how few lines of code you need to make your application show any potential errors you might have in your HTML markup.
</blockquote>
<p>
He shows how, with the help of output buffering, to grab the HTML output of your script and push it through the Tidy functionality (via a call to <a href="http://php.net/tidy_parse_string">tidy_parse_string</a>) and outputting the results. It even has a built in error catcher for when it finds invalid formatting in the generated markup. You can find out more about the features of this extension in <a href="http://us3.php.net/tidy">the PHP manual</a>.
</p>
]]></description>
      <pubDate>Thu, 07 Oct 2010 10:59:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Templating with Haml]]></title>
      <guid>http://www.phpdeveloper.org/news/15104</guid>
      <link>http://www.phpdeveloper.org/news/15104</link>
      <description><![CDATA[<p>
<i>Sameer Borate</i> has <a href="http://www.codediesel.com/tools/templating-with-haml/">posted about an alternative templating system</a> that's currently being used in multiple languages - <a href="http://en.wikipedia.org/wiki/Haml">Haml</a> (HTML Abstraction Markup Language). As <i>Sameer</i> points out, there's also a <a href="http://phphaml.sourceforge.net/">PHP port</a> of it.
</p>
<blockquote>
It has been a while since I've used a template engine during development, the last one I used was <a href="http://www.smarty.net/">Smarty</a>. Now there are a plethora of template systems, but most are a rehash of Smarty. Readers may beg to differ, but Smarty gets the work done, which is all that matters. The one that I found really interesting is <a href="http://haml-lang.com/">Haml</a>.
</blockquote>
<p>
He includes some markup examples of how it's structured - the main structure of the site, tables, divs, etc - and what it comes out like on the other side of the parser. The <a href="http://phphaml.sourceforge.net/">phphaml</a> and <a href="http://code.google.com/p/phamlp/">phamlp</a> libraries let you run the template through with variable values set and display it. There are some downsides he mentions, though, like the rules on indentation and that the markup has to be all in one file (or combined before sending to be rendered).
</p>]]></description>
      <pubDate>Thu, 09 Sep 2010 12:51:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[The Web Squeeze: Using Prado - A PHP Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/12420</guid>
      <link>http://www.phpdeveloper.org/news/12420</link>
      <description><![CDATA[<p>
On The Web Squeeze blog there's <a href="http://www.thewebsqueeze.com/web-design-articles/using-prado-a-php-framework.html">a recent post</a> looking at a PHP framework that doesn't get mentioned that often (at least these days) - <a href="http://www.pradosoft.com/">Prado</a>. The post looks briefly at the framework at getting it set up for development.
</p>
<blockquote>
This [word game] project was going to be slightly larger, and writing everything myself from scratch would have taken far too long. So I decided to use a PHP framework. PHP frameworks are a collection of code, meant to make your life easier and to aid you in the rapid development of dynamic websites. My choice fell on the Prado framework (see <a href="http://www.pradosoft.com/">www.pradosoft.com</a>).
</blockquote>
<p>
He walks you through a first example script with both sides - controller to create/gather the content and the custom tag markup for it to inject the content into. He also includes a look at some of the Ajax support included with the framework. His example is the user clicking on a "Add to Cart" button to call the backend "onToCartClicked" method.
</p>]]></description>
      <pubDate>Tue, 28 Apr 2009 12:54:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Why you should be using YAML for config]]></title>
      <guid>http://www.phpdeveloper.org/news/9497</guid>
      <link>http://www.phpdeveloper.org/news/9497</link>
      <description><![CDATA[<p>
The Developer Tutorials blog has a <a href="http://www.developertutorials.com/blog/server-side-scripting/php/why-you-should-be-using-yaml-for-config-8/">new post</a> mentioning the use of YAML structure for creating configuration files in your application.
</p>
<blockquote>
YAML, or YAML Ain't Markup Language, is a "human friendly data serialization standard". It's essentially a very basic format for storing data, and uses far less syntax than standard PHP. [...] It's almost like English; it's as basic as you want. Of course, that's not to say it doesn't support complex structures - this example demonstrates the power of the format.
</blockquote>
<p>
He also points out the <a href="http://spyc.sourceforge.net/">spyc extension</a> that makes working with the files in PHP a breeze.
</p>]]></description>
      <pubDate>Fri, 25 Jan 2008 11:22:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DeveloperTutorials.com: Create a Facebook Application With PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9364</guid>
      <link>http://www.phpdeveloper.org/news/9364</link>
      <description><![CDATA[<p>
The DeveloperTutorials website has a <a href="http://www.developertutorials.com/tutorials/php/create-a-facebook-application-with-php-8-01-05/page1.html">new tutorial</a> posted that walks the reader through a step-by-step process to create a PHP Facebook application of their very own.
</p>
<blockquote>
Everyone is talking about Facebook and their new Application Platform and I have to admit I think it's pretty cool too. So I decided to create an application that uses the Facebook Platform. I'm writing the application in PHP and I thought it might be useful for others to know how to write their own Facebook applications with PHP.
</blockquote>
<p>
They show you where you'll need to go to <a href="http://www.developertutorials.com/tutorials/php/create-a-facebook-application-with-php-8-01-05/page3.html">set up an ID</a> with Facebook to develop with, the developer application you'll need to add, where to grab the Facebook developer API and, finally, creating a simple application.
</p>
<p>
Their example is just of the "Hello World" sort, but it gives you a good foundation to start from. They also include pointers to the Facebook Markup Language and a reference for the Facebook REST-based API interface.
</p>]]></description>
      <pubDate>Mon, 07 Jan 2008 09:36:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Using YAML With PHP and PECL]]></title>
      <guid>http://www.phpdeveloper.org/news/8761</guid>
      <link>http://www.phpdeveloper.org/news/8761</link>
      <description><![CDATA[<p>
The Zend Developer Zone has a <a href="http://devzone.zend.com/article/2585-Using-YAML-With-PHP-and-PECL">new article today</a> by <i>Vikrim Vaswani</i> covering the use of YAML (Yet Another Markup Language) with PHP via the PECL packages that support it.
</p>
<blockquote>
If you've ever encountered the same need, or if you're just curious about the YAML format and how it can be used with PHP, then today is your lucky day. Over the next few pages, I'm going to give you a crash course in YAML and in PHP's ext/syck extension, showing you how it can be used to efficiently translate data structures from PHP to YAML, and vice-versa. Come on in, and let's get started!
</blockquote>
<p>
<a href="http://devzone.zend.com/article/2585-Using-YAML-With-PHP-and-PECL">The tutorial</a> starts with an example of a YAML file before getting into the application portion. He shows how to grab the Syck extension, install it, create a simple YAML file and create a configuration file (and parser) for a simple form application.
</p>]]></description>
      <pubDate>Tue, 02 Oct 2007 07:54:56 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tim Koschuetzki's Blog: How To Transform HTML To Textile Markup - The CakePHP TextileHelper Revisite]]></title>
      <guid>http://www.phpdeveloper.org/news/8518</guid>
      <link>http://www.phpdeveloper.org/news/8518</link>
      <description><![CDATA[<p>
<i>Tim Koschuetzki</i> has a <a href="http://php-coding-practices.com/cakephp-specific/how-to-transform-html-to-textile-markup-the-cakephp-textilehelper-revisited/">new tutorial</a> posted today for CakePHP users out there - it's a method for transforming HTML content into Textile markup via the TextileHelper CakePHP helper.
</p>
<blockquote>
For a current project of mine I had to find a way to decode html into textile markup. Why? Because we are using tinyMCE to process our textareas as wyciwyg editors, which generate HTML. However, we want all output controlled via textile to allow only the textile tags. Yes, we could do it with strip_tags(), but textile is much more elegant. Plus, it was a requirement by the client. Come on and find out how to detextile html.
</blockquote>
<p>
Code is <a href="http://php-coding-practices.com/cakephp-specific/how-to-transform-html-to-textile-markup-the-cakephp-textilehelper-revisited/">included</a>  to work on the transformation: detextile, processTag, detextile_process_glyphs and detextile_process_lists. An example is included as well, showing how to input a block of HTML content to be "textile-ized". The full code is available for cutting and pasting at the bottom of <a href="http://php-coding-practices.com/cakephp-specific/how-to-transform-html-to-textile-markup-the-cakephp-textilehelper-revisited/">the post</a>.
</p>]]></description>
      <pubDate>Thu, 23 Aug 2007 08:34:00 -0500</pubDate>
    </item>
  </channel>
</rss>
