 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
ZetaCode.com: PHP GTK tutorial
by Chris Cornutt November 18, 2011 @ 12:41:30
Jan Bodnar has pointed out a great PHP-GTK tutorial on ZetaCode.com that walks you through some of the major points of this graphical frontend for PHP:
This tutorial will teach you the basics of GUI programming with the PHP GTK. The tutorial has 8 chapters which cover the first steps with the library, menus, toolbars, dialogs and various widgets. It has some examples for drawing with Cairo library. The final chapter presents a small computer game; The Nibbles.
Each of the topics has sample code and screenshots of the resulting output for each. Also included is information on layouts and "painting" with Cairo - drawing shapes, rectangles, text, etc.
voice your opinion now!
phpgtk graphical frontend tutorial widget cairo
SitePoint PHP Blog: How to Create Your Own Twitter Widget in PHP, Part 1
by Chris Cornutt January 05, 2011 @ 13:13:00
From the SitePoint PHP blog today there's a new tutorial from Craig Buckler (part one of a series) on how to create your own Twitter widget you can drop in anywhere on your site (main content or sidebar). It uses cURL to make the requests to the Twitter servers, so you'll need that installed on your PHP instance.
Because you can! Your own widget will always be more customizable than any off-the-shelf solution, and you'll be the envy of your peers. We've also been asked by several readers for articles about the topic, and it's a great introduction to PHP, REST APIs, JSON, regular expressions and Object Orientated Programming.
In this first part of the series, he helps you set up the class to connect to the Twitter services and fetch the latest statuses for the SitePoint account (obviously, you can substitute yours in its place) and some of the basics like templating and caching. The script uses the REST API since it only needs to fetch, so there's no messing around with the OpenID authentication the Twitter API now requires. You can also download the source for the code that'll be generated during the series.
voice your opinion now!
twitter widget rest api tutorial series
Matthew Weier O'Phinney's Blog: Using Action Helpers To Implement Re-Usable Widgets
by Chris Cornutt October 05, 2010 @ 09:12:19
Matthew Weier O'Phinney has a new post to his blog today showing you how to use action helpers to make widgets that you can reuse all over your Zend Framework application. His method doesn't use the "action()" helper, either.
The situation all started when Andries tweeted asking about what he considered some mis-behavior on the part of the action() view helper -- a situation that turned out not to be an issue, per se, but more a case of bad architecture within Zend Framework. [...] The helper was done this way because Zend Framework does not render views a single time -- it instead renders after each action, and accumulates views to render in the layout.
Instead, he offers action helpers as a solution. He gives an example of a user module that has views, helpers and forms but no controllers, including a Bootstrap file. This bootstrap defines the helpers, configuration file and adds the helpers into the process flow of the application. Once things are all set up and the action helper is created, adding the module to a page is as easy as calling "createProfileWidget()" into a partial view.
voice your opinion now!
action helper zendframework widget reuse tutorial
NETTUTS.com: How To Build a Widget to Display your Buzzing
by Chris Cornutt April 09, 2010 @ 12:16:50
On NETTUTS.com a tutorial has been posted recently showing you how to build a widget for Buzz, the Google's service similar to Twitter. If you've ever worked with the Twitter timeline concept, using Buzz will feel very familiar. Unfortunately, for the moment at least, it's a read-only kind of thing.
At the moment, there's no API to work with the Buzz service; Google is expected to provide one within the next several months, however, for now, the public updates are available as Atom feeds.
They grab these Atom feeds via a proxy PHP script (can't cross-domain with Ajax, after all) and then some Ajax to real the latest from this proxy. The results are displayed in a (very familiar looking) timeline with the help of the included HTML and CSS/images. The last part of the process is to push it into a jQuery plugin for easier use down the line. You can get the source download here and check out a demo online.
voice your opinion now!
widget googlebuzz tutorial timeline atom
Debuggable Blog: How to have multiple paginated widgets on the same page with CakePHP
by Chris Cornutt August 26, 2008 @ 12:04:58
On the Debuggable blog Tim Koschutzki shows a way to have more than one paginated item on your page at a time (in a CakePHP application).
Many of you might have run into the problem of having multiple boxes on the same page that need to be paginated. For example you might have a left column with a list of members of your site and a right column that shows for a example a list of forums. Yeah, that's not the best example, but you get the idea.
The typical CakePHP pagination functional assumes that there's only one block of information that needs to be paginated per page. With Tim's modification, the model name for where the data is being pulled from is appended to the end of the URL and parsed by the script to know which is which.
voice your opinion now!
cakephp pagination widget multiple page
Zend Developer Zone: Create your own widget with PHP-GTK
by Chris Cornutt August 19, 2008 @ 09:35:30
A new tutorial on the Zend Developer Zone shows you how to use PHP's "younger cousin" PHP-GTK to make a simple widget.
With PHP's younger cousin PHP-GTK's recent step to maturity with the 2.0 stable release it is a good time to give this project some more attention. In this article I will show you how to create a re-usable IPv4 Entry widget using PHP-GTK's excellent OO structure.
The end result is an interface that lets the user input an IP in a familiar way (blocks of three, automatically advancing to the next block). They talk about the code first, describing how all of the parts fit together before giving you an easily cut-and-pastable block of code (the class) that creates the widget.
voice your opinion now!
widget phpgtk tutorial ipaddress interface
International Stock Exchange Forum: Getting RSS Feeds into Lively
by Chris Cornutt July 10, 2008 @ 15:28:09
Just for you Lively early adopters out there, there's a script that's been posted to the International Stock Exchange forum showing how to get a feed into the virtual world.
Here is a free PHP script to convert the titles of a news feed to a PNG graphic for display in Google Lively. To display a news feed in Google Lively, go to the "Add object" button, search for "Picture Frame". Click on add to room and then edit properties. In Gadget Options place the url of the PHP script in the option box.
The script can then be hosted on a web server where it can pull down the latest stories and update the PNG image accordingly.
voice your opinion now!
rss feed lively google object widget picture frame gd
|
Community Events
Don't see your event here? Let us know!
|