WD Calendar for Yii ¶
This is a Yii framework module that implements WD Calendar (http://sourceforge.net/projects/jqeventcalendar/).
Requirements ¶
Yii 1.1.7 (tested)
MySQL DB Connection
Installation ¶
Step 1) extract the content under protected/modules
Step 2) Set your configuration file protected/config/main.php
...
'modules' => array(
...
'wdcalendar' => array( 'admin' => 'install' ),
...
)
...
Step 3) Visit http://yoursite.com/wdcalendar (or http://yoursite.com/index.php?r=wdcalendar) and follow the installation steps.
Step 4) Enjoy Your WD Calendar :)
Features ¶
You can either embed
the calendar in your own design, or leave it to display full screen (default)
...
'modules' => array(
...
'wdcalendar' => array( 'embed' => true ),
...
)
...
You can also set WD specific options
...
'modules' => array(
...
'wdcalendar' => array(
'wd_options' => array(
'view' => 'week',
'readonly' => 'JS:true' // execute JS
)
),
...
)
...
Demo ¶
Click here to see it in action
Links ¶
http://sourceforge.net/projects/jqeventcalendar/
Releases ¶
v.0.1 - 06/24/2011
- comes with the basic WD features, create/delete/update,
- drag-and-drop events,
- can be embedded into layout
super module
Hi , The module is nicely functional
I would love to see a frequency (repeat feature like Google Cal)
maybe it's there butI didn't see it
great work
thank you
hello, and thank you!
Recurring events are currently not supported, but they say on their site here that it's in the works.
--iM
What the bloody hell?
Were you on prescription meds while writing this module? While trying to make use of it, I might have lost a good portion of my sanity. Why on earth would you go and try to bypass everything good and/or established that comes with Yii? Such as its template engine? And its database abstraction layer? Most of the time I've spent digging through your code, I were under the impression a chimp smeared his doo-doo over a keyboard. Please fine sir, consider putting this module out of its misery, burry it in your backyard and start anew. The way it is, there is absolutely no way this could be included into a project that - once released - doesn't make pandas cry.
sanity
Da:Sourcerer,
thank you for your kind words, very nice :)
I did NOT write WD Calendar! I just ported it over so it can be used for Yii projects. It was NOT written for Yii, it was (and it IS) a stand alone PHP, JQuery calendar. So obviously it has nothing to do with templates or DB layers etc
Could it be improved? Of course it could. Just like anything else. I'd be more than happy to apply your patches, but I want to keep the code as close to the original as possible, so when a new jQuery extension arrives, I can easily update this module.
Thanks again,
--iM
RE: sanity
Well, thanks for your explanations. Still, I'm not very convinced. I'd love to provide patches but I am currently working on a payed, closed-source project for which I am writing a spanking new implementation, so that's right off.
So then, I am (and were) totally aware that you are not the person behind JQ Calendar. However, it came to my attention that you took JQ Calendar's demo code and shove it into a Yii module. This approach is very problem-laden, especially since JQC's php-code isn't exactly top-notch. Anyway, JQC is a js-library. Hence, the supplied demo-code should be neglected. Some hints:
die()
.Yii::app()->end()
is the way to go.StartTime
field. Lookups will be much faster for larger datasets. Also, consider renaming some of the fields to something that makes more sense.xTime
for a field holding aDATETIME
is outright evil.So, the monkey-poop thing still stands. The module might be good enough for people who just need something that works more or less out-of-the box. For everybody else, it is entirely unusable.
re: RE: senity
Da:Sourcerer,
Thank you very much for taking your time and giving me a detailed explanation. I (more or less) completely agree with you on everything.
When I originally looked around for a usable calendar for Yii, I simply could not find one. Period. They were either too slow, or they looked like they were from the 90s (which was a long time ago in computer years :) ). And fortunately/unfortunately I found this one to be OK, not perfect, but it did the job.
Obviously this is not for everybody, but if you need a modern looking calendar in about 10 minutes, there you go.
On the development side, I really don't want to change the way WD handles their internal SQL/PHP stuff (or the DB schema, column properties etc) simply because when a new release comes around (with new features, hopefully soon) I should be able to just plug-n-release. Is this the best approach? Maybe not.
In the future I might release a new extension, that uses WD only for displaying, and handle the internal stuff through Yii (with AR, permissions, table prefixes etc) but it won't happen for a while.
Oh, and if you managed to have a good Yii calendar, maybe you should release it as an extension ;)
thanks again,
--iM
Delete in Edit.php fails
It seems the value is hard coded to 8
I replaced the value with
[code]
if (confirm("Are you sure to remove this event")) {
var param = [{ "name": "calendarId", value: <?php echo isset( $event ) ? $event->Id : '' ?>}];
[/code]
Display logged in user events only
I modified datafeed.php to use Yii::app()->user->id when adding/updating/deleting/retrieving of data. Added user_id (int) to data table.
Happy to share.
Good module!
Hello imehesz, congratulations for the good wdcalendar for yii implementation. It is very valuable for me!
required events array fields
Hy. How can i determine what fields are required in events array? ( datafeed.php listCalendarByRange() )
want to use on dashboard module
hello
this is very nice extension. i want to put it on my dashboard. i search a lot but i cant find out the way how i put this wdcalendar in dashboard module..
anybdy have solution?
thanks in advance.
reallt cool
wow this is so great.
i don't know great module before.
this is so cool.
thank you :)
Recurring Events
Hi,
i see there is a db field created for the recurring rules for the events but there is no option where i could select the recurring rules for the events, has anybody implemented it, any help will be appreciated
regards,
Omer Aslam
amazing module
Thank you very much! I found this amazing module. I just have a question, I need to install this module 2 times as I need an editable version, and other read-only. How can I do this?
I have the following question. As I can go directly to the event addDetails?
[SOLVED]
When I try to change the name to "recorder" get the message "Alias" recorder.RecorderModule "is invalid. Make sure it points to an existing PHP file and the file is readable."
Best Regards
dashboard in a view
hey this is a great module I really liked it, I have a question, how can I put this module in a view? like for example 'applicaction/usuario/dashboard ?
please I really need it
Dropdown doesn't work in crome
hello,
Nice extension.It fulfill my requirements. I did little modification. i changed textbox to dropdown. It works perfect in mozilla.but in crome it doesn't support. Dropdown is not selectable. In jquery.calender.js i tried to find the issue but i failed. Any solution ?
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.