Re: Multi Tenancy / SaaS

2013-02-04 Thread lowpass
It's ok to design a model that expects User data but you should pass it to the model from the controller. What's TDD? On Sun, Feb 3, 2013 at 9:38 PM, Tony Messias tony...@gmail.com wrote: Well, I believe it's possible to get the authenticated user from anywhere using the AuthComponent::user()

Re: Multi Tenancy / SaaS

2013-02-04 Thread euromark
test driven development Am Montag, 4. Februar 2013 22:56:21 UTC+1 schrieb cricket: It's ok to design a model that expects User data but you should pass it to the model from the controller. What's TDD? On Sun, Feb 3, 2013 at 9:38 PM, Tony Messias ton...@gmail.comjavascript: wrote:

Re: Multi Tenancy / SaaS

2013-02-03 Thread Andrew Wilson
I've got the same issue on a project I'm working on. Any solutions you came up with Dylan? On Monday, August 6, 2012 4:02:15 PM UTC-6, Dylan Jennings wrote: Hello I'm currently building a SaaS application using cakePHP. I've worked with cakePHP before a few times and I'm comfortable with

Re: Multi Tenancy / SaaS

2013-02-03 Thread Tony Messias
Well, I believe it's possible to get the authenticated user from anywhere using the AuthComponent::user() static method (cake 2.x). I tried it here, and it worked.. but I couldn't test it using TDD, I found it veeery hard.. Could anyone help? How can I test a model that depends on a logged user?

Multi Tenancy / SaaS

2012-08-07 Thread Dylan Jennings
Hello I'm currently building a SaaS application using cakePHP. I've worked with cakePHP before a few times and I'm comfortable with how it all works. So, I have an `accounts` table which holds information about each tenant, and then a `users` table aswell, which will contain the users for each