Tag

Tag: CakePHP

You are browsing all the posts tagged with CakePHP.

Custom URL for CakePHP Paginator helper

Well, I finally did it! After 3 hours of trial and error I finally got my custom URL’s for the Paginator Helper. Considering the amount of time it took me to achieve my desired URL format, I’ll share my solution with you. I don’t know if it’s the best solution out there (I didn’t find [...]

Alertpay integration with CakePHP

Recently I implemented a payment module using Alertpay. If you searched for this kind of code you already know what Alertpay is. For those of you who don’t, Alertpay is a payment processor similar to Paypal. To implement this type of payment you must register for an account and activate the IPN option from the [...]

How to paginate search results in CakePHP

Question: How do I paginate data from a model based on a keyword submitted by a user? I must say that it’s a little tricky because the Pagination component in CakePHP uses GET parameters to do it’s magic. That wouldn’t be a problem if I didn’t care about my URL structure but for SEO purposes [...]

How to switch between databases in CakePHP on the fly

Ever needed to connect to another database in your cake app but got stuck and came with another solution? There is a rather simple way to do this and I think it can be extended to other data sources too (not tested but let me know if you do ). Let’s get to it. First [...]

How to bake on Ubuntu using cakePHP

How to bake on Ubuntu using cakePHP

Today I started a new project that I’m developing for school and I thought I’d do it using cakePHP. I went ahead and downloaded xampp for linux and a fresh copy of the cakePHP framework, 1.3.0-RC3, and I extracted it to my webroot. After I created a virtual host for it, it was time to [...]