HolisticNetworking.Net: Thomas Belknap's Laboratory of LAMP

Thomas J Belknap’s Laboratory of LAMP

 

Production and Dev Databases in CakePHP: an Even Simpler Explaination

The below-linked article is an excellent example of how to use multiple databases in CakePHP, with an eye towards having a production, development and potentially, even more environments with which to work.
Easy peasy database config (Articles) | The Bakery, Everything CakePHP:
Like a lot of developers out there, I use Subversion to keep control of my code and projects, and I also use a different database for development and production. But when using Cake this can be a problem when checking out my code from development to production. Unless I edit my database.php with my production config, the production code would [...]

Code Drop #1: Completed

My project’s a long way from being done, but I’ve decided to go ahead and by my domain name and deploy what I have into it. I’m still not telling you the name of the site, though! I just feel much better knowing that the domain has officially been taking and no wildly bad luck will result in someone else owning the name and making me cry a lot.

How Do You Rate?

I’m continuing to work with my CakePHP project and have run across some interesting math problems I thought I’d share that surround ratings and popularity ranking for the site.
The hypothetical new service provides a social network sensibility to local civic participation, allowing users to vote on the importance of issues and comment on them. The ranking system is a simple up-or-down voting system, held in the database as either a 1 or 0, depending on the vote.
So, being a social networking site, it is important to provide some rankings in order for people to know what’s hot and what’s [...]

I Think I’m Making Progress, I Guess I’m Making Progress, I Must Be Making Progress…

The last few weeks have been absorbed in some freelance work for a local marketing company, which is a nice change of pace. But that also means I’ve not been able to get at my new pet project in that time, which has been a bit of a downer.
And since that new project is CakePHP driven and I’m only really learning the platform, time away from the project means knowledge lost or at least deeply buried. That makes getting back into it something of a challenge.
And indeed, I took the better part of the last two days figuring [...]

Error: Database table ts for model className was not found.

OK, I’m playing around with CakePHP and have been banging my head against a wall trying to figure out the error message which is the title of this post. For the benefit of those who come after me, let me explain what I’ve been doing wrong:
The problem was the models I was using. In my haste to get some drudge work out of the way quickly, I setup one of my models and – assuming I had done it correctly – copied and pasted for all my other models, changing the specifics as needed but basically assuming the [...]