Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Routing feature #10

Open
secondtruth opened this issue Feb 5, 2014 · 0 comments
Open

Add Routing feature #10

secondtruth opened this issue Feb 5, 2014 · 0 comments
Labels
Milestone

Comments

@secondtruth
Copy link
Member

  • Routes defined in module.yml of each module

Work to be done

Implement routing system with Symfony Routing component. But not the regular way. The route mapping begins on module level at the second path segment (/foo/>...<, or at the moment /?p=foo/>...<).

It should be possible to set all of the configuration options of the Symfony component in the module configuration files (module.yml under routes entry, see example).

Then the raw routes will be connected with the corresponding mountpoint names and compiled in the Router class. Kernel::handle() then queries the Router.

Example

module.yml with new routes entry:

routes:
    foo:  # would become 'mountpoint_foo' for Symfony
        path:      /foo     # would become '/mountpoint/foo'
        action:    action1  # controller action, raw name
    bar:
        path:      /bar/{var}
        action:    action1
        defaults:  { var: blah }
    foobar:
        path:      /{foobar}
        action:    action2
        defaults:  { foobar: abc }
@ghost ghost assigned secondtruth Feb 5, 2014
@secondtruth secondtruth changed the title Advanced module system Use Slim Framework as Core Jul 14, 2014
@secondtruth secondtruth changed the title Use Slim Framework as Core Routing Jul 28, 2014
@secondtruth secondtruth removed their assignment Aug 4, 2014
@secondtruth secondtruth modified the milestones: 0.1 Alpha, 0.2 Alpha Sep 5, 2014
@secondtruth secondtruth changed the title Routing Add Routing feature Sep 5, 2014
@secondtruth secondtruth modified the milestones: 0.1 Alpha, 0.2 Alpha Feb 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant