Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-12-2008, 07:37 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default Subclassing Zend_Controller

Has anyone tried creating a subclass of Zend_Controller? What were their experiences with this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-12-2008, 09:05 PM
Junior Member
 
Join Date: Nov 2007
Location: Elmshorn, Germany
Posts: 14
Send a message via ICQ to t-mow
Default

Code:
abstract class Lib_Controller_Action_Abstract extends Zend_Controller_Action
{
    public function init() { 
    // your init code here
    }
}
and then:

Code:
class Module_IndexController extends Lib_Controller_Action_Abstract 
{
	public function init()
	{
		parent::init();
        }
}
just a little example
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:09 AM.