Ryan Rampersad
Thoughts, Ideas & Opinions

Browse: Home / cakephp

cakephp

CakePHP Model Joins

By Ryan on June 9, 2010

I had to join two models together in order to search them properly. In this special case, it was pagination. I was browsing the cookbook for anything that could help and I did in fact find joining tables. I was doing something kind of bizarre and probably bad practice, but with CakePHP, there are no [...]

Posted in PHP, Tips | Tagged cakephp, errors, unified | 3 Responses

Accessing CakePHP URL Parameters

By Ryan on June 2, 2010

Passing optional information by URL is pretty easy in CakePHP. The Paginator does this all the time with the page:2 type-urls. Accessing the power of URL parameters, as CakePHP calls them, is slightly confusing at first. It’s not a method call or anything. Using $this->params is the location for URL parameters. If you run a [...]

Posted in PHP, Tips | Tagged cakephp, unified | 1 Response

CakePHP 1.3 Helper $text truncate error

By Ryan on February 22, 2010

Today I was using one of CakePHP’s helper methods, $text->truncate. It gave me these errors and I can’t say I was pleased about it. It reminded me that sometimes, functions aren’t a piece of cake. Warning (2): array_merge() [function.array-merge]: Argument #2 is not an array [CORE/cake/libs/view/helpers/text.php, line 184] Warning (2): extract() [function.extract]: First argument should [...]

Posted in PHP | Tagged cakephp, errors, PHP, unified | 4 Responses

CakePHP – 1and1 – 500 Internal Server Error

By Ryan on February 19, 2010

I recently deployed a CakePHP application to a 1and1 server. I was presented with a wonderful 500 Internal Server Error. That only means one thing: a .htaccess was messed up somewhere. There were many places that pointed me in the right direction to fix this problem. It was definitely an annoying hitch. Seriously, there’s that [...]

Posted in PHP, Tips | Tagged cakephp, errors, unified | 11 Responses

Easy CakePHP Database Settings Switching

By Ryan on February 16, 2010

CakePHP does make somethings really easy, and sometimes, not so easy. I like to have a testing setting and a production setting stored in my databases.php. Your DATABASE_CONFIG object of course contains those arrays of settings. So the question is, how do you switch exactly? It is never mentioned specifically in the documentation, but you [...]

Posted in PHP, Tips | Tagged cakephp, PHP, unified | Leave a response

Next »

Navigation

  • Home
  • About
  • Contact
  • Archives

Recent Tweet

  • I said 'like' so many times in a description of Journey I cried upon playback. 3 hours ago

Recent Posts

  • Modifying WordPress Feed Titles
  • Centralization
  • Fall Schedule 2012
  • Spring Advising
  • Restart HP TouchPad
  • BestBuy’s Great Potential
  • Do-While Loop in Python
  • New At The Nexus & Nexus Special
  • Random Integers in Python
  • Motorola Triumph Review

Popular Topics

Apple Browsers errors exam Google Java JavaScript linux Microsoft MooTools PHP podcast review terminal Tips twitter ubuntu unified Windows WordPress

Search

Archives

  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Copyright © 2012 Ryan Rampersad.

Powered by WordPress, Hybrid, and Defined Mass.