A: 

Last edit: I just do not understand the question. I can run jquery code fine in my layout (example I can use a datepicker right there in layout.phtml). Also your ajaxLink showed up just fine. I downloaded the exemple code from zendcast and pasted your code in the layout and it worked. So I do not know what it is that is not working for you sorry for losing your time.

edit: have you tried adding a

return $view;

At the end of your init. Usually its bette rto return this from a init method in the bootstrap. Maybe this is why nothign seems to load.

What you are doing should work so there must be something wrongin your code. Check this great tutorial about integrating Zendx Jquery he does exaclty what you want. Zendcast:Working with ZendX_JQuery

Also post some code so we know what might be wrong.

BTW there is an error in your code (not related to the jquery stuff). You echo twice the headlink if you look at the generated code you should see all your stylesheets in double. the right syntax would be:

<?php $this->headLink()->prependStylesheet($this->baseUrl().'/css/admin.css'); ?>
<?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/form.css'); ?>

or

<?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/admin.css')
           ->prependStylesheet($this->baseUrl().'/css/form.css'); ?>
Iznogood
Thanks for the answer, but it didn't help though.
Janis Peisenieks
@Janis have you watched the tutorial? Its like 20 minutes long and everything you want/need to know is there.
Iznogood
Thanks for the suggestion, and yes, I did just look at the cast. I have done everything just like he did in the cast.The thing is, that he used all of his jQuery inside a view. I for one, want to use it in a layout. That's the thing that isn't working.
Janis Peisenieks
@janis HE DOES. Jump to 6:52 in the video its RIGHT THERE. You just watched 1 minute of it. He migrates from the view to the layout during the video.
Iznogood
@Iznogood NOPE, HE DOES NOT! He just enables the view (index.phtml) to access jQuery functions, by inserting $this->jQuery(); in the layout. And no, I did watch all of it. I am here for help, and if someone offers something to check out, I do.
Janis Peisenieks
Really I dont know what you are looking for then. You asked for a way to enable jquery in your layout. I gave that to you. Things you shoudl consider: the jquery stuff wont show up in your layout if you do not use jquery anywhere. Its put there on a asneeded basis.
Iznogood
I edited the question. I don't think I can make it more clearer as to what I need.
Janis Peisenieks
You said: does not insert the JQuery script in the head tag. The what does it do instead? Crash? php error? Nohting? puts the jquery inside body instead?
Iznogood
It inserts nothing in the head. When i use the ajaxLink function directly in my layout, no jQuery include code is inserted in the <head>
Janis Peisenieks
Looking at the code you just posted I notice a double echo. echo echo. If that is in the real code then maybe thatwould throw an error and not include jquery perhaps. I am testing the code now that I am home maybe Ill find something.
Iznogood
No, it's not a real code,thats just to show what I needed. Something i threw together off the bat.
Janis Peisenieks
A: 

I experience the same problem WITH AJAXLINK.

The link is generated using this helper in a LAYOUT, but the JQUERY function which should do the AJAX call in the header NOT.

It works all perfect if I try the same in a VIEW.

Edit: I ended up in copying the ajax-code manually into the layout without using the ajaxlink-helper.

And I opened up a bug report here: http://framework.zend.com/issues/browse/ZF-10317

jamie0725