I am trying to print hello world.
For that i created class and return function in models folder, and the returning value is "hello world".
In controller, i am getting the values from module like this:
$value = new getValue();
$this->view->index = $value->hello_world();
I don't know how to get the values from controllers and print into views php folder.
In fac, you put "Hello world" string into the variable "index" of the controller's view when your are doing this $this->view->index = $value->hello_world();
.
So, if your $value->hello_world();
function correctly return an "Hello world" string, for print it into the controller's view, you just have to do add this php code echo $this->index;
into your view file.