Thinking about it more... You should probably be able to get away with
just the $uses = Katch and the class Katch model name change, plus the
$this->Katch changes.
This would allow you to keep your CatchController etc which keeps your
URLs looking like you want.
Or you could just add some routes to point /catch/ to /katch/ and do
what I suggested originally.
Wayne
On 10/25/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> In your controller, you'd need $uses = array('Katch');
>
> Here's what I would do:
> 1. Commit all your code into SVN.
> 2. Do a global find and replace Catch for Katch in your files.
> 3. Do a global find and replace catch for katch in your files.
> 4. Fix the $name in model Katch.
>
> That should generally fix things. You may also have some small issues
> with foreign keys named "catch_id" so you'll need to think about that
> too.
>
> Wayne
>
> On 10/25/07, MikeK <[EMAIL PROTECTED]> wrote:
> >
> > We are trying...
> >
> > So would this have a chance?
> >
> > In model:
> >
> > class Katch extends AppModel
> > {
> > var $name = 'Catch';
> >
> > And in controller
> > var uses = array('Catch')
> >
> > Also wouldn;t we have to change every reference to the Catch model
> > ($this->Catch... to $this->Katch) and all references to the data it
> > pulls out from ($data['Catch']['field'] to $data['Katch']['field']?
> >
> > Just trying not to go down the long road of modding 5000 lines of code
> > till we know what works...
> >
> >
> > > >
> >
>
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---