Giter Site home page Giter Site logo

Routing prefix about cakephp-i18n HOT 7 CLOSED

admad avatar admad commented on September 14, 2024
Routing prefix

from cakephp-i18n.

Comments (7)

ADmad avatar ADmad commented on September 14, 2024

I really don't understand your problem. I18nMiddleware only does redirection if URL is /, not for any other URL.

from cakephp-i18n.

smarek avatar smarek commented on September 14, 2024

Not sure if you reply to correct ticket? This issue is tackling that there is no documentation on how to use your plugin along with prefixes (recommended way of administrative interfaces by cakephp-docs) and/or combining it with other router classes (dashed/inflected/...)

Maybe you have some app that is code-public and uses your plugin, so we can take more inspiration from?

from cakephp-i18n.

smarek avatar smarek commented on September 14, 2024

Also, related issue, accessing not-defined-route in default scope, will show routes that are available, such as 'Users:login'
2019-09-19-145622_1295x72_scrot

However accessing defined-route in scope that is not routed by I18nRoute, will show this trace, about AuthComponent->_isLoginAction not resolving the 'Users:login' route, and it shows with controller name lowercase below the stacktrace
2019-09-19-145647_567x911_scrot
2019-09-19-145700_1304x77_scrot

Is it possible, that this kind of issue is caused by this plugin, or should i go upstream to cakephp/cakephp and report it?

from cakephp-i18n.

ADmad avatar ADmad commented on September 14, 2024

The readme already states
Note: I18nRoute extends core's DashedRoute so the URL fragments will be inflected accordingly.

So if you want to use InflectedRoute go look elsewhere :)

from cakephp-i18n.

ADmad avatar ADmad commented on September 14, 2024

Maybe you have some app that is code-public and uses your plugin, so we can take more inspiration from?

Sorry that's not something I am interested in doing. I primarily built this plugin for myself and shared it as I thought other's might find it useful. So whoever can figured out how to use it is welcome and for those who can't all I can say is sorry. I don't want to spend time providing detailed documentation or demos.

from cakephp-i18n.

ADmad avatar ADmad commented on September 14, 2024

The missing route error you have shown isn't directly related to the plugin. It depends on what routes you have or haven't setup.

from cakephp-i18n.

smarek avatar smarek commented on September 14, 2024

So if you want to use InflectedRoute go look elsewhere :)
I don't want to, that was just an example

This is something I built for myself and shared it as I thought other's might find it useful. So whoever can figured out how to use it is welcome and for those who can't all I can say is sorry.
Well that is something worth stating on top of readme, that you provide no support, and maybe close the issues here and link only to cakephp support platforms (slack/discourse/...)

The missing route error you have shown isn't directly related to the plugin. It depends on what routes you have or haven't setup.
I was not presenting missing route, but the strange thing that when the route goes missing, it is listed with controller name lowercase in the trace, however i'm going to put it as upstream issue

Thank you anyway for your comments

from cakephp-i18n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.