2017 © Pedro Peláez
 

symfony-bundle ctrl-rad-bundle

Symfony CtrlRadBundle

image

ctrl-f5/ctrl-rad-bundle

Symfony CtrlRadBundle

  • Tuesday, May 23, 2017
  • by mythix
  • Repository
  • 1 Watchers
  • 0 Stars
  • 204 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Ctrl RAD Bundle

Build Status Code Climate Test Coverage, (*1)

This bundle provides components to have a Symfony application up and running ASAP., (*2)

There is [a Fork available that implements this bundle][101] in the Symfony2 standard distribution., (*3)

What's inside?

  • Layout based on StartBootstrap Admin 2 including:
    • Twig Extensions for easy use of Twitter Bootstrap components suck as label and pagination.
    • easy configurable layout and templates for sidebar, topbar and breadcrumbs
    • [FOSUserBundle][102] template overrides
  • Basic configurable CRUD components
    • provided index and edit actions
    • index has a configurable grid with pagination and optional filtering
  • EntityService layer
    • provides a layer between the controllers and doctrine to put business logic that doesn't fit in any entity
    • provides basic methods to fetch data, optionally filtered and sorted
    • find methods provide easy availability to pagination
  • TableView
    • Configurable columns and row actions
    • automatic pagination
    • automatic filtering in CRUD index action

SB Admin 2

The default layout is StartBootstrap Admin 2, which is included through bower, so you can update it easily if needed., (*4)

There are several blocks you can override to control different parts: - topbar - sidebar - breadcrumbs, (*5)

The app title that's used in the topbar and the html title can be set through the twig variable app_title.
This can also be set globally:, (*6)

twig:
  globals:
    app_title: "My App"

Twig Extensions

  • Filters
    • label: converts a string or boolean to a bootstrap label, booleans are converted to yes or no
    • is_type: check if the variable is of a certain type
    • call: calls a php callable variable
  • Functions
    • page_title: prints the html for a page title for bootstrap
    • pagination: prints the html for a pagination for bootstrap
    • is_type: check if the variable is of a certain type
    • button and buttonGroup: render bootstrap buttons
    • table: render a TableView

More to read

  • [Ctrl Common][201]
  • [Ctrl Rad Bundle][210]
    • [docs][211]

The Versions