Inizialize the class in your app_controller and export it to views using the set() method.
On Nov 21, 2007 12:18 PM, FoxMaSk <[EMAIL PROTECTED]> wrote: > > Hi, > in the boostrap.php i call a vendor script that does a lot of stuff > > one of them is to get the punbb (a BB sofware) config > > class foxtal > { > public $pun_config; > { > public function __construct() > # Load cached config > if (file_exists(PUN_ROOT.'/cache/cache_config.php')) > require PUN_ROOT.'/cache/cache_config.php'; > > if (!defined('PUN_CONFIG_LOADED') && $this- > >_generate_config_cache()) > require PUN_ROOT.'/cache/cache_config.php'; > > $this->pun_config =& $pun_config; > } > [...] > } > > so i do $foxtal = & new foxtal(); > > now in the layout and everywhere in my application i'd like to be able > to do use $foxtal > for example : echo $foxtal['o_cur_version'] in the defailt.ctp file > > Is it possible ? > > What do i need to do ? > > Kind Regards. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---