2017 © Pedro PelĂĄez
 

fuel-package fuel-module

Extension to Fuel Module class

image

indigophp/fuel-module

Extension to Fuel Module class

  • Friday, August 15, 2014
  • by mark.sagikazar
  • Repository
  • 0 Watchers
  • 0 Stars
  • 9 Installations
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Fuel Module

Latest Stable Version Total Downloads License, (*1)

This package is an extension to Fuel Module class., (*2)

Install

Via Composer, (*3)

json { "require": { "indigophp/fuel-module": "@stable" } }, (*4)

Note: This package cannot be used with indigophp/fuel-core <1.0.3., (*5)

Usage

Load this package before any other package that uses one of the following: Module, Request, Router, (*6)

Make sure that your extensions of these classes does not override them., (*7)

See examples for custom modules., (*8)

Note: The modules are processed alphabetically (in the order they are loaded). The first controller found will be routed., (*9)

Depending on the examples, here are some scenarios:, (*10)

  1. Uri moda will route to Moda\Controller_Modb in module moda
  2. Uri moda/modb will route to Moda\Modb\Controller_Modb in module moda_modb
  3. Uri moda/modb/modc will route to Moda\Modb\Controller_Modc in module moda_modb

If moda contains a Controller_Modb (according to load order):, (*11)

  1. Uri moda will route to Moda\Controller_Modb in module moda
  2. Uri moda/modb will route to Moda\Controller_Modb in module moda
  3. Uri moda/modb/modc will route to Moda\Controller_Modb (action modc) in module moda

Fallbacks are processed in a reverse order:, (*12)

  1. Uri moda/modb/fake will route to Moda\Modb\Controller_Modb (action fake) in module modb

Extending classes

You can extend 'Indigo\Fuel\Module' class to use your own namespace, URL prefix and default controller name. See get_namespace, get_prefix and get_controller functions., (*13)

Contributing

Please see CONTRIBUTING for details., (*14)

Credits

License

The MIT License (MIT). Please see License File for more information., (*15)

The Versions

15/08 2014

dev-develop

dev-develop https://indigophp.com

Extension to Fuel Module class

  Sources   Download

MIT

The Requires

 

by MĂĄrk SĂĄgi-KazĂĄr

extension module fuel