ManiaLib 1.0b1 API Reference

File/mvc/config.default.php

Description

MVC framework default config

This is the default configuration file. You shouldn't modify anything in this file. Instead, override the constants you want in your "config.php" file.

Constants
APP_MVC_CONTROLLERS_PATH = APP_PATH.'controllers/' (line 54)

Path to the controllers directory of your application

APP_MVC_DEFAULT_ACTION = 'index' (line 90)

Default action when a controller hasn't defined its own default action.

You shouldn't have to change this.

APP_MVC_DEFAULT_CONTROLLER = 'Home' (line 82)

Default controller of your application

APP_MVC_FILTERS_PATH = APP_PATH.'filters/' (line 68)

Path to the filters directory of your application

APP_MVC_FRAMEWORK_FILTERS_PATH = APP_MVC_FRAMEWORK_PATH.'filters/' (line 33)

Path to the MVC framework filters directory

APP_MVC_FRAMEWORK_LIBRARIES_PATH = APP_MVC_FRAMEWORK_PATH.'libraries/' (line 26)

Path to the MVC framework libraries directory

APP_MVC_FRAMEWORK_PATH = dirname(__FILE__).'/' (line 19)

Path to the MVC framework directory

APP_MVC_FRAMEWORK_VIEWS_PATH = APP_MVC_FRAMEWORK_PATH.'views/' (line 40)

Path to the MVC framework views directory

APP_MVC_MODELS_PATH = APP_PATH.'models/' (line 75)

Path to the models directory of your application

APP_MVC_URL_SEPARATOR = '_' (line 109)

Controller name separator

eg. /some_request/ will be mapped to SomeRequestController

APP_MVC_USE_URL_REWRITE = false (line 101)

Does your application use Apache Mod Rewrite ?

  • Without mod rewrite: /index.php?/some_controller/some_action/
  • With mod rewrite: /some_controller/some_action/

APP_MVC_VIEWS_PATH = APP_PATH.'views/' (line 61)

Path to the views directory of your application