Re: Where is the Tool for the Naming Convention Generation

2013-09-03 Thread Simon Males
he is building. > > He isn't totally familar with conventions yet and I am trying to refer > him to useful resources. > > In your words, what do you utilize this Inflector tool for? What is the > best use case for it. > > Thanks :) > > Sent from my Windows Phone Fr

RE: Where is the Tool for the Naming Convention Generation

2013-09-03 Thread Matthew Kaufman
. In your words, what do you utilize this Inflector tool for? What is the best use case for it. Thanks :) Sent from my Windows Phone From: Simon Males Sent: 9/3/2013 8:41 PM To: cake-php@googlegroups.com Subject: Re: Where is the Tool for the Naming Convention Generation It hasn't seemed to w

Re: Where is the Tool for the Naming Convention Generation

2013-09-03 Thread Simon Males
It hasn't seemed to work for me in that last couple of days: http://inflector.cakephp.org/ Though here is the library: http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html On Wed, Sep 4, 2013 at 7:20 AM, Matthew Kaufman wrote: > Hey, > > I was in IRC once and someone named an inf

Where is the Tool for the Naming Convention Generation

2013-09-03 Thread Matthew Kaufman
Hey, I was in IRC once and someone named an inflector type tool which generated the proper Model, Controller, View naming according to proper Conventions. It was on a sub-domain of cakephp.org; can anyone remind me of this uri? *Matthew M. Kaufman * CEO, MI2 Holdings LLC. -- Like Us on FaceBo

Re: 2.0 view folders naming convention

2011-10-23 Thread Miles J
The problem I have is that the "app" folder uses the capitalized folder scheme. I could care less how the Cake core does it, but now there is another standard/convention for dev implementation. Why are folders that have nothing to do with PHP classes being capitalized? Doesn't look like you have a

Re: 2.0 view folders naming convention

2011-10-22 Thread majna
I'm building on 2.0 for 10 months now and I like new folder convention. I don't wanna ever go back :) Only upgrade issue I had was SVN on Windows (case insensitive) but git-svn and upgrade shell is a way to go. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.or

Re: 2.0 view folders naming convention

2011-10-21 Thread José Lorenzo
Basically it just started with folder CamelCased when they only contained php classes. But shortly after we realized that half the folders where in uppercase and the other in the old standard. It looked really odd, and would make developers have to remember more conventions, so it was decided to

Re: 2.0 view folders naming convention

2011-10-21 Thread majna
If you look at PSR-0 and how classes are named (singular) FormHelper, MediaView, BakeTask then it make sense to pluralize Layouts, Elements, Scaffolds etc. View\Layouts\rss View\Layouts\Emails View\Layouts\Emails\html View\Emails\html could be CamelCased imo. -- Our newest site for the communi

Re: 2.0 view folders naming convention

2011-10-21 Thread euromark
>>> On 21 Oct 2011, at 07:03, Jeremy Burns | Class Outfit wrote: > > >>>>>>> No caching enabled, but I worked it out. > > >>>>>>> This is an upgraded application that I working that still lots of > >>>>>>>

Re: 2.0 view folders naming convention

2011-10-21 Thread Jeremy Burns | Class Outfit
Outfit wrote: >> >>>>>>> No caching enabled, but I worked it out. >> >>>>>>> This is an upgraded application that I working that still lots of >>>>>>> remnants of old code. The users controller still var $name = 'User

Re: 2.0 view folders naming convention

2011-10-21 Thread Larry E. Masters
>>>>>>> This is an upgraded application that I working that still lots of >>>>>>> remnants of old code. The users controller still var $name = 'User', >>>>>>> which was causing the error. Worth pointing out for others who ar

Re: 2.0 view folders naming convention

2011-10-21 Thread José Lorenzo
Well, good luck with future project in Symfony, Zend, I'm sure you will be hitting the shift key a lot less! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP r

Re: 2.0 view folders naming convention

