Re: Change the File Name for a Model

2010-08-17 Thread AD7six
On Aug 15, 12:13 am, sanedevil sanede...@gmail.com wrote: Thanks again guys! @AD7six, i checked the app::import, but couldn't figure out a way that will help me. can u pls enlighten me? sure use the sane path: useTable ;) Check out the new CakePHP Questions site http://cakeqs.org and help

Re: Change the File Name for a Model

2010-08-17 Thread sanedevil
You are rite! thanks! On Aug 16, 8:15 pm, Miles J mileswjohn...@gmail.com wrote: Why are you using App::import()? Just use the ole regular include_once. On Aug 14, 3:13 pm, sanedevil sanede...@gmail.com wrote: Thanks again guys! @AD7six, i checked the app::import, but couldn't figure

Re: Change the File Name for a Model

2010-08-16 Thread Miles J
Why are you using App::import()? Just use the ole regular include_once. On Aug 14, 3:13 pm, sanedevil sanede...@gmail.com wrote: Thanks again guys! @AD7six, i checked the app::import, but couldn't figure out a way that will help me. can u pls enlighten me? On Aug 13, 4:31 pm, AD7six

Re: Change the File Name for a Model

2010-08-14 Thread sanedevil
Thanks again guys! @AD7six, i checked the app::import, but couldn't figure out a way that will help me. can u pls enlighten me? On Aug 13, 4:31 pm, AD7six andydawso...@gmail.com wrote: On Aug 13, 4:19 pm, sanedevil sanede...@gmail.com wrote: Thanks all guys! seems i cant achieve what i

Re: Change the File Name for a Model

2010-08-13 Thread AD7six
On Aug 13, 12:03 am, sanedevil sanede...@gmail.com wrote: Table name: cons Class name: Con File name: Con.php However, windows doesn't allow you to create a file named Con. Is there a way that I can change the filename (e.g. Contact.php), but still keep the Classname as Con? Thanks! An

Re: Change the File Name for a Model

2010-08-13 Thread euromark
that's what i was wondering :) On 13 Aug., 09:31, AD7six andydawso...@gmail.com wrote: On Aug 13, 12:03 am, sanedevil sanede...@gmail.com wrote: Table name: cons Class name: Con File name: Con.php However, windows doesn't allow you to create a file named Con. Is there a way that I

Re: Change the File Name for a Model

2010-08-13 Thread sanedevil
Thanks all guys! seems i cant achieve what i want. I'll change the class name and make the changes elsewhere in the app. as a sidenote (and a general query), cake stresses on convention over configuration, but doesn't it provide configuration for the desperate and crazy cases (like me ;-) )?

Re: Change the File Name for a Model

2010-08-13 Thread AD7six
On Aug 13, 4:19 pm, sanedevil sanede...@gmail.com wrote: Thanks all guys! seems i cant achieve what i want. I'll change the class name and make the changes elsewhere in the app. as a sidenote (and a general query), cake stresses on convention over configuration, but doesn't it provide

Re: Change the File Name for a Model

2010-08-13 Thread AD7six
On Aug 13, 4:19 pm, sanedevil sanede...@gmail.com wrote: Thanks all guys! seems i cant achieve what i want. I'll change the class name and make the changes elsewhere in the app. as a sidenote (and a general query), cake stresses on convention over configuration, but doesn't it provide

Re: Change the File Name for a Model

2010-08-12 Thread euromark
WOW didnt know that.. crazy :) this would not be very straight forward. maybe with manual includes and stuff but why not naming it Contact and contact.php? On 13 Aug., 00:03, sanedevil sanede...@gmail.com wrote: Table name: cons Class name: Con File name: Con.php However, windows doesn't

Re: Change the File Name for a Model

2010-08-12 Thread sanedevil
And i thot it would be something simple. Damn it! thanks euromark! the table's already called Con and hence want to keep the name consistent throughout the app to avoid the typical issues that a softie faces :) You can imagine the nightmare when I start using two names in the app. I really hope

Re: Change the File Name for a Model

2010-08-12 Thread Sam
How many places in the application already use the Con class name? Is there any way to change the table name? If not you can use contact for everything else(using $useTable = 'Con') and just document the irregularity. On Aug 12, 5:33 pm, sanedevil sanede...@gmail.com wrote: And i thot it would

Re: Change the File Name for a Model

2010-08-12 Thread Miles J
Create the model Contact. Just change the property $useDbTable = 'con'; On Aug 12, 4:35 pm, Sam s...@masterscommission360.com wrote: How many places in the application already use the Con class name? Is there any way to change the table name? If not you can use contact for everything

Re: Change the File Name for a Model

2010-08-12 Thread Miles J
Erm I mean $useTable. http://book.cakephp.org/view/1057/Model-Attributes#useTable-1059 On Aug 12, 4:35 pm, Sam s...@masterscommission360.com wrote: How many places in the application already use the Con class name? Is there any way to change the table name? If not you can use contact for

Re: Change the File Name for a Model

2010-08-12 Thread cricket
On Thu, Aug 12, 2010 at 8:23 PM, Miles J mileswjohn...@gmail.com wrote: Erm I mean $useTable. http://book.cakephp.org/view/1057/Model-Attributes#useTable-1059 Yes, that should work. Then, switch to Linux. :-) That's just utterly bizarre that Windows won't let you name something con (+

Re: Change the File Name for a Model

2010-08-12 Thread Sam
I looked it up- there are about 20 reserved words that you can't use in windows file/folder name... throwbacks from the old dos days: http://ionicflux.wordpress.com/2006/09/02/windows-reserved-words/ On Aug 12, 7:31 pm, cricket zijn.digi...@gmail.com wrote: On Thu, Aug 12, 2010 at 8:23 PM, Miles