I do a very similar thing to allow users multiple profiles. So they can
segregate their data by company, or family, or team.
Here is the basic logic.
In the appController beforeFilter() method set the logged in user to the
appModel class that you are fetching. Such as...
AppModel::setActiveUser
in context:
http://cakephp.1045679.n5.nabble.com/Multiple-Businesses-in-one-database-tp5094717p5111830.html
Sent from the CakePHP mailing list archive at Nabble.com.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http
y
> when an admin of one of the businesses logs in they'll be able to create
> invoices and bills etc. They should only be able to see the content they've
> created can you send me any links you may have that explain this.
> View this message in context: Re: Multiple Business
at explain this.
--
View this message in context:
http://cakephp.1045679.n5.nabble.com/Multiple-Businesses-in-one-database-tp5094717p5094893.html
Sent from the CakePHP mailing list archive at Nabble.com.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out
at explain this.
--
View this message in context:
http://cakephp.1045679.n5.nabble.com/Multiple-Businesses-in-one-database-tp5094717p5094846.html
Sent from the CakePHP mailing list archive at Nabble.com.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out
name or category for this. Also
> how would I acheive this?
> View this message in context: Multiple Businesses in one database
> Sent from the CakePHP mailing list archive at Nabble.com.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cake
their own data. Is this possible?
If so is there a name or category for this. Also how would I acheive this?
--
View this message in context:
http://cakephp.1045679.n5.nabble.com/Multiple-Businesses-in-one-database-tp5094717p5094717.html
Sent from the CakePHP mailing list archive at Nabbl