Jump to content
Larry Ullman's Book Forums

Book Feedback: Controller Extensions


saniko
 Share

Recommended Posts

Larry,

 

As I mentioned before, I love your book.  However, in Chapter 19, there seems to be a gap when it comes to implementing controller extensions.  You've gone into some detail about how to create a controller extension by extending CExtController, but you did not mention how to actually implement one.  You said it is just like any other extension, but it seems quite different.

 

Here are the details that I know about:

1. Add a 'controllerMap' array into the return array in protected/main.php

2. Add configuration details for the extension:

'controllerMap'=>array(
'controllername'=>array(
'class'=>'ext.controllerextension.controllerextensionclassname',
'publicproperty'=>'value',
),

3. Extension can be accessed at controllername/controlleraction

 

Can you add something like that to the next update?

 

Take care,

-saniko 

Link to comment
Share on other sites

 Share

×
×
  • Create New...