Is it possible to display two class name in a url?
For instance i have two class: Category and Gallery.
I want to display it in url as …category/gallery/2 ?
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.
hmm.. as far as I know, you cannot have 2 classes like that. But what you can do is have a class called ‘Category’ and inside that a function called “Gallery”. And inside that you can get the value 2 by using uri segment.
I have attached the below code for reference.
}
category/gallery/2 will take you to .
Thanks