Git Product home page Git Product logo

cakephp-survey's Introduction

CakePHP Surveys Plugin

Build Status Latest Stable Version Total Downloads Latest Unstable Version License codecov BCH compliance

About

Template for building CakePHP 3 plugins.

This plugin is developed by Qobo for Qobrix. It can be used as standalone CakePHP plugin, or as part of the project-template-cakephp installation.

Usage

Pull the template code into your plugin:

composer require qobo/cakephp-survey

Setup

Load plugin

bin/cake plugin load --bootstrap --routes Qobo/Survey

or manually add it to config/bootstrap.php:

Plugin::load('Qobo/Survey', ['routes' => true, 'bootstrap' => true]);

Survey plugin also uses ADmad/cakephp-sequence plugin for Questions/Answers ordering as part of qobo/cakephp-utils setup. In order to enable that feature don't forget to load it in APP/config/bootstrap.php:

Plugin::load('ADmad/Sequence');

In order for the plugin to work correctly, you should also run DB migrations:

./bin/cake migrations migrate --plugin Qobo/Survey

Surveys plugin is designed for the systems, that use authorised users, so you might run into few glitches on a plain CakePHP installation if you don't have native AuthComponent enabled.

We use qobo/cakephp-utils plugin as a generic toolset provider. It contains CakeDC/Users plugin to handle authentication/authorisation for the users.

The plugin was designed with AdminLTE theme in mind, so you can enable it as well using:

//inside config/bootstrap.php add:
Plugin::load('AdminLTE', ['bootstrap' => true, 'routes' => true]);
//in your AppController.php:
public function beforeFilter(Event $event)
{
  $this->viewBuilder()->theme('AdminLTE');
  $this->viewBuilder()->layout('adminlte'); // copy adminlte.ctp to your src/Template/Layout/ directory from the plugin.
}

Note: Qobo provides qobo/project-template-cakephp repository where you can find some of the company plugins already pre-configured and used.

Support

For bugs and feature requests, please use the issues section of this repository.

cakephp-survey's People

Contributors

anvyst avatar mamchenkov avatar georgeconstantinou avatar softius avatar stepanov avatar asaliev avatar eliamariutti avatar acrias avatar audricdel avatar christosapl avatar dependabot-preview[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.