All Questions
Tagged with controller url-routing
5 questions
5
votes
1
answer
111
views
Defining routes and controllers relationship for given pages
I'm building a CMS app with the help of a custom framework. The back-office is composed of the following pages:
post list
page list
user list
post edit
page edit
user edit
Actually, my routes are ...
2
votes
1
answer
82
views
Redirecting to the appropriate URL for some type of notification
I have a polymorphic notification model with action attribute. When user clicks on a notification he/she should be redirected to given page the notification refers to through notifiable.
What is the ...
4
votes
2
answers
2k
views
CakePHP static pages (without entity) but with dynamic content
I have a few pages that is not connected with entities (index page, terms of use page, email page).
Detailed description: In CakePHP, when you want to have a static page (such as index for example), ...
2
votes
1
answer
2k
views
Router Class In a Lightweight MVC Boilerplate
I'm trying to come up with a simple router class. I considered using a Request class, but I think that will turn something simple into something overly complex. ...
7
votes
2
answers
298
views
Dispatcher for a JSON API without routes
I am using this code for a fast JSON API without routes.
Does this code contain any useless parts? Is the class loader efficient enough? Are there any better options? Is ...