Hi I am trying to use an external function in cakePHP which generates
Ajax trees . I have a tree.php in my /app/vendors and I included

App::import('Vendor', 'tree');

 in my app_controller.php

Everything seems fine now my problem is . How will I use a function in
tree.php file in a view or in a controller?

And in the example file there is a java script  I cut that javascript
from the example page and placed it under /app/webroot/js . (tree.js)

 Last step I added

echo $javascript->link('tree'); to my /app/views/layout/default.ctp .

is everything right because I cannot get any result ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to