Posts by Rodrigo Siqueira • 36 points
2 posts
-
2
votes1
answer131
viewsA: How to use Try catch to handle id variable error in Findorfail
Caleb, If your function returns false vc you need to force an error with throw, follow: public function finalizarCompra () { try { $compra = Compra::findOrFail($compra->id); if (!$compra) { throw…
-
0
votes2
answers60
viewsA: "Mage_chronorelais_helper_data'" class not found in Magento
Felipe, If you’re using linux: grep -ril 'chronorelais' app/code/ if not give a find on the whole project by IDE that is using, for sure this instance is being generated in some file/class. With…
magentoanswered Rodrigo Siqueira 36