2011-10-21 Thread Larry E. Masters
t;>>> remnants of old code. The users controller still var $name = 'User', >>>>>>> which was causing the error. Worth pointing out for others who are >>>>>>> doing an upgrade as the upgrade shell didn't remove it. >> >&

Re: 2.0 view folders naming convention

2011-10-21 Thread Miles J
r. Worth pointing out for others who are > >>>>> doing an upgrade as the upgrade shell didn't remove it. > > >>>>> Jeremy Burns > >>>>> Class Outfit > > >>>>>http://www.classoutfit.com > > >>>>> O

Re: 2.0 view folders naming convention

2011-10-21 Thread Matt Kaufman
Jeremy Burns >>>>> Class Outfit >> >>>>> http://www.classoutfit.com >> >>>>> On 21 Oct 2011, at 06:54, Andras Kende wrote: >> >>>>>> app/View/Users/add.ctp is correct. >> >>>>>> Maybe cache

Re: 2.0 view folders naming convention

2011-10-21 Thread Miles J
>>> Class Outfit > > >>>http://www.classoutfit.com > > >>> On 21 Oct 2011, at 06:54, Andras Kende wrote: > > >>>> app/View/Users/add.ctp is correct. > > >>>> Maybe cache is mixed up, try with debug=2  .. > > >>&g

Re: 2.0 view folders naming convention

2011-10-20 Thread Andras Kende
sers/add.ctp is correct. >> >>>> Maybe cache is mixed up, try with debug=2 .. >> >>>> Andras >> >>>> On Oct 21, 2011, at 12:43 AM, Jeremy Burns wrote: >> >>>>> In the tutorial, the add user form is called (in other words, i

Re: 2.0 view folders naming convention

2011-10-20 Thread José Lorenzo
They match the controller name, yes. As in the past -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send e

Re: 2.0 view folders naming convention

2011-10-20 Thread Miles J
> >> Maybe cache is mixed up, try with debug=2  .. > > >> Andras > > >> On Oct 21, 2011, at 12:43 AM, Jeremy Burns wrote: > > >>> In the tutorial, the add user form is called (in other words, in a Users folder). When you run it the > >>> code

Re: 2.0 view folders naming convention

2011-10-20 Thread Jeremy Burns | Class Outfit
e cache is mixed up, try with debug=2 .. >> >> Andras >> >> >> On Oct 21, 2011, at 12:43 AM, Jeremy Burns wrote: >> >>> In the tutorial, the add user form is called (in other words, in a Users folder). When you run it the >>> code complains that

Re: 2.0 view folders naming convention

2011-10-20 Thread Jeremy Burns | Class Outfit
s wrote: > >> In the tutorial, the add user form is called (in other words, in a Users folder). When you run it the >> code complains that it can't find app/View/User/add.ctp (in other >> words, its looking in the User folder). The documentation around >> naming conve

Re: 2.0 view folders naming convention

2011-10-20 Thread Andras Kende
p/View/User/add.ctp (in other > words, its looking in the User folder). The documentation around > naming convention is not clear on this subject. Which is correct? > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the

2.0 view folders naming convention

2011-10-20 Thread Jeremy Burns
In the tutorial, the add user form is called (in other words, in a Users folder). When you run it the code complains that it can't find app/View/User/add.ctp (in other words, its looking in the User folder). The documentation around naming convention is not clear on this subject. Which is co

Re: CakePHP without naming convention. is it possible?

2011-09-13 Thread Cruisine
re lots of problem. so i just need to configure bootstrap.php on config folder for letting me using console without naming convention rules. and i need to declare the association manually on the model. a bit bothersome i know, but that's the only way. thank you. ^_^ On Sep 6, 2:36 pm, WebbedI

Re: CakePHP without naming convention. is it possible?

2011-09-06 Thread WebbedIT
with the convention you will at least > > need > > > to: > > > > 1) define the table name ($useTable) > > > 2) define the primary key ($primaryKey) > > > 3) define the display name ($displayName) > > > > you'll also need to provide more

Re: CakePHP without naming convention. is it possible?

