Re: Is it a good idea to put AngularJS webpages onto Page folder?

2014-10-21 Thread Hussain Shafeeu
The way to go would be to use angularJS to do the redirect that is "not 
happening". Query the server to see if the user is logged on (maybe on 
route.change) and if he isn't change route to login page.

On Tuesday, October 21, 2014 5:23:30 AM UTC+5:30, Sam wrote:
>
> I am currently using Cakephp mainly as REST server and AngularJS. The 
> Angularjs webpages are put under webroot folder. Things have been working 
> fine until I added user login authentication in Cakephp. For 
> unauthenticated users who visit webpages in webroot, they are not directed 
> to a login page. I thought of a solution but would like to seek advise from 
> the more knowledgeable members here. Is it a good or even workable idea to 
> put AngularJS webpages in the Page folder? What are the disadvantages in 
> doing this? Or are there better alternatives?
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Is it a good idea to put AngularJS webpages onto Page folder?

2014-10-20 Thread Sam
I am currently using Cakephp mainly as REST server and AngularJS. The 
Angularjs webpages are put under webroot folder. Things have been working 
fine until I added user login authentication in Cakephp. For 
unauthenticated users who visit webpages in webroot, they are not directed 
to a login page. I thought of a solution but would like to seek advise from 
the more knowledgeable members here. Is it a good or even workable idea to 
put AngularJS webpages in the Page folder? What are the disadvantages in 
doing this? Or are there better alternatives?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.