Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPClasses.org:
Site design theme editor
Sep 03, 2008 @ 10:28:24

A while back the PHPClasses.org website announced that it would be changing its look a bit and allowing visitors to set up and configure their own look and feel as they chose. The editor to make these changes has finally been released and is ready for use.

The site is launching an editor that allows designs to propose new site design themes. This is the initial beta version of the site design editor, but it already allows any designer to try different presentation designs.

You can access the editor from here and it'll require a login to get in (to create your own custom layout). The system uses simple tag-based templating to wrap the content of the site in your look/feel of choice. You can even try it out on different sized resolutions to give you an idea of the template's flexibility.

tagged: design contest theme custom editor template tags

Link:

HowTo Forge:
PHP Programming Basics
Jan 18, 2007 @ 15:15:00

The HowTo Forge website has posted the first part in a new series of tutorials to help people (programmers and non) to get into PHP and be comfortable working with it.

This first part starts from the base they've already set (installation/configuration) and actually gets into the code.

This article is the first of a series of PHP guides that aim at teaching you the basics of PHP programming. By now, I hope you would have set up your system to start actual PHP programming. Lets start PHP programming.

They keep things simple and look at topics like:

  • What are tags?
  • Web Page Parsing
  • Operators and Operands
  • Variables

tagged: programming basics parsing tags operator operand variable programming basics parsing tags operator operand variable

Link:

HowTo Forge:
PHP Programming Basics
Jan 18, 2007 @ 15:15:00

The HowTo Forge website has posted the first part in a new series of tutorials to help people (programmers and non) to get into PHP and be comfortable working with it.

This first part starts from the base they've already set (installation/configuration) and actually gets into the code.

This article is the first of a series of PHP guides that aim at teaching you the basics of PHP programming. By now, I hope you would have set up your system to start actual PHP programming. Lets start PHP programming.

They keep things simple and look at topics like:

  • What are tags?
  • Web Page Parsing
  • Operators and Operands
  • Variables

tagged: programming basics parsing tags operator operand variable programming basics parsing tags operator operand variable

Link:

Joshua Eichorn's Blog:
phpDocumentor enhancements
Jul 14, 2006 @ 06:00:15

Joshua Eichorn shares some of the updates to the phpDocumentor software in his latest post today:

As PHP keeps added language features one of the things we have to do is figure out how to document them. Lately I've been hearing requests for a way to document virtual properties and methods on classes that are implemented using __call etc.

After talking a bit with Greg, I'm leaning towards adding in some new docblock tags to classes to allow these methods/properties to be documented.

He includes a code example for the documentation method suggested on these new functionality bits. He also asks for comments/ideas on how to hald these sorts of updates in the future.

tagged: phpdocumentor enhancements docblock tags manage changes phpdocumentor enhancements docblock tags manage changes

Link:

Joshua Eichorn's Blog:
phpDocumentor enhancements
Jul 14, 2006 @ 06:00:15

Joshua Eichorn shares some of the updates to the phpDocumentor software in his latest post today:

As PHP keeps added language features one of the things we have to do is figure out how to document them. Lately I've been hearing requests for a way to document virtual properties and methods on classes that are implemented using __call etc.

After talking a bit with Greg, I'm leaning towards adding in some new docblock tags to classes to allow these methods/properties to be documented.

He includes a code example for the documentation method suggested on these new functionality bits. He also asks for comments/ideas on how to hald these sorts of updates in the future.

tagged: phpdocumentor enhancements docblock tags manage changes phpdocumentor enhancements docblock tags manage changes

Link:

Daniel Hofstetter's Blog:
How to update multiple divs with Ajax
Jun 30, 2006 @ 05:55:40

On the Cake Baker blog today, Daniel Hofstetter shows us how to update the contents of multiple div tags with a little help from Ajax:

This is a question which arises from time to time in the CakePHP google group. There is an example in the group, but I have to admit I didn't understood it the first time I read it. So I try to provide a better example.

His example creates a view with the Ajax link and two divs inside to update - our containers. Next up is the controller, a simple matter of four lines to set which layout to use. And, lastly, they create another view, one to handle the actual updates to the two divs previously created. Using it is as simple as clicking on the link in the first view, populating the two divs with new information.

