Creating a To-Do List Application Sample Problems

4 messages Options
Embed this post
Permalink
Paul

Creating a To-Do List Application Sample Problems

Reply Threaded More More options
Print post
Permalink
I had to change the Item example to Items for it to work.

<?
class Items extends AppModel {
        var $name = 'Items';
}
?>

I'm using cake_1.2.0.7692-rc3.zip by the way.

Is it an errata or a possible bug in RC3?

Thanks.
davidgolding

Re: Creating a To-Do List Application Sample Problems

Reply Threaded More More options
Print post
Permalink
I'm confused... Models should always be inflected in the way I described in the book, meaning in the singular ('Item') never 'Items'. I've been able to run this just fine, so I'm unsure how this error creeped into your To-Do List app, when following the book's examples.
--Dave

Author, "Beginning CakePHP: From Novice to Professional"

[ get your copy at: http://www.amazon.com/Beginning-CakePHP-Novice-Professional/dp/1430209771/ ]
Chuck

Re: Creating a To-Do List Application Sample Problems

Reply Threaded More More options
Print post
Permalink
Purchased the book and downloaded Cake 1.2.5. Seems pretty simple and straight forward, I considered the singular vs plural naming of the model. Tried both naming conventions, yet scaffolding still does nothing.

The index.php configuration test page is in color and complains about nothing. I do see that the book shows style boxes around the status messages but I simply have text. Not sure if this is a version difference between 1.2 and 1.2.5 or an Apache bug. Running on CentOs btw.

1. Double checked mod_rewrite, and AllowOverride All.......still nothing.


Thanks in advance for anyone's help!
cferrell

Re: Creating a To-Do List Application Sample Problems

Reply Threaded More More options
Print post
Permalink
Found my fix, in etc/httpd/conf/httpd.conf  there are multiple instances of "AllowOverride". This maybe a DOH! for others but it caught me offguard so I wanted to post for others. FYI since the change your lessons are working just as described in the book running the following

CentOs 5

Apache 2

Cakephp 1.2.4.8284

Thanks