This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » Javascript plugins » sfExtraWidgetsPlugin - Datepicker doesn't work
sfExtraWidgetsPlugin - Datepicker doesn't work [message #88287] Thu, 12 November 2009 18:02 Go to next message
fioner  is currently offline fioner
Messages: 10
Registered: April 2008
Junior Member
Hy, i try tu use : sfExtraWidgetsPlugin - Datepicker

configuration with this page http://symfony.swisscenter.com/extrawidgets/datepicker

First error :

[error js] $ is not defined (so i understand that prototype wasn't
there)...so i have modified _form.php, adding this :

<?php use_helper('ModalBox') ?>

( i know it's strange but it was just for prototype...)

2 error :

now, when i click calendars Pix : box open correctly but a error tell me :

The requested URL /main_dev.php/datepicker/days was not found on this server.

I think, it can't find the datepicker module, but why ??

my settings.yml :

# Activated modules from plugins or from the symfony cor
enabled_modules: [datepicker, captcha, default ]

thanks if u got a idea..




Fioner a Nightmare for YML...
icon14.gif  Re: sfExtraWidgetsPlugin - Datepicker doesn't work [message #88583 is a reply to message #88287 ] Tue, 17 November 2009 16:26 Go to previous messageGo to next message
fioner  is currently offline fioner
Messages: 10
Registered: April 2008
Junior Member
lol :

no body an idea ??? ......

so i change my settings.yml :

# Helpers included in all templates by default
standard_helpers: [Partial, Cache, Form, ModalBox, Date]

ModalBox for prototype... and Date for Datepicker...

After you have to change the datepicker.js :

var dp_url = '/main_dev.php/datepicker/';

==> replace 'main' by 'frontend' (if 'frontend' is the name of yours applications....)

AND IT'S WORK !!!

Why http://symfony.swisscenter.com/extrawidgets/datepicker don't talk about that ..?...?...

it must be like sensio : buziness practise.....


Fioner a Nightmare for YML...
Re: sfExtraWidgetsPlugin - Datepicker doesn't work [message #88610 is a reply to message #88287 ] Wed, 18 November 2009 01:06 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Hmm, which version of symfony are you using? I use 1.0 predominently, and this contains the datepicker.js file from what I can remember. I don't think we had to change this variable to get it to work.

Ah, just looking at that code, the reason why it appears to need access to the symfony app is that it is part of an Ajax operation. To be honest it should work with index.php - perhaps you need to clear your cache, or you have a problem with your production front controller.


Remember Palestine
Re: sfExtraWidgetsPlugin - Datepicker doesn't work [message #88646 is a reply to message #88610 ] Wed, 18 November 2009 14:15 Go to previous message
fioner  is currently offline fioner
Messages: 10
Registered: April 2008
Junior Member
thanks Halfer...

I use to read your posts since 3 or 4 years : you're really active on this forum and that's very nice !!! Cool

Now I use : symfony 1.2.9 /

i clear my cache every time... and i've changed nothing on my front controller...

I'll look this later, 'cause now i know that i'm not suppose to change it...

thks


Fioner a Nightmare for YML...
Previous Topic:Symfony and extjs2plugin
Next Topic:ysJQueryRevolutionsPlugin release
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software