Re: [web2py] Use the other login page instead of index
Actually i want to go to the another function in the default controller when i click on the login it should be call the function such as emp() istead of index and after login i want to stay on the emp() only On Mon, Mar 5, 2012 at 1:14 PM, Bruno Rocha rochacbr...@gmail.com wrote: the login is by default in defautl/user/login not in index. you can set your own controller and function. Create a new controller with a function to expose dict(form=auth()) and in models set: auth.settings.controller = myothercontroller auth.settings.function = myfunction I am not sure if navbar will be automatically updated but you can create your own links using URL(controller, function, args=login) http://zerp.ly/rochacbruno Em 05/03/2012 04:13, Sanjeet Kumar sanjeet@gmail.com escreveu: I am using the index as my home page and i want to call the another controller for login when the user click on the login link
Re: [web2py] Use the other login page instead of index
My problem is solved through capturing the login event On Mon, Mar 5, 2012 at 1:48 PM, Sanjeet Kumar sanjeet@gmail.com wrote: Actually i want to go to the another function in the default controller when i click on the login it should be call the function such as emp() istead of index and after login i want to stay on the emp() only On Mon, Mar 5, 2012 at 1:14 PM, Bruno Rocha rochacbr...@gmail.com wrote: the login is by default in defautl/user/login not in index. you can set your own controller and function. Create a new controller with a function to expose dict(form=auth()) and in models set: auth.settings.controller = myothercontroller auth.settings.function = myfunction I am not sure if navbar will be automatically updated but you can create your own links using URL(controller, function, args=login) http://zerp.ly/rochacbruno Em 05/03/2012 04:13, Sanjeet Kumar sanjeet@gmail.com escreveu: I am using the index as my home page and i want to call the another controller for login when the user click on the login link
[web2py] Use the other login page instead of index
I am using the index as my home page and i want to call the another controller for login when the user click on the login link
Re: [web2py] Use the other login page instead of index
the login is by default in defautl/user/login not in index. you can set your own controller and function. Create a new controller with a function to expose dict(form=auth()) and in models set: auth.settings.controller = myothercontroller auth.settings.function = myfunction I am not sure if navbar will be automatically updated but you can create your own links using URL(controller, function, args=login) http://zerp.ly/rochacbruno Em 05/03/2012 04:13, Sanjeet Kumar sanjeet@gmail.com escreveu: I am using the index as my home page and i want to call the another controller for login when the user click on the login link