Philip Crow > Bigtop > docs/keyword_cookbook/app/location/discussion

Download:
Bigtop-0.38.tar.gz

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Source  

USE ^

The location keyword is deprecated. It was used to specify the base location for the application. You should put a location statement in the base_controller block to achieve this behavior.

Note that if you use a location, you probably need an app_rootp config parameter in the app level config block. But, don't expect to use either of those with a stand alone server. It doesn't play well with non-default paths.

EXAMPLE ^

To see an example, build:

    bigtop -c example.bigtop all

Change to the Kids directory and look for example in these files:

  docs/kids.bigtop
  lib/GENKids.pm
  lib/Kids.pm
  lib/Kids/Child.pm

Notice that this affects the CGI script, the stand alone server, and the httpd.conf. The stand alone server probably won't work correctly with a non-default location (even if you put the location statement in the base_controller block).

syntax highlighting: