Re: Login form on index page

2009-05-12 Thread dnoop

Hi sorry for making my question so obscure  I had a home.ctp which
should contain a login form ...  Right now i just redirected the index
to login ... is it posssible by making login.ctp as a element and
including it in home.ctp ...?

On May 9, 7:47 pm, brian bally.z...@gmail.com wrote:
 What are you trying to do? Include the form as an element? Redirect to
 the login form?

 On Sat, May 9, 2009 at 1:04 AM, dnoop dan...@gmail.com wrote:

  Hi,
           I am a newbie here and i was doing one user profile
  system .. seems almost everything is working fine .. in my  but when i
  went to apply it to my design i just need a login form only  ...no
  need of the original index page which shows list of users .. what
  should i do  ..?

   $this-redirect(array('controller' = 'users', 'action' = 'login'));

  is this the correct way to do it ...?
  I just wanted to include login form along with registration form
  too ... should i put login as an element ..? Please help

  with regards
                                 Anoop
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Login form on index page

2009-05-12 Thread Richard
That's a reasonable approach to take; yes.

On Tue, May 12, 2009 at 10:40 AM, dnoop dan...@gmail.com wrote:


 Hi sorry for making my question so obscure  I had a home.ctp which
 should contain a login form ...  Right now i just redirected the index
 to login ... is it posssible by making login.ctp as a element and
 including it in home.ctp ...?

 On May 9, 7:47 pm, brian bally.z...@gmail.com wrote:
  What are you trying to do? Include the form as an element? Redirect to
  the login form?
 
  On Sat, May 9, 2009 at 1:04 AM, dnoop dan...@gmail.com wrote:
 
   Hi,
I am a newbie here and i was doing one user profile
   system .. seems almost everything is working fine .. in my  but when i
   went to apply it to my design i just need a login form only  ...no
   need of the original index page which shows list of users .. what
   should i do  ..?
 
$this-redirect(array('controller' = 'users', 'action' = 'login'));
 
   is this the correct way to do it ...?
   I just wanted to include login form along with registration form
   too ... should i put login as an element ..? Please help
 
   with regards
  Anoop
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Login form on index page

2009-05-09 Thread brian

What are you trying to do? Include the form as an element? Redirect to
the login form?

On Sat, May 9, 2009 at 1:04 AM, dnoop dan...@gmail.com wrote:

 Hi,
          I am a newbie here and i was doing one user profile
 system .. seems almost everything is working fine .. in my  but when i
 went to apply it to my design i just need a login form only  ...no
 need of the original index page which shows list of users .. what
 should i do  ..?

  $this-redirect(array('controller' = 'users', 'action' = 'login'));

 is this the correct way to do it ...?
 I just wanted to include login form along with registration form
 too ... should i put login as an element ..? Please help


 with regards
                                Anoop
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Login form on index page

2009-05-08 Thread dnoop

Hi,
  I am a newbie here and i was doing one user profile
system .. seems almost everything is working fine .. in my  but when i
went to apply it to my design i just need a login form only  ...no
need of the original index page which shows list of users .. what
should i do  ..?

 $this-redirect(array('controller' = 'users', 'action' = 'login'));

is this the correct way to do it ...?
I just wanted to include login form along with registration form
too ... should i put login as an element ..? Please help


with regards
Anoop
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---