I have a page that I want to have 2 different routes: "/ Admin / Schedules" and "/ Schedules"
"If some admin features will be provided for admin users and pages and must be signed for ... On the other hand," / schedules "is for non-logged users and This will introduce non-admin features ...
But, the page is identical and I hit both of these There is a special need for gon ...
Does anyone know how to do this?
Thanks!
< Div class = "post-text" itemprop = "text">
You can complete it in the controller because Ajma has just one condition and a switch statement a method that checks that the user exists in such a way: < / P>
if (user id = tap) {switch (user proof) {case 1: action = "certificate"; top = typeOfPage.Admin; see = "schedules"; break; default: a RIA = "schedules" top = Taipof page. = "Schedules"; break; }}
Comments
Post a Comment