A good way to have a component in a view:
class ImageComponent extends Object
{
function startup($controller) {
$this-controller = $controller;
$this-controller-set('image', $this);
}
function hello() { return hi!; }
}
it will be available in views: echo
Has been fixed yesterday, phew :)
--~--~-~--~~~---~--~~
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 [EMAIL
This works for me in IE for a single div, I have not tried multiple
divs in IE yet.
nate wrote:
Okay, this is working fine on the following:
PC: Firefox 1.5.0.4
Mac: Firefox 1.5.0.4, and 1.0.7
Clearly there's something else at issue here.
Yes, it works in IE too. It was tested in all major browsers on all
major platforms before being released.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Hi All,
I am playing with Ajax in Cake more and more and I like it. I just
upgraded the Cake version and found out that we can update multiple Div
in a single ajax call.
I have seen here some topics about this, but none answer to my question
:
can we update multiple div in a controller action
Using AjaxHelper::div( ) and AjaxHelper::divEnd( ), you can create
sections of your view that can be rendered and updated on the client
side. And although you could update one view with the contents of
another, the whole point of this feature is to allow you to use a
single view/action for
I think you're over-thinking this, it's really quite simple. In your
example, you just need to make the following change:
// test.thtml
?php e($ajax-div(main_head)); ?
h1Main Head Updated/h1
?php e($ajax-divEnd(main_head)); ?
?php e($ajax-div(sub_head)); ?
h2Sub head updated/h2
?php
Thanks a lot, I have tested the given example and it does not work on
my side ...
When I press the link, the div are not updated (neither time or
variable)..
I must have got something wrong, into some tricky variable ? layout ?
controllers ??
But I have other part of Ajax working (the one
Short checklist:
(1) Have you checked your paths? The /controller/test URL in the
example code was just a fill-in-the-blank.
(2) Have you checked your JavaScript console to see if you are getting
any errors there?
(3) Do you have the Prototype library loaded properly?
(4) Paste your code:
Thanks fpr help, I figured out that I mistype one of the link ..(I did
check it 100 times, but maybe too long looking at this code). Anyway
after cleaning the cahe, it works ...
Now I have another question : on a simple view for I want to put a
button to go back to the previous page ..So I can
Hi
I've just been struggling over the past few days to get Cake running on
my Macbook Pro.
Everything works fine, except for the default setup page lacking images
and
Research suggested this was a mod_rewrite issue, but I haven't tracked
down the correct solution.
My httpd.conf is set to
jb-
thanks for the input but that isn't exactly the issue. What I don't
quite get is a) why I'm getting an index error, and b) how to
populate the db (with the imageFile [name] value in addition to the
other values passed by the form) at the same time I'm uploading the
file into a specific
Great Tip RosSoft, ginstrom. Thanks! One more thing. The Image library
extends File
but the components extends Object. I know i could use the File class by
agregation but i wanted to inherit the File methods in Image. Any tips
about that?
--~--~-~--~~~---~--~~
Wow - HeadHelper just made my site run much faster (no unnecessary js
loads!) and saved me a ton of work. It should really be a core part of
CakePHP, not a separate snippet!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Is there anyone here has a cakephp installed on Netfirms with
mod_rewrite enabled? I tried to setup a cakephp on Netfirms and need
some helps to get the mod_rewrite running properly.
Here is my url: http://devindoz.com
By default (without modifying anything on .htaccess file) I got this
error
did you have any success with this rossoft?
Cheers
--~--~-~--~~~---~--~~
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,
did you have any success with this rossoft?
Cheers
--~--~-~--~~~---~--~~
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,
Is coeus inside your webserver document root, or are you using an
alias? If you are using an alias, then you need to modify your
app/webroot/index.php and app/webroot/.htaccess.
Modify app/webroot/index.php to have:
define('WEBROOT_DIR', 'coeus');
instead of the default WEBROOT_DIR define,
Sorry. I Just realize that FIle extends Object. So ill guess ill turn
Image class into a
component. ;) Thank you All!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send
See my reply for the topic right below this - Cake setup on OS X - no
CSS/img t
http://groups.google.com/group/cake-php/browse_thread/thread/1a00532bd07e4de0/b6638df4ec10993c#b6638df4ec10993c
(I'm not sure if that link will work...)
Basically, when using Apache aliases you need to modify the
Thanks for your reply Grant Cox. I have read your post on the other
thread as well. Tried your suggestion but it won't solve my problem :(
Considering to give up mod_rewrite and just use cakephp nice url but
then I have problem with the incorrect link. When I am at let's say
I have found a way to make the cakephp nice url link works properly (at
least in my case). I edited html.php file located at
cake/libs/view/helpers/
on line 132 :
$base = strip_plugin($this-base, $this-plugin);
I changed it to
$base = '/index.php';
I am not sure if this is a proper work-around
Zach Cox, have you been able to solve your problem?
If not, please refer to this thread:
http://groups.google.com/group/cake-php/browse_thread/thread/e86def1583d50760/0f4bc3ae1402d278
Hope that helps. Thanks.
--~--~-~--~~~---~--~~
You received this message
23 matches
Mail list logo