Is there an easy way to echo variables to the page (or some other location) from controllers in Kohana? Using Django in development mode, you can easily add print statements that display to the console. In Kohana, I’ve had to pass off variables to views, which quickly causes problems.
Edit to specify: Kohana 3.1
It depends on your version of Kohana. For v3.1 you will want to use:
Debug::vars($myVar)You can stick that into a variable or just echo it from your PHP file.
For older versions of Kohana, you will want to use:
Kohana::debug($myVar)