Comments (3)
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.
Hey cool! thanks!
from cakephp-full-calendar-plugin.
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)
- No Showing any events on calendar (Cakephp 2.0) HOT 42
- Add more event tables HOT 4
- Unable to show the event after clicking the event in the calendar HOT 2
- I'm Using Cakestrap (Cake with Bootstrap) and i can't see the calendar HOT 2
- how to Filter events according to Event_type HOT 2
- Add Event in the calendar directly (when I click on the calendar) and saving data in database HOT 1
- Missing Controller (FullCalendarController.php) & Other Issues HOT 9
- Show only some kind of events HOT 5
- Change the Calendar event display format
- Calender not showing HOT 1
- jQuery - Newest version not compatible.
- Problem with Acl
- Disable feature for drag, drop and resize events HOT 1
- Full Calendar access
- Events not showing
- FullCalendar Integration with My Application HOT 1
- Notice (8): Undefined and no show calendar/index.ctp
- Event's not display on calendar-plugin
- Pre download HOT 1
- Fatal error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cakephp-full-calendar-plugin.