-- Jigal sanders <[email protected]> wrote
(on Sunday, 06 December 2009, 05:11 PM +0100):
> I tried to change this. But nothing changed.
>
> Could it be in my layout.phtml?
Shouldn't be. Layouts are rendered via Zend_View, which turns on output
buffering prior to rendering the view script, and then captures the
content.
> <?php echo $this->doctype();?>
> <html>
> <head>
> <?php echo $this->headMeta();?>
> <?php echo $this->headTitle();?>
> <?php
> $this->jQuery()->enable();
> if($this->jQuery()->isEnabled()){
> $this->jQuery()->setLocalPath($this->baseUrl().'js/jquery/js/
> jquery-1.3.2.min.js')
> ->setUiLocalPath($this->baseUrl().'js/jquery/js/
> jquery-ui-1.7.2.custom.min.js')
> ->addStylesheet($this->baseUrl().'js/jquery/css/
> blitzer/jquery-ui-1.7.2.custom.css');
> echo $this->jQuery();
> }
>
> echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/
> style.css');?>
> </head>
> <body>
>
> <div id="menu"></div>
> <h1>MENU</h1>
>
> <?php echo $this->navigation()->menu() ?>
>
> <div id ="content">
>
> <h1><?php echo $this->escape($this->title); ?></h1>
> <?php echo $this->layout()->content; ?>
> </div>
> </body>
> </html>
>
> On Fri, Dec 4, 2009 at 4:06 PM, Bart McLeod <[email protected]> wrote:
>
> Now we're at it, you'd better not override the constructor, but the init()
> method instead....
> That might even help...
> And also, to focus on the problem, create a test page, that echoes your
> form and nothing else and see what you get.
>
> -Bart
>
> Jigal sanders schreef:
>
> this is mij form class
> <?php
>
> class JS_Form_NewEventForm extends ZendX_JQuery_Form{
>
> public function __construct($options=null){
> parent::__construct($options);
>
> $this->setName("newEvent");
>
> //naam
> $evtName = new Zend_Form_Element_Text("evt_name");
> $evtName->setLabel("Evenement Naam: ")
> ->setRequired(true);
> // omschrijving
> $evtDescription = new Zend_Form_Element_Textarea
> ("evt_description");
> $evtDescription->setLabel("Evenement omschrijving: ");
> // begin datum
> //$evtStartDate = new Zend_Form_Element_Text("evt_startdate");
> $evtStartDate = new ZendX_JQuery_Form_Element_DatePicker
> ("evt_startdate");
> $evtStartDate->setLabel("Begin datum");
> // eind datum
> $evtEndDate = new Zend_Form_Element_Text("evt_enddate");
> $evtEndDate->setLabel("Eind datum");
> // begin tijd
> $evtStartTime = new Zend_Form_Element_Text("evt_starttime");
> $evtStartTime->setLabel("Begin Tijd");
> // eind tijd
> $evtEndTime = new Zend_Form_Element_Text("evt_endtime");
> $evtEndTime->setLabel("Eind tijd");
> // aantal personen
> $amountPersons = new Zend_Form_Element_Text("evt_amtpersons");
> $amountPersons->setLabel("Aantal personen nodig ");
>
> $save = new Zend_Form_Element_Submit("save");
> $save->setLabel("Opslaan");
> $elem = new ZendX_JQuery_Form_Element_DatePicker(
> "datePicker1", array("label" => "Date Picker:")
> );
> $elem->setJQueryParam('dateFormat', 'dd.mm.yy');
>
> $this->addElements(array
>
> ($evtName,$evtDescription,$evtStartDate,$evtEndDate,$evtStartTime,$evtEndTime,$amountPersons,$elem,$save));
>
> $this->setMethod('post');
> $this->setAction(Zend_Controller_Front::getInstance()->
> getBaseUrl().'/events/add');
>
>
>
> }
> }
>
> but still the same error.
>
> On Fri, Dec 4, 2009 at 3:07 PM, Bart McLeod <[email protected]>
> wrote:
>
> I would like to add that for me, it only started working when I
> extended ZendX_etc.
> -Bart
> Bart McLeod schreef:
>
> I wonder why you are extending Zend_Form if you want
> datepickers. Why not extend ZendX_JQuery_Form, because you
> want
> datepickers the integrated way?
>
> -Bart
>
> Jigal sanders schreef:
>
> Yes I thought so.
> But i checked all files and using bluefish but i cant find
> the space.
>
> On Fri, Dec 4, 2009 at 2:22 PM, Matthew Weier O'Phinney <
> [email protected]> wrote:
>
> -- Jigal sanders <[email protected]> wrote
> (on Friday, 04 December 2009, 01:09 PM +0100):
> > Hello I have a strange problem.
> >
> > I am trying to enable Zendx_JQuery_Form
> >
> > So I have created a class as you can see here:
> http:/
> /pastebin.com/m2a43e1c2
> >
> > The problem is that my jquery datepicker fields
> don't
> work. I only get the
> > following error in firebug:
> >
> >
> > <br />
> > <b>Fatal error</b>: Uncaught exception
> 'Zend_Controller_Response_Exception' with message
> 'Cannot send headers; headers already sent in
> /var/www/
> nrka/application/controllers/EventsController.php,
> line
> 1' in /home/jigal/Public/ZendFramework-1.9.6/library/
> Zend/Controller/Response/Abstract.php:282
>
> Most likely you have some whitespace in your
> EventsController.php file
> at the top or _following_ a closing ?> tag.
>
> > Stack trace:
> > #0 /home/jigal/Public/ZendFramework-1.9.6/library/
> Zend/Controller/Response/Abstract.php(300):
> Zend_Controller_Response_Abstract->canSendHeaders
> (true)
> > #1 /home/jigal/Public/ZendFramework-1.9.6/library/
> Zend/Controller/Response/Abstract.php(727):
> Zend_Controller_Response_Abstract->sendHeaders()
> >
> >
> > #2 /home/jigal/Public/ZendFramework-1.9.6/library/
> Zend/Controller/Front.php(984):
> Zend_Controller_Response_Abstract->sendResponse()
> > #3 /home/jigal/Public/ZendFramework-1.9.6/library/
> Zend/Application/Bootstrap/Bootstrap.php(77):
> Zend_Controller_Front->dispatch()
> >
> >
> > #4 /home/jigal/Public/ZendFramework-1.9.6/library/
> Zend/Application.php(358):
> Zend_Application_Bootstrap_Bootstrap->run()
> > #5 /var/www/nrka/public/index.php(26):
> Zend_Application->run in <b>/home/jigal/Public/
> ZendFramework-1.9.6/library/Zend/Controller/Response/
> Abstract.php</b> on line <b>282</b><br />
> >
> >
> >
> > But in eventController.php in starts with <?php
> right
> at the beginning. There
> > is no empty space.
> >
> > Can anyone tell me what I am doing wrong?
> >
> >
> > thanks,
> >
> > J. Sanders
> >
> >
> >
> >
>
> --
> Matthew Weier O'Phinney
> Project Lead | [email protected]
> Zend Framework | http://framework.zend.com/
>
>
>
>
> --
> Met vriendelijke groet,
>
> Jigal Sanders
> A.J. Ernststraat 739
> 1082 LK Amsterdam
> Mobiel: 06-42111489
>
>
>
>
>
>
>
>
> --
> Met vriendelijke groet,
>
> Jigal Sanders
> A.J. Ernststraat 739
> 1082 LK Amsterdam
> Mobiel: 06-42111489
>
>
>
>
>
>
> --
> Met vriendelijke groet,
>
> Jigal Sanders
> A.J. Ernststraat 739
> 1082 LK Amsterdam
> Mobiel: 06-42111489
--
Matthew Weier O'Phinney
Project Lead | [email protected]
Zend Framework | http://framework.zend.com/