 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Oliver John Tibi's Blog: Mobile-ize Your CakePHP Application
by Chris Cornutt December 20, 2011 @ 09:11:10
In a new post to his blog, Oliver John Tibi has the first part of a series looking at mobile-izing your CakePHP application, making it mobile friendly when a mobile browser is detected.
I'll be writing a short series of posts on how to create a mobile version of your CakePHP app. I've always been bragging to my peers how awesome CakePHP is, and so now I'm writing a short tutorial on how to create a mobile-friendly version of a CakePHP app. I promise to make this as easy as possible.
In this first part of the series he helps you do two things - set up some custom routes for the mobile version of the site ("/m") and add in browser detection using the RequestHandler's "isMobile()" method.
voice your opinion now!
mobile browser detect tutorial series cakephp framework
DZone.com: CakePHP - Web Test Cases with SimpleTest
by Chris Cornutt September 07, 2011 @ 10:08:24
On DZone.com today there's a new post written up by Mike Bernat about making web test cases for CakePHP applications with SimpleTest.
Most of the applications I work on have very straight-forward components and not a lot of complex functions/methods. I would only be testing whether or not they worked at all, rather than if they worked in a wide-array of situations. [...] For example, unit-testing a simple news list and detail page is probably overkill. Sure, you can test your classes by simple instantiating them but that only goes so far. My new method involves using SimpleTest's Scriptable Browser to actually crawl webpages and ensure that the proper data is being displayed.
He includes a few snippets of code to show how to implement SimpleTest's web test functionality - one that just checks a HTTP response values, another that checks for text on the page, one testing for a login on an admin page and a test for add/edit pages to ensure valid loading based on URLs/links.
voice your opinion now!
simpletest web test case browser tutorial
James Cohen's Blog: How to Avoid Character Encoding Problems in PHP
by Chris Cornutt April 25, 2011 @ 14:13:14
James Cohen has a recent post to his blog looking at a way you can avoid some of the character encoding problems in PHP that can come with working with multiple character sets.
Character sets can be confusing at the best of times. This post aims to explain the potential problems and suggest solutions. Although this is applied to PHP and a typical LAMP stack you can apply the same principles to any multi-tier stack.
He includes a "boring history" session (and recommends skipping if you just want the good stuff) that talks a bit about character sets and their history in computer system handling. All that said, he recommends using UTF-8 to ease your character encoding woes. He talks about configuring your editor to support it, making sure your browsers understand it and setting up your MySQL database connection to use it.
voice your opinion now!
character encoding issue mysql browser editor ide
Jordi Boggiano's Blog: PHP Console in Your Browser
by Chris Cornutt September 24, 2010 @ 11:51:49
Jordi Boggiano has a new post today looking at his PHP console script that works in your browser that sets up easily and works from your localhost web server - php-console.
Since I spend most of my days programming PHP I tend to need that a lot and a few years back I wrote a small script that would let me type php code in my browser and execute it. Nothing fancy, but quite useful. Over the years a few people got interest seeing me use it and asked for the sources, so instead of repackaging it every time, I thought I'd clean it up, polish a bit, add some features, and put it on github.
Setup is as simple as dropping the code somewhere in your local server's document root and offers a textarea for input and a expandable tree for the resulting output. It uses the Krumo tool to create this modified output. You can see a screenshot here.
voice your opinion now!
console browser interactive shell webbased
DotVoid.com: Problem with downloading files with Internet Explorer over HTTPS
by Chris Cornutt October 01, 2009 @ 09:48:28
On the DotVoid.com blog Danne shares a quick tip on forcing downloads over HTTPS to Internet Explorer (which, of course, has to be difficult about it).
The problem is that Internet Explorer does not handle file dowloads without caching over https very well. Or at all. According to knowledge articles on Microsofts website the problem occurs when having one or two of the http headers. [...] Previously I have have just omitted the http header "Pragma: nocache" for IE but it seems it does not always help.
So the fix is relatively simple - rely on the $_SERVER['HTTP_USER_AGENT'] value to tell if it's an IR browser or not. If it is, "Pragma: cache" works. If not, stick with "Pragma: no-cache".
voice your opinion now!
download file ie browser https tutorial
Smashing Magazine: 50 Extremely Useful PHP Tools
by Chris Cornutt January 21, 2009 @ 07:54:53
Smashing magazine has compiled a list of fifty things they think every PHP developer should not be without:
It makes perfect sense to provide the huge community of PHP developers with an overview of useful tools and resources that can make their development process easier and more effective. This post presents 50 useful PHP tools that can significantly improve your programming workflow. Among other things, you'll find a plethora of libraries and classes that aid in debugging, testing, profiling and code-authoring in PHP.
Their long list includes tools is broken up into sections:
- Debugging
- Testing and Optimization
- Documentation
- Security
- Image Manipulation and Graphs
- PHP Code Beautifier
- Version-Control Systems
- Useful Extensions, Utilities and Classes
- PHP Online Tools and Resources
- In-Browser Tools (Firefox Add-Ons)
- Frameworks for PHP
- PHP IDEs and Editors
- Other Sources and Resources
voice your opinion now!
useful tools debug test security extension browser ide framework
Ivan Guardado's Blog: How to debug PHP code
by Chris Cornutt October 14, 2008 @ 08:44:17
Ivan Guardado has posted a recent tutorial looking at debugging your PHP code with the help of a popular tool - FirePHP (that interfaces with an equally popular Firefox extension, Firebug).
Nowadays, the code debugger is a tool that has almost all programing environments which allows you to watch the internal work of your applications and finding errors at run time for a easy way. The trouble is when you are working in a client-server architecture model, because from where you send the request (client) can not access the code hosted on the server.
He points out FirePHP as one that doesn't require this sort of installation. Included is a quick tutorial on getting it up and running for your development environment as well as the output formats and how to handle the output you want for debugging only.
voice your opinion now!
firephp firebug firefox extension debug browser
|
Community Events
Don't see your event here? Let us know!
|