Re: Dealing with big cakephp applications

2013-07-29 Thread Karey Powell
Hello Diogo, So, it seems to me that you need to create a Service Oriented Architecture (SOA) in order to facilitate seamless communication for these three different modules (User and Permission management, Projects, and Financing) kind of like what Amazon did and I would also be looking into

Re: how to change a drop down based on a previously selected drop down in cakephp

2013-06-01 Thread Karey Powell
I think this is what you are looking for: http://www.willis-owen.co.uk/2011/11/dynamic-select-box-with-cakephp-2-0/ On Friday, 31 May 2013 09:04:42 UTC-4, sneha kulkarni wrote: > > hi.. > I am trying to change a drop down based on a previously selected drop down > ... How i should achieve the sa

Re: how to do cascading combobox

2013-04-23 Thread Karey Powell
Hello, you can try and achieve that by following this: http://www.willis-owen.co.uk/2011/11/dynamic-select-box-with-cakephp-2-0/ On Saturday, 20 April 2013 06:49:56 UTC-4, di wrote: > > I'm using cakephp 2.1 > in my application I have 5 tables that are related: Provinces, Districts, > Towns, Nei

Re: Checking Consistency Before Saving

2013-04-23 Thread Karey Powell
Following upon David's suggestion, you can achieve the functionality of a dynamic select box using this tutorial as a guide: http://www.willis-owen.co.uk/2011/11/dynamic-select-box-with-cakephp-2-0/. That is how I would do it as well. On Monday, 22 April 2013 14:36:11 UTC-4, da...@qccareerschoo

Re: Cake 2.2 Auth login failure

2012-12-31 Thread Karey Powell
What does your login() method look like? Maybe if you can give some more details we can assist you. On Monday, 31 December 2012 16:40:48 UTC-5, Martin Halla wrote: > > Hi, > > I have this app that uses the Auth component for login Everything works on > the local machine, but fails big time live

Re: CakePHP 2.x and ajax

2012-11-02 Thread Karey Powell
Checkout this video: http://www.youtube.com/watch?v=dQ71psonQx0&feature=plcp. Hope it helps. On Thursday, 1 November 2012 04:18:57 UTC-4, franscelstain wrote: > > is there someone who can teach me to use ajax in cakephp 2.x, because I am > still very novice > > thanks > -- Like Us on FaceBook

Re: Model with self association: how do I reference associated field from Child?

2012-08-24 Thread Karey Powell
What I do with relationships like these is to use the *TreeBehavior.* It works pretty well; you can check it out here http://book.cakephp.org/2.0/en/core-libraries/behaviors/tree.html On Thursday, 23 August 2012 10:17:32 UTC-4, kevin.ncbible wrote: > > Thank you, so much, for taking the time to

Re: Best way to implement a follower system (like Twitter) ?

2012-06-12 Thread Karey Powell
It can be done easily with a HABTM relationship. For example, Table Users: - id - name - email Table Followers - id - name - email and then to create the HABTM relationship, all you have to do is create an association table to join Users and Followed_Users. Table Followed_Users

Re: Contain conditions based off parents data.

2012-06-11 Thread Karey Powell
It can be done in one command. I had a similar problem the other day and I solved it by initializing the constructor in the Model I wanted this to work on and created a VirtualField, and by specifying the $this->alias CakePHP could then pick up the association and find the appropriate column. I