2017 © Pedro Peláez
 

bolt-extension bolt-extension-starter-extended

A description about your extension should go here.

image

bolt/bolt-extension-starter-extended

A description about your extension should go here.

  • Wednesday, August 23, 2017
  • by bobdenotter
  • Repository
  • 4 Watchers
  • 8 Stars
  • 903 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 4 Open issues
  • 8 Versions
  • 1 % Grown

The README.md

Extended Bolt Extension Starter

An extended starter skeleton for a Bolt Extension, (*1)

Installation

To get going run the following command, replacing the last argument with the name of your extension:, (*2)

composer create-project --no-install 'bolt/bolt-extension-starter-extended:^3.0' <newextname>, (*3)

Extension Content

This extension includes examples for the following features:, (*4)

  • Routes, (*5)

    • Handling inside extension class
    • Handling inside a controller class
    • Twig response
    • JSON response
    • URL parameter
    • GET and POST parameter
  • Accessing config, (*6)

    • Extension config
    • Global config
  • Own Twig functions, (*7)

  • Own Fieldtypes, (*8)

  • Event listeners, (*9)

    • Handling inside extension class
    • Handling inside a listener class
  • Own Menu Options, (*10)

Routes

This extension adds several example routes to the system to show you how to define them inline in your Extension class or in a separate controller., (*11)

/example/url returns "Hello, Bolt!" as plain text., (*12)

/example/url/in/controller returns "Hello, World!" as plain text but will be handled in a controller class., (*13)

/example/url/json returns a key value pair in JSON., (*14)

/example/url/parameter/{id} returns the given url parameter as JSON., (*15)

/example/url/get-parameter?foo=bar&baz=foo&id=7 returns the given GET parameter as JSON., (*16)

/example/url/template returns content from a Twig template., (*17)

Own Menu Options

This extension adds /bolt/my-custom-backend-page as Custom Page to the menu in the admin backend. It appears under Extras., (*18)

You are not limited to just backend sites or sites served by Bolt. You can add any URL to the menu in the admin backend., (*19)


For more information, see this page in the Bolt documentation: https://docs.bolt.cm/extensions/config, (*20)

The Versions

23/08 2017

dev-master

9999999-dev

A description about your extension should go here.

  Sources   Download

MIT

The Requires

 

The Development Requires

bar foo

23/08 2017

v3.0.2

3.0.2.0

A description about your extension should go here.

  Sources   Download

MIT

The Requires

 

The Development Requires

bar foo

02/05 2016

v3.0.1

3.0.1.0

A description about your extension should go here.

  Sources   Download

MIT

The Requires

 

The Development Requires

bar foo

24/02 2016

dev-bolt-v2

dev-bolt-v2

A description about your extension should go here.

  Sources   Download

MIT

The Requires

 

The Development Requires

bar foo

19/02 2016

v2.0.0

2.0.0.0

A description about your extension should go here.

  Sources   Download

MIT

The Requires

 

The Development Requires

bar foo

19/02 2016

v3.0.0

3.0.0.0

A description about your extension should go here.

  Sources   Download

MIT

The Requires

 

The Development Requires

bar foo

15/11 2015

v1.0.1

1.0.1.0

A description about your extension should go here.

  Sources   Download

MIT

The Requires

 

The Development Requires

bar foo

16/10 2015

v1.0.0

1.0.0.0

A description about your extension should go here.

  Sources   Download

MIT

The Requires

 

bar foo