Op Monday 08 June 2009 16:03:45 schreef Ehask71: > Thx! But now I get errors "No Registry Entry for logger" I guess its back > to the Docs to figure out how setting Registry stuff was changed. Man this > can kill dev time especially when you quote x Hours on a project then ZF > jacks everything up from the way you thought it or used to work. > > There are no good examples out to show what a new Bootstrap should look > like compared to an old one with Modules,Logger, etc. The Reference and > Wiki always leave me scratching my head LOL > > Im glad I did this on a small project of my own. I will continue to use my > old Bootstrap.php on paying jobs till I figure this out. Spent all weekend > trying to get my head around the new bootstrap and still have a lost > feeling > > Thx for the help Jurian > > Eric > > Jurian Sluiman wrote: > > You could create a Db resource which will initiate your database and set > > the > > adapter to the default one. You also create a log resource, which first > > bootstraps the db resource. Then you're sure the db is setup correctly. > > The > > $db var is the same as Zend_Db_Table::getDefaultAdapter() :) > > > > Regards, Jurian
Just pay some attention to the Zend_Registry page of the manual: http://framework.zend.com/manual/en/zend.registry.html. The class has some static methods which might become very useful ;) -- Jurian Sluiman Soflomo.com
