By helenj on
I am just starting to learn how to write modules and thought devel seemed like a useful tool to have. I now have this working and can successfully view the database requests.
Devel recommends the use of Krumo for debuggging php. However, I can't get it working. I tried uploading Krumo to the modules directory ('sites/all/modules') and using "krumo($items);" in my .module page , but get the error:
Call to undefined function krumo() .
I'm guessing I've installed Krumo to the wrong directory, or that I need to define its location. Any ideas?
Helen
Comments
install Krumo inside Devel's folder
Krumo isn't a Drupal module. It needs to be installed inside Devel's folder in sites/all/modules/devel
Large Robot
http://www.largerobot.com
Thanks, all working now.
Thanks, all working now.
I'm using 5.10, have krumo
I'm using 5.10, have krumo under devel, and devel doesn't use it. However I can call krumo() directly. Anyone know why? Is there a switch somewhere in devel I haven't seen?
THIS INFORMATION IS OBSOLETE!
Please note that Devel for D6+ has a version of Krumo built in.
Ignore this entire thread!
if we ignore the entire
if we ignore the entire thread...we wouldn't know that it's built into devel from d6+ onwards!
just saying...
and yeah..it's a slow day.
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
What about D7?
Please provide a good basic example of the use of Krumo/dsm() to display the value of an array on the screen.
Thanks!
(i.e., :
Thanks!)