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

DevShed:
Handling Static Data with PHP 5
Sep 11, 2007 @ 19:33:00

On DevShed, there's a new tutorial that talks about the other half of working with dynamic websites - working with the static content:

It's pretty common when using PHP to develop dynamic, object-oriented applications. Every so often, though, you need to work with static data. This article will explain how to work with static data and static properties, and show you how this ability can be useful in real-world situations.

They show how to create dynamic divs for your content, "factoring" them (creating them with a Factory design pattern) and an example of it all working together.

tagged: static data php5 tutorial div html factory designpattern static data php5 tutorial div html factory designpattern

Link:

DevShed:
Handling Static Data with PHP 5
Sep 11, 2007 @ 19:33:00

On DevShed, there's a new tutorial that talks about the other half of working with dynamic websites - working with the static content:

It's pretty common when using PHP to develop dynamic, object-oriented applications. Every so often, though, you need to work with static data. This article will explain how to work with static data and static properties, and show you how this ability can be useful in real-world situations.

They show how to create dynamic divs for your content, "factoring" them (creating them with a Factory design pattern) and an example of it all working together.

tagged: static data php5 tutorial div html factory designpattern static data php5 tutorial div html factory designpattern

Link:

Daniel Hofstetter's Blog:
How to update multiple divs with Ajax
Jun 30, 2006 @ 10: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 @ 10: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 @ 11: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 @ 11: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:


Trending Topics: