app_controller.php 内
var $components = array('Session', 'Component1', 'Component2');
$this->params['prefix'] == admin
の場合のみ、 すべてのコンポーネントのロードを回避したい
var $components = array('Session');
そこで十分です..
どうやってするの ?
特定のコントローラーメソッドのコンポーネントをロードしないことは可能ですか?
class PagesController extends AppController
{
function search()
{
// avoid loading of components ('Component1' and 'Component2') here which is loaded in app_controller '$components' array
}