Cakephp Blog Tutorial Part 3 – Using the Find Method



13 thoughts on “Cakephp Blog Tutorial Part 3 – Using the Find Method

  1. andrewperk

    @yewei123sg That’s just how it is, it requires it to be capitalized when referring to a models method.

  2. yewei123sg

    Why the following code is not able to produce the desire result when i changed the “Post to post” ?

    uppercase to lowercase

    $this->post->find(‘all’)

  3. yewei123sg

    Why the following code is not able to produce the desire result when i changed the “Post to post” ?

    uppercase to lowercase

    $this->post->find(‘all’)

  4. andrewperk

    @erhmirhnem
    Using the endforeach; requires that you have short tags enabled in your php .ini file. You probably have it disabled. Using foreach with braces works just fine too, you can either one you feel comfortable with.

  5. erhmirhnem

    foreach () … endforeach does not work..

    i did it this way and it worked..
    forearch () {

    }

    can u explain why this is so?

  6. yagazuzy

    wow, this is a great tutorial! very clear and understandable with good contextual information so i understand exactly what you are doing. i am very impressed and looking forward to learning more methods from you!

Leave a Reply