I have a problem to show the date picker, I use the tutorial http://www.lexik.fr/sfblog/symfony/symfony-jquery-datepicker -491 to help me.
So I have link the javascript in the view.yml like the tutorial.
I've create this code in my action.class
- Code: Select all
class testActions extends sfActions
{
public function executeIndex(sfWebRequest $request)
{
for($i = 1900; $i<2010; $i++)
{
$years[$i] = $i;
}
$this->aazza = new sfWidgetFormJQueryI18nDate(
array('config' => 'yearRange: \'1900:2009\',
changeYear: true,
changeMonth: true,',
'culture' => 'fr',
'years'=> array_combine($years, $years))
);
}
}
And this code in my template
- Code: Select all
<?php
echo $aazza->render('birthday');
?>
This don't show a date picker, just a simple form to choose the date.
Can you help me !!!!
Did i forgot a use_helper ?
Did i need to include an other Javascript function ?
... ?
Thank you for your help.
