Skip to content
  • Archives
  • Buy Adspace
  • Contact me
  • Hide Ads for Premium Members

zen of coding

holistic web development

  • Archives
  • Buy Adspace
  • Contact me
  • Hide Ads for Premium Members

Month: August 2008

  • Home
  • 2008
  • August
CakePHP

Dealing with errors in CakePHP

August 29, 2008 vladko

Chances are if your app is already out in production, you have your debug level set to ‘0’. This is probably good news, since the

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More
CakePHP

Dynamic menus without requestAction() in CakePHP 1.2

August 20, 2008 vladko

You’ve probably heard time and time again (especially in a few recent and popular blog posts) that using requestAction() is, generally speaking, considered to be

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More
CakePHP

Controller makeover (from ugly to beautiful)

August 12, 2008August 16, 2010 vladko

Let’s take a controller ridden with problems and see how we can improve it. Hopefully this little experiment can help you beautify your code and

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More
CakePHP

Automagical selects or checkboxes

August 8, 2008 vladko

A quick example of some automagic goodness… Let’s say we need to to build an “add Post” form and allow the user to pick some

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More
CakePHP

Filtering results returned by Containable behavior

August 6, 2008 vladko

First of all, let me warn you that what I’m describing here is more or less a hack and is not the most efficient way

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More
CakePHP

HABTM and JOIN trickery with CakePHP

August 6, 2008 vladko

Update (10/7/2009)… this functionality has been rolled into Habtamable behavior An interesting question came up on IRC today… If I have Post HABTM Tag, how

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More
CakePHP

'fields', 'conditions' and associated models in CakePHP 1.2

August 6, 2008 vladko

Sometimes you see code that tries to do something like this: $this->Company->find(’all’, array(’conditions’ =>array(’Profile.name’=>’test’),                      

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More
CakePHP

Practical use of saveAll() (part 2, notes and tips)

August 4, 2008 vladko

In part 1, I explained how to use saveAll() in order to save multiple models at the same time, if you haven’t had a chance

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More
CakePHP

Practical use of saveAll() (part 1, working with multiple models)

August 1, 2008 vladko

(Part 2 is here) I would like to provide some insight on how to use the saveAll() method, with a few real-world examples. First, I’m

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

New Posts

  • I don’t bother with “whiteboard interviews”.
  • PHP MVC Frameworks preview of 2018 (Phalcon 3, Symfony 4, Laravel 5.x and others)
  • Case study: building a better search with Algolia and Lumen PHP
  • The State of PHP MVC Frameworks in 2017 (Laravel, Symfony, CodeIgniter, CakePHP, Zend)
  • The great PHP MVC Framework Showdown of 2016 – (CakePHP 3 vs Symfony 2 vs Laravel 5 vs Zend 2)

Top Posts & Pages

  • find('list') with three (or combined) fields
  • Book review: CakePHP Application Development
  • How to build a "dashboard" for your application in CakePHP
August 2008
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Jul   Sep »
All Rights Reserved 2024.
Proudly powered by WordPress | Theme: Fairy by Candid Themes.
%d