I need to hide some item in the view when the page is main, others page will show this item
so what function i need to use to check if the page is main
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you can get the current controller and action name with following code,
for main page you can put condition where controller is “index” and action is “index”
you code should execute or not to execute
thats alll…………..
If you are not in controller user