Acess controller attribute in another controller

I have an ‘Images’ controller and i declared an attribute like below




public $image_types=array(

            1=>'GIF',

            2=>'JPEG',

            3=>'PNG'

        );



now i need to access the above attribute in ‘Site’ Controller, how can i access the same

A situation like this should ring your alarm bells: If you need to access this information from different controllers, either your controller layout is not perfect or you should move these information into a model, where it’s related to.