Re: Final solution for Autocomplete In cake1.2

2009-07-06 Thread Marcelo Andrade

On Mon, Jul 6, 2009 at 10:57 AM, bhushan A wrote:
> (..)
> controller.  and written test_auto() in controller
>
> function test_auto()
>        {
>
>        }
>
> and in view (test_auto.thtml) i have wriiten these lines:
> "

1) Please, use the CakePHP version 1.2.x.
2) To a view named "test_auto", your action must
be "testAuto".  Tip: start trying with a "test" action.

> link('prototype');
> echo $javascript->link('scriptaculous');

An obvious question, but...  do you have a prototype.js
and scriptaculous.js files in your webroot/js to which
these call are related, don't you?

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

http://mfandrade.wordpress.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Final solution for Autocomplete In cake1.2

2009-07-06 Thread bhushan A

Hi all,

 i have read too many posts for  Autocomplete In cake1.2 . Discussion
was too long but problem remains unresolved. Can anyone tell me exact
solution for this. I have gone through "http://bakery.cakephp.org/
articles/view/autocomplete". But its for 1.1.
 I have added component in controllers/components. Added
"var $components = array('Autocomplete');
var $helpers = array('Html', 'Javascript', 'Ajax'); " lines in
controller.  and written test_auto() in controller

function test_auto()
{

}

and in view (test_auto.thtml) i have wriiten these lines:
"
link('prototype');
echo $javascript->link('scriptaculous');
 echo $ajax->autoComplete('User.login_name'); ?>


Still not working. Please help me..
"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---