2011-09-05 Thread Greg Skerman
gt; > 2) define the primary key ($primaryKey) > > 3) define the display name ($displayName) > > > > you'll also need to provide more verbose settings in the model > associations > > in order to get them to play nice... > > > > On Mon, Sep 5, 2011 at 9:34

Aw: Re: CakePHP without naming convention. is it possible?

2011-09-05 Thread Jens Dittrich
I do not see any problem in what you describe above. I understand that it is comfortable to use the naming conventions whenever you can, but that should not stop you from using CakePHP with an existing database that does not care about these conventions. CakePHP follows conventions *over *config

Re: CakePHP without naming convention. is it possible?

2011-09-05 Thread Cruisine
;s not too risky i'll keep using cakephp as the framework. thats why i need to know whether there are any side-effects if i'm not following naming convention rules..i need lots of information about this issue before i really make a decision.. Thanks in advance. On Sep 5, 8:10 pm, Tran Cao

Re: CakePHP without naming convention. is it possible?

2011-09-05 Thread Tran Cao Thai
comply with the convention you will at > least need > > > > to: > > > > > > 1) define the table name ($useTable) > > > > 2) define the primary key ($primaryKey) > > > > 3) define the display name ($displayName) > > > > > > you'

Re: CakePHP without naming convention. is it possible?

2011-09-05 Thread Cruisine
rimaryKey) > > > 3) define the display name ($displayName) > > > > you'll also need to provide more verbose settings in the model > > > associations > > > in order to get them to play nice... > > > > On Mon, Sep 5, 2011 at 9:34 AM, Cru

Re: CakePHP without naming convention. is it possible?

2011-09-05 Thread WebbedIT
me) > > > you'll also need to provide more verbose settings in the model associations > > in order to get them to play nice... > > > On Mon, Sep 5, 2011 at 9:34 AM, Cruisine wrote: > > > hi guys, i need to know something important about naming convention. >

Re: CakePHP without naming convention. is it possible?

2011-09-05 Thread Cruisine
primaryKey) > 3) define the display name ($displayName) > > you'll also need to provide more verbose settings in the model associations > in order to get them to play nice... > > On Mon, Sep 5, 2011 at 9:34 AM, Cruisine wrote: > > hi guys, i need to know something important about

Re: CakePHP without naming convention. is it possible?

2011-09-04 Thread Greg Skerman
wrote: > hi guys, i need to know something important about naming convention. > yeah, i've been using naming convention while developing all my app > all the time. but recently a problem appeared. let say i've got a > project to re-developing an app ( from non-cakephp to cak

CakePHP without naming convention. is it possible?

2011-09-04 Thread Cruisine
hi guys, i need to know something important about naming convention. yeah, i've been using naming convention while developing all my app all the time. but recently a problem appeared. let say i've got a project to re-developing an app ( from non-cakephp to cakephp) which already had

Re: what naming convention for three-way joining table?

2011-03-19 Thread Mariano C.
ASY for them to do so. > > > > > What do you think? Is designed correctly. > > It seems correct my question is about naming convention. > > I'd recommend asking such questions in an appropriate place - like a > db group/irc channel. > > > > > I'm

Re: what naming convention for three-way joining table?

2011-03-19 Thread AD7six
is essentially textual information (your db schema). TIp: if you want people to help you make it EASY for them to do so. > > What do you think? Is designed correctly. > It seems correct my question is about naming convention. I'd recommend asking such questions in an appropriate pl

what naming convention for three-way joining table?

2011-03-19 Thread Mariano C.
and FK are shown): http://www.freeimgshost.com/viewer.php?file=pi93lbvdrje2iup9cw8.jpg What do you think? Is designed correctly. It seems correct my question is about naming convention. I'm pretty confused about name: teams_matches (better matches_teams I suppose), players_teams_

Re: naming convention problem

2010-06-21 Thread Ed Propsner
Set your debug to at least 1 and see what the error is telling you then. It will give you a better idea of what's going on. On Mon, Jun 21, 2010 at 6:26 AM, Master Ram wrote: > Hi.. > > i have table name called: "promoter_interest_hobbies" > > i used the module name: "PromoterInterestHobbies" >

