I think that is the answer I am looking for. I just need to re-arrange my
methods then. Thanks for clarifying.
On Sun, Dec 21, 2014 at 7:38 PM, Andrew Lechowicz drew.lechow...@gmail.com
wrote:
Ok. Here's a Gist of what your code might look like:
Thanks for clarifying regarding routes.
Could you clarify what you mean It be a simple `if` statement that calls one
of two of the controllers `private` or `protected` methods which contain the
login for wether the username is Bob or BobsShop.
I have a UsersController and a ShopsController,
Hi
Can I assume that you have implemented authentication in your CakePHP
application using the Auth component?
See the CakePHP book here about Authentication:
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html
Take specially a look at the section Identifying users and
Thanks for the replies. I guess my question is still unclear, and yes, I am
using Auth. What I am trying to do is implement a URL similar to facebook.
For example, I want to have
www.xyz.com/Bob/{actions} (routes to UserController)
www.xyz.com/BobsStore/{actions} (routes to ShopsController).
I
Ok. Here's a Gist of what your code might look
like: https://gist.github.com/alecho/e7b573cc54140ba1706d
By making the methods private it means that CakePHP won't let them be
publicly callable methods. This avoids redirects so that your url is still
the same too. I think this approach is
Hi. I want to route a url to 2 controllers depending on some logic I define.
For example, if I have 2 usernames Bob and BobsShop, I want localhost/Bob to
route to my UsersController while localhost/BobsShop will route to my
ShopsController. I've thought of one way to accomplish this - by
Hi. I want to route a url to 2 controllers depending on some logic I define.
For example, if I have 2 usernames Bob and BobsShop, I want localhost/Bob to
route to my UsersController while localhost/BobsShop will route to my
ShopsController. I've thought of one way to accomplish this - by