 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
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
Jonathan Snook's Blog: Easier Static Pages for CakePHP 1.2 Update
by Chris Cornutt July 07, 2008 @ 12:05:44
Updating from a previous post, Jonathan Snook has updates some of his comments about a simple way to make static pages in your CakePHP framework application:
So it seems that the old code I had didn't work in debug mode, although on the current CakePHP 1.2 RC2, I'm not even sure it works at all. However, I decided to take some time to revisit the code. Last time, I simply hacked up the missingAction and missingController calls and it felt kludgy. It looked kludgy.
Instead of abusing the error handler like before he decides to opt for this missingAction/missingController combo to handle the fall through. It doesn't seem to be working 100% correctly, though and he's put in a ticket to see if its a bug or by design.
voice your opinion now!
static page cakephp framework tutorial missingaction missingcontroller
Stefan Mischook's Blog: Does Wordpress 2.5.1 suck?
by Chris Cornutt June 04, 2008 @ 12:08:12
On the KillerPHP blog today, Stefan Mischook comments on whether or not WordPress version 2.5.1 "sucks".
I just recently installed the this latest version of Wordpress (2.5.1) and quickly found it hanging (while trying to load a page) for as long as 40-50 seconds! I then proceeded to isolate the potential causes (database, custom fields, custom theme) and have since found out that something stinks in 2.5.1's core.
He details some of the steps he took to try to track down the bug - installing on another server, searching the web for others with the same issue. His suggestion?
Before you upgrade your old working installation of Wordpress, I would suggest that you test 2.5.1 in some other directory just to be sure it works with your server.
voice your opinion now!
wordpress problem error page hang load
Stefan Mischook's Blog: Why build all your pages in PHP?
by Chris Cornutt May 16, 2008 @ 07:54:06
On his blog today, Stefan Mischook shares his reasoning for making all of your pages PHP pages, regardless of static content or dynamic.
By making all your web pages PHP pages from the start, you are basically leaving open the possibility of using PHP in your web pages at any time.
By his reasoning, it provides an "out" for you later on should you decide that a page needs to have some dynamic content thrown in there somewhere (without having to change the filename - bad for SEO, supposedly).
voice your opinion now!
build page dynamic content static html
Developer Tutorials Blog: Five Wordpress Tips for Power Users
by Chris Cornutt May 07, 2008 @ 07:57:58
On the Developer Tutorials Blog today, there's a new post aimed at WordPress users to help them on the path to becoming "power users" with five tips.
If you're a wordpress power user, you'll inevitably have some questions about how you can improve your blog or add new features. Here are five tips that will make life easier for people wanting to maximize their use of Wordpress.
The list is:
- Quickly Find Page/Post ID
- Custom Front Page
- Password Protect Wordpress
- Protect from the 'Digg Efect' with HTML
- Stop Hackers
Each of them with their own explanations (and links to other resources detailing how they're done).
voice your opinion now!
wordpress power user tips find custom page password digg hacker
New Earth Online: Caching PHP pages
by Chris Cornutt April 21, 2008 @ 09:31:40
The New Earth Online has a quick look at one easy method for speeding up your site in a few different ways - caching pages and information with things like Cache_Lite and APC.
As your site traffic grows it takes longer and longer to generate a dynamic page from sending multiple queries to a database. One possible solution to limit queries is to cache the result of each query that is needed, or to have a complete full page cache for your site.
They look at the two ways I mentioned - the Cache_Lite PEAR package and the APC extension (that will soon be included by default in the stable PHP releases). Bits of code are provided for each showing how to get them set up and get them working inside of your application.
voice your opinion now!
cache page apc pear cachelite tutorial install
Michael Girouard's Blog: Rolling Your Own MVC The Page Load Scenario
by Chris Cornutt April 09, 2008 @ 15:33:45
Michael Girouard has posted his 10,00 foot view of the typical structure of an Model/View/Controller application (and framework) and how a page request is handled:
In my previous article, I announced that I would be documenting the process of developing a simple MVC framework. In this post I will go into a little more detail about each of the specific components of our MVC and will discuss the series of events which occur each time a page loads, otherwise known as the page load scenario.
He talks about how URIs work, the role of mod_rewrite, several of the objects involved (like the Front Controller, Request, Route and View) and how they all fit in with the custom Models, Views and Controllers the user could define.
voice your opinion now!
modelviewcontroller mvc page load object route request
Padraic Brady's Blog: Complex Web Pages with the Zend Framework?
by Chris Cornutt April 03, 2008 @ 12:04:13
On his blog, Padraic Brady talks about the creation of custom web pages (in the Zend Framework) with the help of the Zend_View enhancements that have been introduced lately.
With the inclusion of Zend_View Enhanced as first documented, discussed and publicized in this blog series, in the Zend Framework as of 1.5.0 I'd like to thank everyone involved in the process. [...] The main problem of a complex View, is that the current Controller is only aware of a subset of its own required Model (data) and the current View. So how do do you get the View to include extra sections - for example, details from Technorati for your blog - which are common to ALL pages?
Normally, a call to _forward() would have been the norm, but this was more often overly complex for what the developer wanted to do. The new Composite View and View Helpers seem to be the remedy. They make it simpler to grab that information and pull it in without the need to make a whole other framework request to do so.
voice your opinion now!
zendframework complex page compositeview viewhelper zendview
|
Community Events
Don't see your event here? Let us know!
|