Hi there,
I was trying to create a guestbook-plugin, to get to know the
pluginsystem a little better. The plugin itself works: Cake can find it
and I can call the different actions (via
mysite/guestbook/guestbookPosts/index, for example). I got three
questions though, and couldn't find the answers in the manual, nor in
the wiki or this discussiongroup. So maybe somebody can help me out?
The plugins looks like this:
* GuestbookPost extends GuestbookAppModel
* GuestbookPostsController extend GuestbookAppController
* databasetable: guestbook_posts
1. It seems that you always have to tell the controller explicitly wich
model to use? When I don't specifiy var $uses = array('GuestbookPost'),
the GuestbookPostController isn't able to find the model..
2. Scaffolding doesn't seem to work for plugins, is that right?
3. How can I set a kind of default route, so when I go to
http://mysite/guestbook, I can see, for example, the action "index" of
my guestbookpostscontroller?
Tnxs in advance for the help! :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---