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
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
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
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo