- Requirements
- Usage
- As Controller
- Change log:
- Donate to next release:
- Resources
- See other extensions:
jQuery full calendar wrapper.
- add/modify/remove event
- multi-user
- autocreate table
- usefull events list
- simple cron
- use jQuery themes
Requirements ¶
Yii 1.1.5 or above.
Usage ¶
1 Add in config/main.php:
'modules' => array(
'cal' => array(
'debug' => true // For first run only!
),
2 Check & set user privileges in modules/cal/components/ChangeUser.php
protected function renderContent()
{
$isAdmin = true; // check admin privileges
if (true == $isAdmin)
$users = array(// create you own users list
For delete event save it as text-empty message.
As Controller ¶
Unlike a widget:
- has no side portlets,
- text links replace with images,
- cron is action.
Sample controller is present under controller folder.
Change log: ¶
ver 1.1 (Feb 8, 2011) ¶
- added demo site
- added public property "layout"
- added public property "cronPeriod"
- fixed bug in url routing
- user Id store in session state now
ver 1.0 (Dec 12, 2010) ¶
- Initial release
Donate to next release: ¶
- represent Event Calendar as Base Controller
js problem
It looks like a nice extension of the "artshaw's fullcalendar" but I'm experiencing some troubles with the jquery libraries:
On event inserting while using the ui-dialog pop up:
I'm using YII 1.1.4 and the script libraries are loaded in that order: jquery, jquery-ui.min, fullcalendar.min, eventCal.
Have I to upgrade to Yii 1.1.5 ???
re: js problem
Yes. Yii 1.1.5 release upgrade jQuery UI to new version.
very nice!
This is impressive! Keep posting valuable extensions!
Good job!
Install
Hi,
Can you provide some more info how to install and kick-start this module.
I followed all the above steps but without any success.
0. I created a webapp (ex testdrive) and installed the module in testdrive/modules/cal/
What's next? How do I surf to my the calendar pages?
installation
Thanks Gustavo of the forum, I found out how-to.
it depends of your url rules:
if you use path then http://localhost/cal,
if you use index.php in the name http://localhost/index.php/cal
if you dont use path http://localhost/?r=cal
Impressive!
Simply impressive. That's a HUGE work, and it's released opensource. Thank you, thank you, thank you.
a little addition
i downloaded this and just love it, but there was no delete button on the event.
i added the button, integrated the new function in the eventcal.js file and added a new delete action to the controller.
if you want to i can send you the changed files ^^
delete button
Delete button is not need here. Simple modify your event and save it without any text. Empty events will delete from DB.
delete button
i did notice that, but i thought it was not really user friendly... it's not really intuitive and it takes more time to edit the event then to press a button :D
changing background color
Hi
I'm trying to change the 'backgroundColor' => '#EF1D1D'
of an event , when I do this in the Json demo on the array of an event it works fine
but when I do the same in on the events in actionList MainController, it is never applied.
how to get this great feature to work ?
the same problem as mentioned above
hello sir, the demo is working perfectly, but when i installed the module in my project , the ok and cancel button is not showing but 0 and 1 showing instead, and when i clicked them, nothing heppens, but the cross icon of that dialog box is worked, im using yii 1.1.8 . what am i supposed to do ?
o another thing, how can i delete an event, as you mentioned above, save as empty-text msg, i dont get it, what does that mean, please can you give me some suggestion\/ ?
again thanks in advance, it really an useful module.
ok i solved it :-)
that was my fault, i already installed a jquery ui(old version) manually in my project, when i remove that from my project, the module worked fine as i want, thanks again very much to the developer who created this for us :-)
Bug / Incompatibility with newer JQuery
If you're going to use the cal extension v1.1 with JQuery 1.6+ there's a bug on cal/components/fullCal/eventCal.js related to checkboxes.
In JQuery 1.6+ the checkbox parameters are set using this syntax:
$(".myCheckbox").prop("checked", true);
but the file uses the older:
$('.myCheckbox').attr('checked','checked')
so in this file you must change all
to
A ctrl+f / crtl+h and replace all will do the job.
This solves:
Hope this will help others.
this is great
but.. why isnt there any sample code for how to call the module other than going to index.php?r=cal , isnt there a way to just call to place the module anywhere? like most other components work
CDbException
I downloaded and unzipped the cal-controller-1.0 and cal_1.1 files into my protected folder. Now I'm getting this error message and have yet to see anything resembling a calendar on my page:
CDbCommand failed to execute the SQL statement: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'admin' in 'where clause'. The SQL statement executed was: SELECT * FROM
events_helper
t
WHERE user_id=adminTo clarify, I have no experience with frame works and their extensions, so technically oriented solutions will have to be well worded.
Thanks.
creating event..
I'm using this excellent porting of fullcalendar in a project.
It happened to me to have a wrong placement of the event after its creation.
Whether creating a full-day event or not it would display the event in the full-day box. When refreshing the page the event will eventually fit its position in the week/daily agenda.
So I modified cal/components/fulcal/eventCal.js
and after every
$("#EventCal").fullCalendar( 'updateEvent', tempEvent);
I added
$('#EventCal').fullCalendar("refetchEvents");
as to refetch events and refresh the component.
My two cents
D
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.