2012-11-25

What I did

I am using CakePHP version 2.3.0 beta.

What happened

link to list of comments in a part of the view of /posts

http://example.com/demo.comments/

link to add a comment in a part of the view of
/posts/view/{n}

http://example.com/demo.comments/add

and so on.

What I expected to happen

link to list of comments
http://example.com/demo/comments/

link to add a comment
http://example.com/demo/comments/add

When I use scaffolding with models associated Plugin, I could
not get correct hyperlinks to associated models in scaffold
view.

The part of URL for controller is NOT removed plugin name.

If I use a model attached to another model in plugin,

the scaffolding view will provide us such hyperlink.

http://example.com/plugin_name/plugin_name.controller_name/action_name

We expct 'controller_name' instead of
'plugin_name.controller_name',

and it will be improve by revising Scaffold::_associations and some
view.

Below is my plan

Scaffold::_associations()

[Before]

[After]

lib/Cake/View/Scaffolds/form.ctp

lib/Cake/View/Scaffolds/index.ctp

lib/Cake/View/Scaffolds/view.ctp

[Before]

[After]

Best regards.

Show more