Have you tried:
 
{{=LOAD(plugin='components', function='test.load', ajax=True)}} 
 
or just:
 
 {{=LOAD('components', 'test.load', ajax=True)}} 
 
It looks like the book is incorrect regarding the signature of the LOAD 
function -- as you pointed out, the first two arguments of the 
LoadFactory.__call__ method are 'plugin' and 'function', not 'c' and 'f', as 
stated in the book.
 
Anthony
 

On Tuesday, February 22, 2011 1:35:59 AM UTC-5, pbreit wrote:

> I just started working with components. Very cool! 
>
> I ran into an issue that may be a bug. It seems that LOAD will only 
> load from default.py controller. If I specify a different controller, 
> I get: "invalid function (default/components)" 
>
> Here's my LOAD: 
> {{=LOAD(c='components', f='test.load', ajax=True)}} 
>
> The book says this: 
> LOAD(c=None, f='index', args=[], vars={}, 
>      extension=None, target=None, 
>      ajax=False, ajax_trap=False, 
>      url=None): 
>
> I noticed this in the code: 
>     def __call__(self, plugin=None, function='index', args=[], 
> vars={}, 
>                  extension=None, 
> target=None,ajax=False,ajax_trap=False, 
>                  url=None):

Reply via email to