Hii..
How can I access abstract class methods in zend form?
I have the following class in library folder
abstract class Adx_Controller_Standard extends Zend_Controller_Action
{
public function getSelectedAdvertiser()
{
return value;
}
}
I want to access getSelectAdvertiser() function in Module(Advertiser) -> Forms (AddAdvertiser.php) which is Zend Form.
How can I do this ?? please help!!
Can you be more specific here? Do you mean how can you access an abstract method from another class in a Zend_Form subclass?
You cannot instantiate abstract classes directly but you can access them if they are declared static or if you subclass the abstract class and then instantiate it.