Skip to content

umer936/SodasHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SodasHelper plugin for CakePHP

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require swri-sodas/sodas-helper

Includes:

Elements:

  • Bootstrap toast
  • File dropper element
  • Read more element
  • Back to top element

TinyMCE configuration:

CSS

  • Bootstrap overrides
  • disables the up/down arrows on number inputs
  • disables the green checkmark on number inputs

How to use:

composer require swri-sodas/sodas-helper
composer require cakedc/tiny-mce

In Application.php:

$this->addPlugin('SodasHelper');

Then in the controller method, add:

$this->viewBuilder()->addHelper('TinyMCE.TinyMCE');

In a template, on an input/textarea/etc, add class timymce eg: echo $this->Form->input('input', ['class' => 'tinymce']]);

Lastly, at the bottom of the template file:

$this->TinyMCE->editor();

Middlewares configuration:

  • Set security headers
  • HttpsEnforcerMiddleware
  • CsrfProtectionMiddleware settings for https

TODO:

  • start and end time
  • SDDAS (generic plotting) - catalog/DB
  • plotting (idl/python/sddas/java (autoplot)) - hpca/
  • datatables
  • spawning a long running process - geoviz/plotting
  • ajax helper