when i pass variables from a controller they are only passed to a template, not a layout surrounding that template.
how do i pass variables to a template?
thanks
i want to have a class that includes all files for me.
eg.
Loader::loadZend // loads all zend libraries
Loader::loadSymfony // loads all symfony components
if i include a file in a method, does this become globally available?
it seems that it doesnt work.
maybe i have done something wrong, or is there a workaround for this?
thanks
In PHP I could echo data to the web browser to debug.
eg. echo print_r($array)
How do I do that in RoR? I tried with puts with no luck.
Is there a way?
i've got a variable $user that is of data type User (a class).
i've got it in a class method so i can't just type:
/**
* @var User
*/
$user = Factory::getInstance('User');
because that will work only with class properties, not method variables like in this case.
how could i tell netbeans that that variable is of data type User in a method?
Thanks!