Re: naming convention problem

2010-06-21 Thread Jeremy Burns | Class Outfit
Try using PromoterInterestHobby as the model class. Hobbies is plural of hobby. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 21 Jun 2010, at 11:26, Master Ram wrote: > Hi.. > > i have table name called: "promoter_interest_hobbies" > > i used the module n

naming convention problem

2010-06-21 Thread Master Ram
Hi.. i have table name called: "promoter_interest_hobbies" i used the module name: "PromoterInterestHobbies" module code: class PromoterInterestHobbie extends AppModel { var $name =

Re: helper naming convention

2010-05-31 Thread euromark
May 29, 8:03 pm, Steve Love wrote: > > > > The error message gives you a subtle hint. > > > With a file named time_line.php, try defining it in the controller as: > > > var $helpers = array('TimeLine'); > > > > Steve > > > > On May

Re: helper naming convention

2010-05-30 Thread Bryan Lim
named time_line.php, try defining it in the controller as: > > var $helpers = array('TimeLine'); > > > Steve > > > On May 29, 8:58 pm, Bryan Lim wrote: > > > > Hi all, > > > > Can someone please tell me what did I do wrong with the naming > &

Re: helper naming convention

2010-05-30 Thread Miles J
roller as: > var $helpers = array('TimeLine'); > > Steve > > On May 29, 8:58 pm, Bryan Lim wrote: > > > Hi all, > > > Can someone please tell me what did I do wrong with the naming > > convention? > > > I named my helper time_line.php. It is calle

Re: helper naming convention

2010-05-30 Thread Steve Love
The error message gives you a subtle hint. With a file named time_line.php, try defining it in the controller as: var $helpers = array('TimeLine'); Steve On May 29, 8:58 pm, Bryan Lim wrote: > Hi all, > > Can someone please tell me what did I do wrong with the naming > c

Re: helper naming convention

2010-05-29 Thread John Andersen
In your first example, the TimeLineHelper should be named TimeLine in your helpers array in the controller! Enjoy, John On May 30, 5:58 am, Bryan Lim wrote: > Hi all, > > Can someone please tell me what did I do wrong with the naming > convention? > > I named my helper ti

helper naming convention

2010-05-29 Thread Bryan Lim
Hi all, Can someone please tell me what did I do wrong with the naming convention? I named my helper time_line.php. It is called class TimeLineHelper extends AppHelper. At the controller, var $helpers = array("time_line"); But it gives me error that TimeLineHelper is not found. S

Re: Table Naming convention problem

2010-04-30 Thread Jeremy Burns
Read all the previous responses - my follow up was because you also had a problem with your controller function. AD7six's response is the one you should follow. Jeremy Burns jeremybu...@me.com On 30 Apr 2010, at 10:11, Master Ram wrote: > that is not my problem. who to use the table name in co

Re: Table Naming convention problem

2010-04-30 Thread Master Ram
that is not my problem. who to use the table name in controller my table name is "adb_campaign"(we can not change the table) what is the model, view and controller and how to use it. thanks sir On Apr 30, 2:00 pm, Jeremy Burns wrote: > I was wrong about something - your view is called mycampaign

Re: Table Naming convention problem

2010-04-30 Thread AD7six
On Apr 30, 11:01 am, Master Ram wrote: > the table name is fixed i cont change the table name to "adb_compaign" Master Ram, Which is the correct name - you are using compaign and campaign indiscriminately. I'd suggest putting 'prefix' => 'adb_' in your db config file and baking the model, the

Re: Table Naming convention problem

2010-04-30 Thread Master Ram
the table name is fixed i cont change the table name to "adb_compaign" On Apr 30, 1:47 pm, Andrei Mita wrote: > You didn't fallow the conventions :) > > http://book.cakephp.org/view/23/File-and-Classname-Conventions > > Table name should be adb_campaigns > Controller file name: abd_campaigns_co

Re: Table Naming convention problem

2010-04-30 Thread Jeremy Burns
I was wrong about something - your view is called mycampaigns, not mycampaign - sorry. However, it looks like you are getting back a list of campaigns rather than just one. So I would change the function code to: function mycampaigns() { $campaigns = $this->Campaign->find('all');

Re: Table Naming convention problem

2010-04-30 Thread Jeremy Burns
Looks like we all jumped on that one! Jeremy Burns jeremybu...@me.com On 30 Apr 2010, at 09:48, Ed Propsner wrote: > LOL, I was too late ... > > http://book.cakephp.org/view/903/Model-and-Database-Conventions > > On Fri, Apr 30, 2010 at 4:47 AM, Andrei Mita wrote: > You didn't fallow the con

Re: Table Naming convention problem

2010-04-30 Thread Jeremy Burns
It is rarely a good idea to stray from conventions (http://book.cakephp.org/view/22/CakePHP-Conventions) if you can avoid it. Is it too late to re-factor your database? Assuming it is... You are putting your prefix into the variable that is intended to hold the name of the controller/model. Tr

Re: Table Naming convention problem

2010-04-30 Thread Ed Propsner
LOL, I was too late ... http://book.cakephp.org/view/903/Model-and-Database-Conventions On Fri, Apr 30, 2010 at 4:47 AM, Andrei Mita wrote: > You didn't fallow the conventions :) > > http://book.cakephp.org/view/23/File-and-Classname-Conventions > > Table name should be adb_campaigns > Controll

Re: Table Naming convention problem

2010-04-30 Thread Andrei Mita
You didn't fallow the conventions :) http://book.cakephp.org/view/23/File-and-Classname-Conventions Table name should be adb_campaigns Controller file name: abd_campaigns_controller.php Controller class name: AdbCampaignsController and so on Read the conventions carefully. On Fri, Apr 30

Table Naming convention problem

2010-04-30 Thread Master Ram
HI. all i am new to cakephp i have table name called: adb_campaign my contorller is: my controller Name: compaigns_controller.php Campaign->find('all'); $this->set('campaign',$campaigns); } } ?> my modle Name: campaign.php in the view folder name: campaign mycampaigns.ctp sele

Re: table naming convention

2010-04-14 Thread John Andersen
In your UsersController, your models name is not adb_ but User. In your view, your models name is not adb_ but User. Please change accordingly and tell us how it went. Enjoy, John On Apr 13, 9:19 am, Master Ram wrote: > hi.. > my table Name:adb_users > this is my: view form: > > Register > cr

table naming convention

2010-04-12 Thread Master Ram
hi.. my table Name:adb_users this is my: view form: Register create('adb_', array('action' => 'register'));?> input('username');?> input('password');?> input('email');?> input('date');?> submit('Register');?> end(); ?> Model: Controller: data)) { $this->adb_->create();// its not entering in t

Re: naming convention

2010-04-10 Thread j0n4s.h4rtm...@googlemail.com
user.model => model User + var $useTable = 'adb_usres'; users_controller.php => controller UsersController app/views/users/* http://book.cakephp.org/view/1059/useTable Be sure to check out the link that Jeremy provided. On Apr 8, 7:07 pm, Miles J wrote: > However, you don't need a controller pe

Re: naming convention

2010-04-08 Thread Miles J
However, you don't need a controller per model. The controller can be whatever you want. On Apr 8, 7:39 am, Jeremy Burns wrote: > First convention: one message is probably enough! > > model: filename adb_usre.php, model name AdbUsre > view directory: adb_usres > controller: filename adb_usres_con

Re: naming convention

2010-04-08 Thread Jeremy Burns
First convention: one message is probably enough! model: filename adb_usre.php, model name AdbUsre view directory: adb_usres controller: filename adb_usres_controller.php, controller name AdbUsres Next piece of help - read the guide - it's all there: http://book.cakephp.org/view/901/CakePHP-Conv

naming convention

2010-04-08 Thread Master Ram
hi.. i have table name: adb_usres what to use for model: view dr: controller: please help me. 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

Table naming convention

2010-04-08 Thread Master Ram
hi.. i have table name: adb_usres what to use for model: view dr: controller: please help me. 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

Re: Table naming convention

2010-04-08 Thread Master Ram
hi.. i am CakePHP beginner, i have table name called: adb_usres how to user naming convention for: model,controller and view dir: please help me Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because

Re: Table naming convention

2010-04-03 Thread WebbedIT
@killsalad: Sorry to whinge at you, but it's a pet hate of mine when newbies are given advice on how to deviate from conventions when their query simply does not need this advice. If you are going to to do this, at least give some sort of caveat as to when they should or shouldn't otherwise you're

Re: Table naming convention

2010-04-02 Thread cricket
Model: MainCategory Controller: MainCategoriesController views dir: main_categories But I wonder why you've got such a model. Why not just Category with a null parent_id? On Apr 2, 7:13 am, Ambika Kulkarni wrote: > Hi, > > I have table called main_categories. Now how to declare the model > name,

Re: Table naming convention

2010-04-02 Thread killsalad
Hello, model name would be MainCategory (following convention), but You can name your models as You like, just set $useTable property of model regards On 2 Kwi, 13:13, Ambika Kulkarni wrote: > Hi, > > I have table called main_categories. Now how to declare the model > name, controller name and

Table naming convention

2010-04-02 Thread Ambika Kulkarni
Hi, I have table called main_categories. Now how to declare the model name, controller name and views folder Thanks in advance 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 t

Re: Naming convention

2010-04-02 Thread Ambika Kulkarni
Hi, I have table called more_categories. Now how to declare the model name, controller name and views folder Thanks in advance On Apr 2, 2:45 pm, Ambika Kulkarni wrote: > Hi thanks It Worked > > On Fri, Apr 2, 2010 at 2:50 PM, Jeremy Burns wrote: > > It's not ideal to move away from convention

Re: Naming convention

2010-04-02 Thread Ambika Kulkarni
Hi thanks It Worked On Fri, Apr 2, 2010 at 2:50 PM, Jeremy Burns wrote: > It's not ideal to move away from conventions, but you can use var $useTable > = 'myname'; in your Myname model. > > Jeremy Burns > jeremybu...@me.com > > On 2 Apr 2010, at 10:17, Ambika Kulkarni wrote: > > > Hi there, > >

Re: Naming convention

2010-04-02 Thread Jeremy Burns
It's not ideal to move away from conventions, but you can use var $useTable = 'myname'; in your Myname model. Jeremy Burns jeremybu...@me.com On 2 Apr 2010, at 10:17, Ambika Kulkarni wrote: > Hi there, > > I am pretty new to cake. > I am aware of naming conventions in cakePHP as I have created

Naming convention

2010-04-02 Thread Ambika Kulkarni
Hi there, I am pretty new to cake. I am aware of naming conventions in cakePHP as I have created some more models n controller they are working fine. Here the table name itself is in singular name format. And I am not suppose to change the table name to plural. I am facing a problem while namin

Re: Default routing - methods naming convention problem

2009-08-31 Thread Miles J
Not very positive, but you would have to edit the core cake files, which you should never do. So you either have to deal with the someAction URL or just deal with writing it as some_action. Someone clarify if I am wrong. On Aug 31, 10:52 pm, Raph wrote: > Yes - I know. But I would like it to b

Re: Default routing - methods naming convention problem

2009-08-31 Thread Raph
Yes - I know. But I would like it to be "/some_controller/some_action" without changing methods names. On 1 Wrz, 02:08, Miles J wrote: > Your URL would simply be /some_controller/someAction/. --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Default routing - methods naming convention problem

2009-08-31 Thread Miles J
Your URL would simply be /some_controller/someAction/. --~--~-~--~~~---~--~~ 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, se

Default routing - methods naming convention problem

2009-08-31 Thread Raph
I would like to urls in my app were look like "/some_controller/ some_action". The problem is I use camel-case methods naming conventions, so I would have class "SomeControllerController" with method "someAction()". Actually I like this convention and I don't want to change it. In this case "/some

Re: Model naming convention not working as documented in form input?

2009-07-20 Thread Carlos Lavin
Yep.. looks like your missing a dot there(before the kpi_colour_id') which Piotr pointed out 2009/7/20 Piotr Kilczuk > > Hello, > > > echo $form->input('ChartsKpis.' . $kpi['Kpi']['id'] . > > 'kpi_colour_id'); > > > > However the resulting input has the format: > > > > > > > > It seems to have

Re: Model naming convention not working as documented in form input?

2009-07-20 Thread Piotr Kilczuk
Hello, > echo $form->input('ChartsKpis.' . $kpi['Kpi']['id'] . > 'kpi_colour_id'); > > However the resulting input has the format: > > > > It seems to have got the id correct; but the name attribute hasn't > been created in the same way as the documentation states. > > So which is right, the doc

Model naming convention not working as documented in form input?

2009-07-20 Thread DavidH
Hi I'm trying to use the model naming conventions, as documented in the Book for version 1.2, to create multiple select elements for the same fields in the same form. The why for this I'll put in another thread; but this question is just about the naming conventions. In the Book it states: If y

Re: database naming convention in conflict with cakePHP naming convention

2009-05-13 Thread Miles J
You would set the "foreignKey" or "assocationForeignKey" when creating the associations. --~--~-~--~~~---~--~~ 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

Re: database naming convention in conflict with cakePHP naming convention

2009-05-13 Thread j.h09
Thank you very much, That answers my question for the plural form of a table name and the primary key. But what about the foreign key 'operatorId'? How can I make cakePHP use a foreign key suffixed by 'Id' instead of '_id' ? --~--~-~--~~~---~--~~ You received t

Re: database naming convention in conflict with cakePHP naming convention

2009-05-12 Thread Ernesto
misreaded your post var $primaryKey = "serviceID"; :) On 12 Mag, 17:51, Ernesto wrote: > just set the proper variables inside your model > > var $useTable = "Service"; > var $primaryKey = "operatorID"; > > have fun :) > > On 12 Mag, 17:39, "j.h09" wrote: > > > > > Hi all, > > > This is my dat

Re: database naming convention in conflict with cakePHP naming convention

2009-05-12 Thread Ernesto
just set the proper variables inside your model var $useTable = "Service"; var $primaryKey = "operatorID"; have fun :) On 12 Mag, 17:39, "j.h09" wrote: > Hi all, > > This is my database table : > > DROP TABLE IF EXISTS `Service`; > CREATE TABLE IF NOT EXISTS `Service` > (                      

database naming convention in conflict with cakePHP naming convention

2009-05-12 Thread j.h09
Hi all, This is my database table : DROP TABLE IF EXISTS `Service`; CREATE TABLE IF NOT EXISTS `Service` ( <--- 'Service' instead of 'Services' `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `operatorId` int(11) unsigned NOT NULL, <--- 'operatorI

Re: table naming convention question

2009-04-08 Thread Rhee
Yes it works like that. Just give it a try.. ;-) On Apr 8, 3:41 pm, scott wrote: > I am new to cake and understand about plural names for tables. > > My question is for names that end in "y" like library > plural-"libraries", is it possible to name tables this way? If so, > how? > > Thanks in ad

table naming convention question

2009-04-08 Thread scott
I am new to cake and understand about plural names for tables. My question is for names that end in "y" like library plural-"libraries", is it possible to name tables this way? If so, how? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because

Re: HABTM naming convention messed up?

2009-01-04 Thread Graham Weldon
This is actually the expected behavior. Consider the join table (when modelised, like you are doing) to be a simple name. The inflector will look at the plural string (as is the convention) and remove the 's' at the end of the last word detected. Table: teams_untils Model: TeamsUnit Cheers, Gra

Re: HABTM naming convention messed up?

2009-01-04 Thread gearvOsh
This is my team model. Once I change TeamUser to TeamsUser it works correctly, but that shouldnt be. Based on the docs and naming convention it should be TeamUser. class Team extends AppModel { /** * Teams belong to a country, state */ var $belongsTo = array

Re: HABTM naming convention messed up?

2009-01-04 Thread Webweave
Please post your HABTM from your TeamUser model. Seems like you have a problem there. Should look something like (guessing): // Link to jobs var $hasAndBelongsToMany = array( 'TeamUser' => array( 'className' => 'TeamUser', 'joinT

HABTM naming convention messed up?

2009-01-04 Thread gearvOsh
Ok I have a users and teams system. Users are part of a team. Here is the naming conventions: Model: Team, User DB: teams, users HABTM: teams_users (TeamUser model) But when I set my HABTM relationships I get errors because it says that the model TeamsUser does not exist. Shouldnt it be TeamUser

Re: How to use naming convention in an unfamiliar scheme.

2008-11-11 Thread thatsgreat2345
You need a Model for each o the tables not a controller, You can do one controller and do var $uses = array('model1','model2','model3') and so on however if there are a lot of table relations you might want to check out http://book.cakephp.org/view/78/Associations-Linking-Models-Together On Nov

How to use naming convention in an unfamiliar scheme.

2008-11-11 Thread Sean
I'm a newbie to CakePHP. I'm building a site that lists a massive amount of places; possibly in the hundreds of thousands. These places will be user-registered, so the mysql database is split up into tables, whose names contain an variable zipcode and a suffix indicating if it is information ofte

Re: Method Naming Convention

2008-10-28 Thread tobi_one
ok, many thanks for pointing this out! On Oct 28, 10:24 pm, teknoid <[EMAIL PROTECTED]> wrote: > it's true for the controller name, but not for the action name. > > the docs should be updated ... ehh.. > > On Oct 28, 5:05 pm, tobi_one <[EMAIL PROTECTED]> wrote: > > > Hi, > > > this probably is a

Re: Method Naming Convention

2008-10-28 Thread teknoid
it's true for the controller name, but not for the action name. the docs should be updated ... ehh.. On Oct 28, 5:05 pm, tobi_one <[EMAIL PROTECTED]> wrote: > Hi, > > this probably is a super easy question to answer, but somehow I'm > stuck. > In the Cookbook it says on > > http://book.cakephp.o

Method Naming Convention

2008-10-28 Thread tobi_one
Hi, this probably is a super easy question to answer, but somehow I'm stuck. In the Cookbook it says on http://book.cakephp.org/view/559/URL-Considerations-for-Controller-Names "However, the convention is that your urls are lowercase and underscored, therefore /red_apples/go_pick is the correct

Re: Field Naming Convention

2008-09-12 Thread David C. Zentgraf
8, 3:48 pm, kienpham2000 <[EMAIL PROTECTED]> wrote: >> >>> Hi all cake bakers, >> >>> I'm using the 1.2RC and I followed the field naming convention >>> here to >>> get array of data for a field >>> name:http://book.cakephp.org/vi

Re: Field Naming Convention

2008-09-12 Thread nayan
h does not support transaction :(. > > - Kien > > On Aug 18, 3:48 pm, kienpham2000 <[EMAIL PROTECTED]> wrote: > > > Hi all cake bakers, > > > I'm using the 1.2RC and I followed the field naming convention here to > > get array of data for a field > &g

Re: Field Naming Convention

2008-08-19 Thread kienpham2000
pham2000 <[EMAIL PROTECTED]> wrote: > Hi all cake bakers, > > I'm using the 1.2RC and I followed the field naming convention here to > get array of data for a field > name:http://book.cakephp.org/view/547/field-naming-convention > > Here is my code to create input

Field Naming Convention

2008-08-18 Thread kienpham2000
Hi all cake bakers, I'm using the 1.2RC and I followed the field naming convention here to get array of data for a field name: http://book.cakephp.org/view/547/field-naming-convention Here is my code to create input fields: input('MyModel.myField.1');?> input('MyModel.m

Re: database naming convention boggle

2008-04-13 Thread ben
Thanks, Joel, the simplicity of cakephp never ceases to amaze! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

  1   2   >