This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.2 » sfPropelBehavior::registerHooks and doSelect
sfPropelBehavior::registerHooks and doSelect [message #102819] Tue, 20 July 2010 19:07
david_services  is currently offline david_services
Messages: 27
Registered: August 2009
Junior Member
Hi there,

I'm confusing about one thing, when trying to hook doSelect from a plugin, nothing happens, while save:post or save:pre works !

Is there any way to hook doSelect that way ?

This one works... (it means my class function is called)
sfPropelBehavior::registerMethods('fidelityPoints', array(
		array('MwPropelFidelityPointsBehaviorPlugin', 'handleRequest')
	)
);

sfPropelBehavior::registerHooks('fidelityPoints', array(
		':save:post' => array('MwPropelFidelityPointsBehaviorPlugin', 'handleRequest')
	)
);


This one doesn't (no call at all)
sfPropelBehavior::registerMethods('fidelityPoints', array(
		array('MwPropelFidelityPointsBehaviorPlugin', 'handleRequest')
	)
);

sfPropelBehavior::registerHooks('fidelityPoints', array(
		':doSelect' => array('MwPropelFidelityPointsBehaviorPlugin', 'handleRequest')
              // or doSelectOne or :doSelect:post or :doSelect:pre... nothing seems to work
	)
);


Any ideas ?

Tx

David

[Updated on: Tue, 20 July 2010 19:10]

Previous Topic:how to print a pdf file
Next Topic:[solved] 'echo url_for' question
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software