ouu...why u didn't say this before :D....yes maybe, i'm using 1.3.4 and
there it works
--
Tilen Majerle
http://majerle.eu



2010/10/18 Toby Griffiths <t...@tgpromotions.com>

> Nope.  Still not working.
>
> It's not because I've not upgraded to 1.3 yet is it?  Still running on
> 1.2.7.
>
> Toby
>
>
>
> On 18 October 2010 14:18, Tilen Majerle <tilen.maje...@gmail.com> wrote:
>
>> do just this....open this model and in class this:
>>
>> var $useTable = "table_name"; //probaby users_users
>>
>> --
>> Tilen Majerle
>> http://majerle.eu
>>
>>
>>
>> 2010/10/18 Toby Griffiths <t...@tgpromotions.com>
>>
>>>  Thanks for the advice.  Tried to rename my model, but there's a lot of
>>> associated changes that would need to be made & can't do that easily now, so
>>> will try again when I have a little more time.
>>>
>>>  Toby
>>>
>>>
>>>
>>> On 18 October 2010 13:34, Tilen Majerle <tilen.maje...@gmail.com> wrote:
>>>
>>>> hmm...maybe because of tables or what...
>>>>
>>>> i have Gallery Plugin and GalleryCategory and GalleryImage models and
>>>> tables gallery_images and gallery_categories and it works perfect!
>>>>
>>>> so problem is maybe recognizing tables...make tables in
>>>> pluginname_controllername so users_users and then try again... :D
>>>>
>>>> 2010/10/18 Toby G <t...@tgpromotions.com>
>>>>
>>>>> Thanks for that, but it's still producing an empty schema file.
>>>>>
>>>>> Here's the command I'm running...
>>>>>
>>>>>   cake schema generate -plugin Users -file users-schema.php
>>>>>
>>>>> ... and here's my folder structure...
>>>>>
>>>>> config
>>>>> controllers
>>>>> locale
>>>>> models
>>>>> plugins
>>>>>  users
>>>>>    controllers
>>>>>    views
>>>>>    models
>>>>>    tests
>>>>>    users_app_controller.php
>>>>>    users_app_model.php
>>>>>    vendors
>>>>> tests
>>>>> tmp
>>>>> vendors
>>>>> views
>>>>> webroot
>>>>>
>>>>> ... and this is what I'm getting out...
>>>>>
>>>>> <?php
>>>>> /* SVN FILE: $Id$ */
>>>>> /* Sos schema generated on: 2010-10-18 11:10:58 : 1287399538*/
>>>>> class SosSchema extends CakeSchema {
>>>>>        var $name = 'Sos';
>>>>>
>>>>>        function before($event = array()) {
>>>>>                return true;
>>>>>        }
>>>>>
>>>>>        function after($event = array()) {
>>>>>        }
>>>>>
>>>>> }
>>>>> ?>
>>>>>
>>>>> What am I doing wrong?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Toby
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Oct 17, 8:25 pm, Tilen Majerle <tilen.maje...@gmail.com> wrote:
>>>>> > cake schema generate -plugin plugin_name
>>>>> > --
>>>>> > Tilen Majerlehttp://majerle.eu
>>>>> >
>>>>> > 2010/10/17 Toby G <t...@tgpromotions.com>
>>>>> >
>>>>> >
>>>>> >
>>>>> > > Hi all,
>>>>> >
>>>>> > > I've recently created a Users plugin to manage all my user logins,
>>>>> > > however I would now like to create a migration schema for the users
>>>>> > > table, but running the...
>>>>> >
>>>>> > > cake schema generate
>>>>> >
>>>>> > > ... on the app ignores the models in the plugin.
>>>>> >
>>>>> > > Does anyone know a way of generating schemas for plugin models?
>>>>> >
>>>>> > > Thanks,
>>>>> >
>>>>> > > Toby
>>>>> >
>>>>> > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help
>>>>> others
>>>>> > > with their CakePHP related questions.
>>>>> >
>>>>> > > You received this message because you are subscribed to the Google
>>>>> Groups
>>>>> > > "CakePHP" group.
>>>>> > > To post to this group, send email to cake-php@googlegroups.com
>>>>> > > To unsubscribe from this group, send email to
>>>>> > > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>
>>>>> <cake-php%2bunsubscr...@googlegroups.c om>For more options, visit this
>>>>> group at
>>>>>  > >http://groups.google.com/group/cake-php?hl=en
>>>>>
>>>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>>>> others with their CakePHP related questions.
>>>>>
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "CakePHP" group.
>>>>> To post to this group, send email to cake-php@googlegroups.com
>>>>> To unsubscribe from this group, send email to
>>>>> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>>>>>  more options, visit this group at
>>>>> http://groups.google.com/group/cake-php?hl=en
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> --
>>>> Tilen Majerle
>>>> http://majerle.eu
>>>>
>>>>  Check out the new CakePHP Questions site http://cakeqs.org and help
>>>> others with their CakePHP related questions.
>>>>
>>>> You received this message because you are subscribed to the Google
>>>> Groups "CakePHP" group.
>>>> To post to this group, send email to cake-php@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>>>>  more options, visit this group at
>>>> http://groups.google.com/group/cake-php?hl=en
>>>>
>>>
>>> TGPromotions.com is a limited company registered in England and Wales. 
>>> Registered number: 7142712. Registered office: 6 Irby Walk, Cheadle, 
>>> Cheshire SK8 2LU.
>>>
>>>
>>>
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>>> with their CakePHP related questions.
>>>
>>>
>>>
>>> You received this message because you are subscribed to the Google Groups 
>>> "CakePHP" group.
>>>
>>> To post to this group, send email to cake-php@googlegroups.com
>>>
>>> To unsubscribe from this group, send email to
>>> cake-php+unsubscr...@googlegroups.com 
>>> <cake-php%2bunsubscr...@googlegroups.com> For more options, visit this 
>>> group at http://groups.google.com/group/cake-php?hl=en
>>>
>>>
>>>
>>>
>>>
>>>
>>  Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
> TGPromotions.com is a limited company registered in England and Wales. 
> Registered number: 7142712. Registered office: 6 Irby Walk, Cheadle, Cheshire 
> SK8 2LU.
>
>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>
>
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
>
> To post to this group, send email to cake-php@googlegroups.com
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com 
> <cake-php%2bunsubscr...@googlegroups.com> For more options, visit this group 
> at http://groups.google.com/group/cake-php?hl=en
>
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to