Monday, May 24, 2010

puzzle over activity

Hi there,

First of all, sorry about the subject line, I couldn't think of one
more appropriate.

My situation is this:  I have an app using ajax running with no
(visible) errors that I wanted to add an activity record to it (for
example if a user signs up).  So I baked a model:
class Activity extends AppModel {

    var $name = 'Activity';
    var $validate = array(
        'user_id' => array('numeric')
    );
}

And a controller using scaffolding:
class ActivitiesController extends AppController {

    var $name = 'Activities';
    var $scaffold;

}

And some views (index, view, edit, delete)

Suddenly, the app stopped working.  It just throws a blank page.  So i
tried using a fresh install of cakephp, but using the same database.
Nothing was broken.

Inspecting the response header I get inside my app, it reads:

"Failed to load source for: http://localhost/myapp/activities"

What could be the problem?

Regards,
i.s.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate