Opened 11 years ago

Closed 11 years ago

Last modified 6 years ago

#507 closed task (fixed)

decentralized request alias definitions in "build/appname/alias.ini"

Reported by: lemon-head Owned by: lemon-head
Priority: major Milestone: Legacy Resolved
Component: FrameWork Keywords:
Cc:

Description

It can often happen that we want to run an application on test.bw or localhost, but not on alpha and production.

However, we don't want to have different versions of the array defined in the translate() function (nowadays, it is RequestRouter::translate()), for different branches.

I introduce a new ini file that can be placed in each application directory, to define request aliases.

Syntax:

; build/members/alias.ini
; ini file comments are started with a ; symbol.

; request aliases
; all of them are routed to the same controller.

members = "
    members
    people
    mypreferences
    editmyprofile
    myvisitors
    my
    self
"

A file with these settings defines that, for instance, a request to "my/preferences" will be routed to the MembersController? (as opposed to MyController? or the default RoxController?).

The $request[0] will still contain the orgiginal string, "my".

Change History (7)

comment:1 Changed 11 years ago by lemon-head

  • Owner set to lemon-head
  • Status changed from new to assigned

comment:2 Changed 11 years ago by lemon-head

  • follow_up changed from none to test

4502

We now have alias.ini in various apps. Please test.

comment:3 Changed 11 years ago by lemon-head

.. of course it is [4502]

comment:4 Changed 11 years ago by lemon-head

One example is http://test.bewelcome.org/findpeople (instead of "searchmembers")

comment:5 Changed 11 years ago by micha

  • version set to test

i'm pretty sure that this one is on alpha/production already, no?

comment:6 Changed 11 years ago by lemon-head

  • Component changed from unknown to FrameWork
  • follow_up changed from test to none
  • Resolution set to fixed
  • Status changed from assigned to closed

yes!!! I close it.

comment:7 Changed 6 years ago by TimLoal

  • Milestone changed from unassigned to Legacy Resolved
  • Type changed from unknown to developer task
Note: See TracTickets for help on using tickets.