wood glue is a very strong method to fasten your together, with out issues.
but by personal preference i would never use that fastening method alone, since to me it seams to be kind of the prefab way. again personal preference here. nothing agains those who use that method alone.
now one of my personal prefrence and used more often then i like to is to use glue and brad nails, its fast and easy. who doesn't like that. lol
now my favorite method of fastening an enclosure together, although it takes longer and some people would say its a total waist of time and money, is the glue and screws fastening method.
the glue being titebond II again personal preference, i like the fact that it has a fast curing time. the screws, i use the 1 5/8" long coarse screws, reason for that is because if you drive the screw 1/8" deep on a 3/4" mdf panel. you'll have close to a 1" of screw on the other side of the panel for the mechanical hold. now i use a kind of special screw driving bit on my electric drill, that stops the screw at 1/8" below the panel.
now a solid technic is to have 6" of separation between screws and predrilling with a 3/32" drill bit, that way youre sure to not split the wood, using the 3/32" drill bit, i have found that the screw gets more bite on the wood. while not spliting the wood. of coarse make sure you stay at least 1.5" to 3" away from any corners to avoid spliting of the wood if it was to happen.