I have a package with a dashboard single page. On this single page I need a dynamically created dialog popup, and so
I also need to use the router, views (package/mypackage/views
) and controllers.
The questions now are the following:
- What looks the directory structure like?
- Where and how do I use
Router::register('what_path_?', 'Namespace\?\Class::method')
to create the route to the view/controller? - How do I call upon the route inside the single page view (
Url::to(?)
) and in combination with the dialog JS?
Please add comments if some questions are still open!