i've done a little tinkering and i've noticed something strange.

my helper (app/views/helpers/language.php):
http://cakephp.org/pastes/show/246a27e939ee93fd4e8f1944ec3f9df4

works if when i call it from a controller like this:
var $helpers = array('Language');
...
function test(){}

and in my view:
<?= $language->getLanguages(); ?>

but, strangely, when i call a view from another controller as an ajax
element of another controller:
<?= $ajax->div('calendarDiv');?>
<?=$this->requestAction('events/miniMonth', array('return')); ?>
<?= $ajax->divEnd('calendarDiv'); ?>

(mini_month.thtml has <?= $language->getLanguages(); ?> in it)

i get an error: Call to a member function on a non-object

any thoughts?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to