I didn't publish anything during my PhD because I thought it would be too much of a distraction (I was busy gaining teaching experience too). Basically, I think you can either gain lots of teaching experience, or try to publish some articles, but it's impossible to do both unless you have a sufficient pool of independent funding (e.g. wealthy parents) to fund your studies for a lot longer than would otherwise be the case.
I'm trying to get published during my current postdoc. I'm aware this means my chances of securing a lectureship before September 2008 are thus fairly slim given the RAE and everything, but I'll just have to bite the bullet, as it were, and try to get by financially between June of this year (when my postdoc ends) and then as best I can, I suppose.