I’m trying to write a small expenses cake app. Basicaly I have a expenseClaim that hasMany Expenses (expense belongsTo expenseClaim). When you add/edit a expenseClaim I want to be able to add multiple expenses for that expense claim from within that view. Could someone point me in the right direction?
Any tutorials / sample code would be massively appreciated. Thanks in advance
using cake 2.1
Put in expenseClaim/add:
It should work if the relationship is well set in the model.
If not,
should always work.
Edit:
Edit2: if you want to pass data from the view:
The request is created automatically if you use the form helper in the view.