Re: cake & dojo (generally external libraries)

2006-08-22 Thread bwaters
You can have my headhelper component. http://www.cakephp.org/pastes/show/7e55bff7e509597a6a004600af895bcf The widget syntax is so html like that I havn't bothered to create a helper for it and just write it straight into my views. --~--~-~--~~~---~--~~ You receiv

Re: cake & dojo (generally external libraries)

2006-08-22 Thread Matt2012
Has anyone got some code they can share which allows dojo widgets in cake views I cant get this to work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-ph

Re: cake & dojo (generally external libraries)

2006-08-01 Thread someguy
Dojo is mostly working for me. I ended up creating a headhelper singleton component that is an array of dojo pagkages and adding it to my appcontroller. In my layout It loops through and writes out all of the requires in the layout. As long as there is at least one package it also puts the link

Re: cake & dojo (generally external libraries)

2006-08-01 Thread Matt2012
Im also interested in getting dojo working with cake php and am having problems would be good to hear from anyone who has succeeded. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

Re: cake & dojo (generally external libraries)

2006-07-30 Thread zipman
Thanx for the reply... I have tried all the above and the problem remains. The new rendered view ignores dojoType="Checkbox". I wonder if the problem has to do with dojo. Has anyone worked with dojo and cakephp using ajax requests that has the above working? I don't know if I have to quit dojo or

Re: cake & dojo (generally external libraries)

2006-07-30 Thread nate
No, you're not getting it. Here's how your code should look: (1) You should render your 'view' page in the default layout (default.thtml), like so: function view($id) { if($id=="test"){ $this->render('test'); } } (2) All of this: link('dojo/dojo.js') ?> link('prototype')?> link

Re: cake & dojo (generally external libraries)

2006-07-30 Thread zipman
So there is no way to solve the problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: cake & dojo (generally external libraries)

2006-07-30 Thread zipman
But in the above example ajax is my default layout. As you can see function view($id) { if($id=="test"){ $this->render('test', 'ajax'); } } The first time is rendered properly, but when I click on the link to itself through ajax->link I have the same problem even when I load all the external libr

Re: cake & dojo (generally external libraries)

2006-07-29 Thread nate
I'm suggesting you load all external JavaScript libraries in your default, regular HTML layout (probably default.thtml). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

Re: cake & dojo (generally external libraries)

2006-07-29 Thread zipman
nate wrote: > Because of the way Ajax (well, Prototype) works, you can't dynamically > load external JavaScript libraries in Ajax calls. So putting > $javascript->link( ) calls in your Ajax layout won't do anything for > you. Any external libraries you use in a page must be loaded on the > init

Re: cake & dojo (generally external libraries)

2006-07-29 Thread nate
Because of the way Ajax (well, Prototype) works, you can't dynamically load external JavaScript libraries in Ajax calls. So putting $javascript->link( ) calls in your Ajax layout won't do anything for you. Any external libraries you use in a page must be loaded on the initial HTTP request. If y

cake & dojo (generally external libraries)

2006-07-29 Thread zipman
I have some problems with cakephp and dojo. The problem is that when I access a web page I have no problem seeing dojo libraries but when I access it through $ajax->link some modules are not loaded or not functioning properly. I guess there must be a problem with rendering and layout. For example