Hi 2000Man,
I assume you know that it isn´t necessary to have your controller and
model named after the plugin?
With a controller named "GuestbookPostsController" in a plugin named
"Guestbook" you are going to get urls like this:
/Guestbook/GuestbookPosts/Add.
If you named your controller simply Posts, you would get urls like
this:
/Guestbook/Posts/Add
Re questions:
1) I'm guessing you are probably using php4 (?). If you don´t specify
the var $name for the controller, it will be lowercase and not camel
cased, and therefore looking for a model named "Guestbookpost" which
doesn´t exist. It is quite important to specify the name variable for
controllers and models (with php4)
2) If the name isn´t specified correctly it won't, but in principle
scaffolding will work in plugins (at least, it did/does for me).
3) Plugins and routes can make you nuts ;)
Try this
$Route->connect('/guestbook/', array(
'controller' => 'guestbook',
'action' => 'GuestbookPosts',
'index'
));
Yes, you read me right - shift all the parameters one along for the
route. Note no * unless you want /guestbook/SomethingElse/OtherMethod
to be captuered by this route (and process the method OtherMethod on
controller guestbook).
HTH,
AD7six
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---