silasmontgomery / cakephp-full-calendar-plugin Goto Github PK
View Code? Open in Web Editor NEWSimple and Sleek Event Calendar Plugin for CakePHP
License: Other
Simple and Sleek Event Calendar Plugin for CakePHP
License: Other
----------------------------------------- WHAT IS THE CAKEPHP FULL CALENDAR PLUGIN? ----------------------------------------- The CakePHP Full Calendar Plugin allows you to easily integrate the jQuery based Full Calendar application with your CakePHP application for a slick ajax event calendar. The plugin brings the following MIT licensed software (see LICENCE) together to create a simple and sleek experience: -CakePHP (http://cakephp.org) Required by this plugin -Full Calendar (http://arshaw.com/fullcalendar) The jQuery based Calendar -jQuery (http://jquery.com) Required by Full Calendar -jQuery UI (http://jqueryui.com) Required for draggable and resizable events -qTip (http://craigsworks.com/projects/qtip) A jQuery plugin for hover details ---- WHY? ---- While working on another project I needed a visual calendar for event management for multiple users/accounts. From that project I decided to simplify the calendar and turn it into a plugin because there didn't appear to be a clean (easy to install and use) CakePHP Calendar plugin out there. In it's current form this plugin is for a single user though I plan on creating a few associated plugins to allow for multiple users, etc. ------------------------ THE INSTALLATION PROCESS ------------------------ NOTE: These instructions assume you already have a working copy of CakePHP with a database connection on your web server. You can read up on CakePHP installation and DB config here: http://book.cakephp.org/#!/view/913/Development AND http://book.cakephp.org/#!/view/922/Database-Configuration INSTALLED IN 4 SIMPLE STEPS 1. Download or fork the CakePHP Full Calendar Plugin at: https://github.com/silasmontgomery/CakePHP-Full-Calendar-Plugin 2. Create the folder "FullCalendar" in your "app/Plugin" directory and copy the Config, Controller, Model, View, and webroot folders into it. 3. Create an "events" and "event_types" table by importing the "FullCalendar.sql" file found in the "FullCalendar/Config" directory (Using PHPMyAdmin, command-line, etc). 4. In your Cake installation, edit "app/Config/bootstrap.php" and add the line "CakePlugin::load('FullCalendar');" at the bottom. THAT'S IT! You should now be able to access the Full Calendar Plugin at: http://yoursite.com/full_calendar You should add some Event Types first. Then you can start scheduling some Events!
Hy,
I am using the plugin FullCalendar for CakePhp.
But ,my problem is how can I add a new event when I click on the calendar and save data in database.
I added this to the file ready.js:
selectable: true,
selectHelper: true,
select: function(start, end, allDay) {
var title = prompt('Event Title:');
if (title) {
calendar.fullCalendar('renderEvent',
{
title: title,
start: start,
end: end,
allDay: allDay
},
true // make the event "stick"
);
}
calendar.fullCalendar('unselect');
},
The event is added on the calendar but when I refresh the event disappear also when I check the database this event is not added.
Please how can I get data and save it ????
Hello there. I know this is a 2 year old plugin, but I'm trying to get the calendar to show the events that are successfully input. There was a closed issue that got pretty confusing, but I was wondering if there is a fix for this out there? Thanks in advance...
When I trie to run mysite.com/full_calendar, I get this response:
Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:
Aro: Array
(
[User] => Array
(
[id] => 2
[username] => admin
[first_name] => Nemanja
[last_name] => �okić
[email] => [email protected]
[group_id] => 2
[created] => 2014-03-06 08:03:16
[modified] => 2014-03-06 08:03:16
[Group] => Array
(
[id] => 2
[name] => Administratori
[created] => 2014-03-06 08:00:56
[modified] => 2014-03-06 08:00:56
)
)
)
Aco: controllers/FullCalendar/FullCalendar/index [CORE/Cake/Model/Permission.php, line 92]
Hello,
I have currently a website, which has already several types of events, based in separate tables.
I was wondering is it possible to integrate them in your FullCalendar plugin. As far as I can see, there are the following solutions:
Could you please give some guidelines to solve the problem?
Thanks a lot!
Regards,
VaanBooch
Hi,
I am able to show the events I created in the calendar just fine
However, i am unable to show the details of the event by clicking on it in the calendar view and it shows this:
"Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404"
Can anyone help me?
I also got another problem which is the color for the event type
The color didn't show in the calendar
Thanks in advance
Hi Silas,
I cannot see the events on my calendar :(
I downloaded the zip silasmontgomery-CakePHP-Full-Calendar-Plugin-v2.0-0-gcc9fe66.zip CakePHP-Full-Calendar-Plugin
I have CakePHP 2.1
installed in app/Plugin/FullCalendar
I created the DB tables
I see the calendar at localhost/full_calendar
I added event_types
I added events
1 1 Lorraine 2012-02-06 18:50:00 2012-02-06 20:50:00 1 Scheduled 1 2012-02-06 2012-02-06
2 1 rosemere 2012-02-09 15:52:00 2012-02-09 18:52:00 0 In Progress 1 2012-02-06 2012-02-06
There are no events on the calendar....
How to change the calendar event display format into for example, 11.00a.m - Title.
The default is showed as start followed by title without space (11aTitle).
Could anyone help me with this problem?
Thx
It don't show any event..
Notice (8): Undefined index: start [APP/Plugin/FullCalendar/Controller/EventsController.php, line 83]
Notice (8): Undefined index: end [APP/Plugin/FullCalendar/Controller/EventsController.php, line 83]
Notice (8): Undefined variable: data [APP/Plugin/FullCalendar/Controller/EventsController.php, line 104]
null
what can i do? any suggestions?
There is a problem with showing event title on the calendar please can you find out?
i follow all step's to install plugin and it display calendar view but not event's in it...
Hi,
This is not an issue but rather a question.
I integrated this plugin into my webapp.
I want to disable the feature for dragging, dropping and resizing events. It should be part of the fullcalendar.min.js code right? I am new to javascript. The file doesn't look readable when opening using normal editor. Do I need to do something before I can update the source code? Thanks.
Hello,
i try to use tablePrefix for this plugin and set the prefix in FullCalendarAppModel, but for associations it is not considered. i set in model associations the plugin name and success! now i can use tablePrefixes...
example for EventType
var $hasMany = array(
'Event' => array(
'className' => 'FullCalendar.Event',
'foreignKey' => 'event_type_id',
'dependent' => false,
)
);
greetings
So I downloaded this plugin and used it on my web application and fortunately, it's working. I can save events to the database either. Everything is working fine.
Since the CakePHP documentation is somewhat lacking in explanation I have some questions I needed to be answered. I hope someone can help me out.
Like what the author said in his post you can access the calendar plugin on this url: localhost/app_name/full_calendar
So in my application there are 3 users. One user will be the staffs who will handle the calendar feature of the application. Its url is: localhost/app_name/staffs/index.
These are my questions:
Thanks in advance!
in your index.ctp it should read:
echo $this->Javascript->link('/full_calendar/js/jquery-1.5.min', false);
echo $this->Javascript->link('/full_calendar/js/jquery-ui-1.8.9.custom.min', false);
echo $this->Javascript->link('/full_calendar/js/fullcalendar.min', false);
echo $this->Javascript->link('/full_calendar/js/jquery.qtip-1.0.0-rc3.min', false);
echo $this->Javascript->link('/full_calendar/js/ready', false);
echo $this->Html->css('/full_calendar/css/fullcalendar', null, array('inline' => false));
Hi again.. i'm using your plugin with cakestrap (https://github.com/hugodias/cakeStrap) and it doesn't show the calendar.. any ideas? or something.. of what can i do?
Thanks in andvance..
Since there seems to be little activity on this repo I will post my findings for future visitors trying to get this work with the latest version of jQuery.
I have had severe troubles getting this plugin to work unless using the specified version of jQuery with this repo. Once I loaded up the right version of jQuery this plug in worked, and works wonderfully. :-)
Hi, I'm asking if I can use your calendar for create a booking system ?
I've already got a Table wich contain my rooms and I want to add to the customer the possibility to book the room and display which day is booked on the calendar.
Thanks :)
hai.Let me explain in short my problems.
-im new to cakephp.
-i need to develop a timesheet system using cakephp.
-i need to include a fullcalendar in my cakephp.(which i've done using the silas/cakephp-full-calendar-plugin)
-i want to make the calendar to be editable.(i've changed the editable:false to editable:true in the ready.js)
-BUT i CANT view the events in the calendar eventhough i've created the events and CAN view it in the events/index, and so on.
-MAIN purpose of timesheet cakephp is to calculate total time spent for a project, which will be generated automatically.(need coding for this)
-how to edit the events in the calendar ?and where and how to edit the code?pls help me out.
its my BIG project..
Following the instructions in the current form does not work. Any ideas of how to get this up and running in cake ver. 2.0.4?
When i am moving scheduled event, display time is not accurate and its impossible to move it from 8:00 am to 9:00, usually it writes 8:50 or 9:20. Also, fiebug reports a bunch of errors:
Missing View
Error: The view for EventsController::update() was not found.
Error: Confirm you have created the file: E:\crm\app\Plugin\FullCalendar\View\Events\update.ctp
Notice: If you want to customize this error message, create app\View\Errors\missing_view.ctp
Stack Trace
CORE\Cake\View\View.php line 460 → View->_getViewFileName(null)
CORE\Cake\Controller\Controller.php line 962 → View->render(null, null)
CORE\Cake\Routing\Dispatcher.php line 110 → Controller->render()
CORE\Cake\Routing\Dispatcher.php line 85 → Dispatcher->_invoke(EventsController, CakeRequest, CakeResponse)
APP\webroot\index.php line 96 → Dispatcher->dispatch(CakeRequest, CakeResponse)
(default) 9 queries took 0 ms Nr Query Error Affected Num. rows Took (ms)
1 SELECT COUNT() AS count
FROM crm
.events
AS Event
WHERE Event
.id
= 1 1 1 0
2 SELECT COUNT() AS count
FROM crm
.events
AS Event
WHERE Event
.id
= 1 1 1 0
3 UPDATE crm
.events
SET start
= '2012-3-9 8:50:00', modified
= '2012-03-08' WHERE crm
.events
.id
= '1' 1 1 0
4 SELECT COUNT() AS count
FROM crm
.events
AS Event
WHERE Event
.id
= 1 1 1 0
5 SELECT COUNT() AS count
FROM crm
.events
AS Event
WHERE Event
.id
= 1 1 1 0
6 UPDATE crm
.events
SET end
= '2012-3-9 9:21:00', modified
= '2012-03-08' WHERE crm
.events
.id
= '1' 1 1 0
7 SELECT COUNT() AS count
FROM crm
.events
AS Event
WHERE Event
.id
= 1 1 1 0
8 SELECT COUNT() AS count
FROM crm
.events
AS Event
WHERE Event
.id
= 1 1 1 0
9 UPDATE crm
.events
SET all_day
= '0', modified
= '2012-03-08' WHERE crm
.events
.id
= '1' 0 0 0
If you move the files up one folder and remove the top-level container, people can just submodule this project into their git repo, a fairly common practice.
Thanks.
full calendar plugin added in my project but how i can access that calendar through menu option
Great pluggin. Thank you for your work. I would like to add this to my project but would appreciate if you added the non minified versions of your js. Thanks again. Also out of the box the calendar did not display events.
EDIT: nevermind.. I realized the fullCalendar was an additional pluggin.
Hi everyone,
I'm using this plugin in my application and I have modified it a little in a way that the events table save the ID of the user who created the event. I'm wondering if there is a way of modify the calendar index so that shows only the events created by that user.
Could anyone help me?
Thanks!
I did as per the instructions, but cant find the calender in my working site, is there any changes to be done in the route.php file?
I followed the install instructions to the letter and this is also not my first time installing a plugin.
When I navigate to http://www.mydomain.com/cake_directory/full_controller, I receive a missing controller error message. I have loaded the plugin at the bottom of my bootstrap as instructed.
I am using CakePHP 2.2
I want to show events of a specific event_type on the calendar
how can I do it please???
Hi im using elements for different menus in my site using cakephp to create the links eg; echo $this->Html->link('Home',array('controller'=>'users','action'=>'home'));
My links all break when using the full_calender plugin 2.0 branch when i click the link to the full calender page located at; http://localhost/mysite/full_calendar
all the links in my element are broken and become;
http://localhost/mysite/full_calendar/home/
instead of
ive installed the plugin in app/plugin
Im using the controller name and view in my links in the element so whats going wrong?
class 'FullcalendarAppController' not found in FullCalendarContoller.php error occurs
if an event is not allday and starts in month before and ends in the month after the selected month in calendar, so the event is not shown.
my simple approach is to set explicitly the end for every event and make changes to line 78 from
$conditions = array('conditions' => array('UNIX_TIMESTAMP(start) >=' => $vars['start'], 'UNIX_TIMESTAMP(start) <=' => $vars['end']));
to
$conditions = array('conditions' => array('UNIX_TIMESTAMP(end) >=' => $vars['start'], 'UNIX_TIMESTAMP(start) <=' => $vars['end']));
that works for me, because i don't use allday events, so there is set an vaild end...
the drag&drop feature sets an ugly 1970-01-01 01:00:00 date for allday events end
greetings
I would like you use the cake 2.1 help, downloaded the plugin but events / feed to the following error:
Notice (8): Undefined index: start [APP \ Plugin \ FullCalendar \ Controller \ EventsController.php, line 83]
Notice (8): Undefined index: end [APP \ Plugin \ FullCalendar \ Controller \ EventsController.php, line 83]
Notice (8): Undefined variable: data [APP \ Plugin \ FullCalendar \ Controller \ EventsController.php, line 104]
null
And my events are not being displayed in the index.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.