<?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>Thu, 20 Nov 2008 12:21:01 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Tiffany Brown's Blog: Turn text files into pull down menus]]></title>
      <guid>http://www.phpdeveloper.org/news/9710</guid>
      <link>http://www.phpdeveloper.org/news/9710</link>
      <description><![CDATA[<p>
<i>Tiffany Brown</i> shares <a href="http://tiffanybbrown.com/2008/02/26/turn-text-files-into-pull-down-menus/">a quick function</a> she whipped up to create dropdown menus from the contents of a newline separated text file (or files).
</p>
<blockquote>
I developed this PHP function for a project I'm working on. I'm posting it here in case I need it again, or in case you find it handy.
</blockquote>
<p>
The <a href="http://tiffanybbrown.com/2008/02/26/turn-text-files-into-pull-down-menus/">function</a> turns each line into an option tag making defining custom menus based on the contents of dynamically-given text files easy.
</p>
<p>
This could also be easily adapted to create navigations menus at the top of your pages with a few modifications to the HTML tags being used and some CSS to change the look of the list.
</p>]]></description>
      <pubDate>Wed, 27 Feb 2008 09:35:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Arnold Daniels' Blog: How I PHP: The Output Handler - Continued]]></title>
      <guid>http://www.phpdeveloper.org/news/9193</guid>
      <link>http://www.phpdeveloper.org/news/9193</link>
      <description><![CDATA[<p>
Continuing on from his <a href="http://www.phpdeveloper.org/news/9062">previous post</a> on output handling, <i>Arnold Daniels</i> shows how to build on the previous setup and add the ability to include dynamic data into the template.
</p>
<blockquote>
For instance, it would be nice if the data in the left column, 'Beauty Tips', could be different for each page. There are several ways to solve this, but for know I will choose the simplest.
</blockquote>
<p>He takes a few steps to make adding the content simple:</p>
<ul>
<li>Adding markers for the title and left menu to the template
<li>Change the OutputHandler class to make it less static
<li>use setData() to title the page
<li>user setData() to add left column content
<li>Use mark() and endmark() to section off a part of the template.
</ul>
<p>
He's <a href="http://blog.adaniels.nl/wp-content/code/output_handler_2/obdemo/">provided a demo</a> and made the <a href="http://blog.adaniels.nl/downloads/obdemo2.zip">source code available for download</a>.
</p>]]></description>
      <pubDate>Fri, 07 Dec 2007 09:32:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Felix Geisendorfer's Blog: MacGyver menu for CakePHP - What's the active menu item?]]></title>
      <guid>http://www.phpdeveloper.org/news/8200</guid>
      <link>http://www.phpdeveloper.org/news/8200</link>
      <description><![CDATA[<p>
In <a href="http://www.thinkingphp.org/2007/07/08/macgyver-menu-for-cakephp-whats-the-active-menu-item/">a new post</a> to his blog today, <i>Felix Geisendorfer</i> talks about view coding - specifically working with a menu and determining which element is active.
</p>
<blockquote>
One of the challenges many of us have faced before and will face in future is building a menu. Now this of course is very simple assuming that we're just shooting for a static &lt;ul> with some &lt;li>'s containing the links. However the tricky part is to figure out what is the active menu item. I had some code doing this in the past but tried out a new flavor of it today which I call the MacGyver menu for CakePHP as it's a little dirty yet powerful and easy to maintain.
</blockquote>
<p>
In his included code, he <a href="http://www.thinkingphp.org/2007/07/08/macgyver-menu-for-cakephp-whats-the-active-menu-item/">creates a simple navigation</a> from an array of titles/links and, with some sorting, a regular expression and a CSS class, the selected item can be highlighted simply.
</p>]]></description>
      <pubDate>Mon, 09 Jul 2007 09:34:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-GTK Community Site: Extending GtkMenu class for Popup menu dialog]]></title>
      <guid>http://www.phpdeveloper.org/news/7495</guid>
      <link>http://www.phpdeveloper.org/news/7495</link>
      <description><![CDATA[<p>
On the PHP-GTK Community site today, there's a <a href="http://www.php-gtk.eu/code-snippets/extending-gtkmenu-for-popup-menu">"quick hit" post</a> for extending a GtkMenu object in a PHP-GTK application to create a popup menu dialog.
</p>
<blockquote>
Here is a quick way to build a popup menu supporting event registration from a GtkWidget. Menu items are passed to the class constructor as a list of labels. This class emits activate signals with full context (x,y coordinates, button ...).
</blockquote>
<p>
There's the <a href="http://www.php-gtk.eu/code-snippets/extending-gtkmenu-for-popup-menu">list of the steps</a> that the code will follow and the two code chunks that will make it happen - the sample PHP-GTK app and the class file that handles the menu creation.
</p>]]></description>
      <pubDate>Fri, 23 Mar 2007 11:38:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Richard Heyes' Blog: PHP Console Class]]></title>
      <guid>http://www.phpdeveloper.org/news/4628</guid>
      <link>http://www.phpdeveloper.org/news/4628</link>
      <description><![CDATA[On his blog today, <i>Richard Heyes</i> notes that he's created a new class that combines some of the most common console-script functionality into once place - <a href="http://www.phpguru.org/downloads/Console/">Console</a>.
<p>
<quote>
<i>
Just added a new class called Console, which wraps up some common Console script related functionality. All the methods are static, and it's PHP5 only. Methods include:
<ul>
<li>Console::Pause()
<li>Console::BooleanQuestion()
<li>Console::ClearScreen()
<li>Console::GetLine()
<li>Console::ShowMenu()
</ul>
</i>
</quote>
<p>
You can grab a <a href="http://www.phpguru.org/downloads/Console/">copy of the class here</a> as well as an example of its usage, showing how to build a menu and have the user input their information...]]></description>
      <pubDate>Mon, 09 Jan 2006 06:51:35 -0600</pubDate>
    </item>
  </channel>
</rss>
