well, in most cases (and mine: 100%) you use so called
"Affenformulare" (http://de.wikipedia.org/wiki/Affenformular) or "ape
forms"
which have either no adress value or the own one (and post to
themselves again)

this is the usual cake way anyway - process it in the corresponding
controller method and decide what to do with it

of course there are always exceptions :)
but using the "ape" appraoch you could easily change the name or the
method, the form would still work
(but the links to it probably not anymore..)

i once even baked the view code this way
advantage: you can have "apply" instead of "add" and "consider"
instead of "edit"
and you dont have to change the view code at all



On 11 Aug., 17:10, JamesF <[email protected]> wrote:
> i found that any time i didn't verbosely link i ended up having to
> change all sorts of functions whenever my boss wanted a different url
>
> On Aug 11, 2:29 am, brian <[email protected]> wrote:
>
> > @James
>
> > I thought at first that looked like a real pain but verbose array
> > linking (finding, routing, containing, etc.) is definitely the way to
> > go, I agree. It's often self-documenting, for one thing. And it goes
> > to the heart of what Cake is, I think. Big kudos to the devs for
> > pulling this together so coherently.
>
> > On Mon, Aug 10, 2009 at 9:53 PM, JamesF<[email protected]> wrote:
>
> > > @euromark
>
> > > your code is certainly more to the point, but i can't break the habit
> > > of verbosely linking all my actions.
>
> > > On Aug 8, 9:53 pm, "euromark (munich)" <[email protected]>
> > > wrote:
> > >> as i said, i would go with JUST "url"=>"/".$this->params['url]['url']
> > >> in this case there is no need to use "action" or the manually built
> > >> url like james suggested
>
> > >> be aware of the "/" in front of it though (otherwise the url is not
> > >> built correctly)
>
> > >> On 9 Aug., 02:06, JamesF <[email protected]> wrote:
>
> > >> > make sure you $form->create is submitting to the id as a parameter as
> > >> > well
>
> > >> > echo $form->create('FormName', array('url'=>array
> > >> > ('controller'=>'myController', 'action'=>'myAction', $id,
> > >> > 'admin'=>true)));
>
> > >> > On Aug 7, 7:13 pm, leafchild <[email protected]> wrote:
>
> > >> > > URL some page  .../id disappeared ?
>
> > >> > > I have site there are different form pages to organize products.
>
> > >> > > Some form page such as admin_edit page - URL:  ... 
> > >> > > admin/product/edit/
> > >> > > 1
> > >> > > After I submit URL still same either there is an error or not.
>
> > >> > > However, some form page lose id from URL after submit,
> > >> > > and showing index error.
>
> > >> > > for example, URL: ...admin/category/customer/edit/1 -> ...admin/
> > >> > > category/customer/edit
> > >> > > ==============================
> > >> > > if (!empty($this->data)) {
> > >> > >    // empty}
>
> > >> > > ==============================
> > >> > > I deleted all the code inside of if statement for taking care of
> > >> > > submitting data.
> > >> > > The one keep same URL doesn't show error but other does.
>
> > >> > > Not sure difference between these two has.
> > >> > > I don't know why? Does anyone know what's the issue?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to