Be sure to check out the comments for other helpful hints and bug information (with Firefox).

tagged: ajax cakephp framework multiple tags div content view controller ajax cakephp framework multiple tags div content view controller

Link:

Daniel Hofstetter's Blog:
How to update multiple divs with Ajax
Jun 30, 2006 @ 05:55:40

On the Cake Baker blog today, Daniel Hofstetter shows us how to update the contents of multiple div tags with a little help from Ajax:

This is a question which arises from time to time in the CakePHP google group. There is an example in the group, but I have to admit I didn't understood it the first time I read it. So I try to provide a better example.

His example creates a view with the Ajax link and two divs inside to update - our containers. Next up is the controller, a simple matter of four lines to set which layout to use. And, lastly, they create another view, one to handle the actual updates to the two divs previously created. Using it is as simple as clicking on the link in the first view, populating the two divs with new information.

Be sure to check out the comments for other helpful hints and bug information (with Firefox).

tagged: ajax cakephp framework multiple tags div content view controller ajax cakephp framework multiple tags div content view controller

Link:

Scott Johnson's Blog:
Your Simple PHP Code Snippet for Monday
May 09, 2006 @ 06:03:23

Trying to find the HTML errors in a complex layout on a page can get very frustrating (especially when it repeats elements generated by backend scripts). Scott Johnson had one such instance, so he wrote a little script to help with it.

I wasn't planning on blogging much today (or, honestly, this week) since we’re making good progress on Ookles but our designer just had to deal with the situation where one of our developers clobbered our page footer w/ a comment gone astray and she wasted quite a bit of time analyzing the problem. Which, naturally, turned out to be nothing more than an unbalanced set of div tags.

And since that's more often than not the problem these days with CSS bugs — at least for us — I whipped up a drop dead dumb div tag counter which seems to work but I suspect isn't perfect since its about as naive as you can get.

He has the source of the script included in the post as well as two examples of using it with msn.com and news.com. Other suggestions of tools to help with these problems are listed in the comments - the View Rendered Source Firefox extension, and the HTML Validator for Firefox.

tagged: snipped match div tags validator firefox extension snipped match div tags validator firefox extension

Link:

Scott Johnson's Blog:
Your Simple PHP Code Snippet for Monday
May 09, 2006 @ 06:03:23

Trying to find the HTML errors in a complex layout on a page can get very frustrating (especially when it repeats elements generated by backend scripts). Scott Johnson had one such instance, so he wrote a little script to help with it.

I wasn't planning on blogging much today (or, honestly, this week) since we’re making good progress on Ookles but our designer just had to deal with the situation where one of our developers clobbered our page footer w/ a comment gone astray and she wasted quite a bit of time analyzing the problem. Which, naturally, turned out to be nothing more than an unbalanced set of div tags.

And since that's more often than not the problem these days with CSS bugs — at least for us — I whipped up a drop dead dumb div tag counter which seems to work but I suspect isn't perfect since its about as naive as you can get.

He has the source of the script included in the post as well as two examples of using it with msn.com and news.com. Other suggestions of tools to help with these problems are listed in the comments - the View Rendered Source Firefox extension, and the HTML Validator for Firefox.

tagged: snipped match div tags validator firefox extension snipped match div tags validator firefox extension

Link:

Davey Shafik's Blog:
Spring Cleaning (or a Move from Categories to Tags)
May 03, 2006 @ 07:13:37

Davey Shafik has done some "spring cleaning" on his blog and finally implemented a tagging based system for it (using the Serendipity software) away from the category system it uses by default. In this new post he shares the simple solution to how he did it.

One of the many things I have planned to do for this site is use tags instead of categories. However, when I first tried the plugin, it was quite broken. So I dropped the idea.

However, when setting up the PHP Thinktank blog I gave it another whirl and it works beautifully. So I decided to try again on this site.

He populates the tags for the entries in a simple way - a SQL query that goes through and updates the tag table with the current category for the entry.

tagged: tags categories move serendipity plugin tags categories move serendipity plugin

Link: