Skip to content

jadavsushil/GtwUi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ui plugin for CakePHP

Plugin that binds various front-end and javascript libraries with CakePHP. This plugin is used as a dependency to other Gintonic Web plugins.

Requirements

CakePHP 2.4.0+
BoostCake
GtwRequire

Features

Installation

Copy this plugin in a folder named app/Plugin/GtwUi or add these lines to your composer.json file :

    "require": {
        "phillaf/gtw_ui": "*@dev"
    }

Load the plugin by adding this line to app/Config/bootstrap.php

CakePlugin::load('GtwUi');

Alias the HTML helper in your AppController.php

public $helpers = array(
    'Html' => array('className' => 'GtwUi.GtwHtml'),
);

Create a symlink from this plugin's webroot to the application webroot by running Console/cake GtwUi.symlink

Add the following config to your requirejs config file

requirejs.config({
    paths: {
        ui:     '/GtwUi/js',
        jquery: '//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min',
        jqueryDataTables: '//ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min'
    }
});

Copyright and license

Author: Philippe Lafrance
Copyright 2013 Gintonic Web
Licensed under the Apache 2.0 license

About

Plugin under development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 55.9%
  • CSS 32.4%
  • PHP 11.7%