Giter Site home page Giter Site logo

Comments (3)

vanvolkan avatar vanvolkan commented on August 20, 2024

For those wanting to get this to work with CakePHP 2...There are a few things you will need to do - mainly just renaming files/moving files

Here's how I got mine to work:

  • First off rename the folders:
    /config --> /Config
    /controllers --> /Controller
    /models --> /Model
    /views --> /View

Now move the files /full_calendar_app_controller.php AND /full_calendar_app_model.php to their respective folders (move full_calendar_app_controller.php file to the /Controller folder, and move the full_calendar_app_model.php file to the /Model folder)

Now go through the /Controller folder and rename all files to be camel cased - e.g - event_types_controller.php --> EventTypesController.php , events_controller.php --> EventsController.php ... etc - make sure you do ALL the files, including the app_controller file you moved in here)

Next you do the same for the /Model directory, renaming all model filenames to camel cased, e.g. event.php --> Event.php, event_type.php --> EventType.php ... etc - make sure you do ALL files (including the app_model file you moved in here)

Move over to the /View directory, here you just need to rename the folders to camel cased (the files in the folders (e.g - add.ctp can remain as they are)) - so rename /View/event_types/ to /View/EventTypes/ .. etc

/webroot can remain as is

One last thing I had to do, in /Controller/FullCalendarAppController.php - it was using an old helper 'Javascript' - which has been deprecated - so I changed the following line:
var $helpers = array('Html', 'Form', 'Session', 'Javascript');
to:
var $helpers = array('Html', 'Form', 'Session', 'Js' => array('Jquery'));

Don't forget to load the plugin in the bootstrap.php file
(in /app/Config/bootstrap.php right at the bottom, you can either load ALL plugins with CakePlugin::loadAll(); ... OR just load our FullCalendar plugin with: CakePlugin::load('FullCalendar');

from cakephp-full-calendar-plugin.

1dolinski avatar 1dolinski commented on August 20, 2024

Hey cool! thanks!

from cakephp-full-calendar-plugin.

silasmontgomery avatar silasmontgomery commented on August 20, 2024

Master is now compatible with CakePHP 2.x. Sorry for the major delay on this but thanks to OverFlow636 for getting my ass moving on this again.

from cakephp-full-calendar-plugin.

Related Issues (20)

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.