I would like to request that functions in GS either don't echo things or receive a parameter that prevents echoing text to the browser.
Echoing the content, either if it's a menu, a page excerpt or any other thing prevents me from using the existing functions to extend GS. I end up rewriting existing functions and duplicating code.
One thing that's always bother me, but it may be due to my Java background, is that a function that starts with "get" is expected to return a value, not show it to the user. I want to get a page excerpt, I look for a function that does that and behold, the darn thing echos the text instead or returning it to me, as I would expect
Does my requests make sense or I'm I the only one that feels awkward using "gets" that don't return and being unable to use the functions in the CMS and having to constantly duplicate the existing code?
EDIT:
And this forum system keeps cutting messages in half....
Echoing the content, either if it's a menu, a page excerpt or any other thing prevents me from using the existing functions to extend GS. I end up rewriting existing functions and duplicating code.
One thing that's always bother me, but it may be due to my Java background, is that a function that starts with "get" is expected to return a value, not show it to the user. I want to get a page excerpt, I look for a function that does that and behold, the darn thing echos the text instead or returning it to me, as I would expect
Does my requests make sense or I'm I the only one that feels awkward using "gets" that don't return and being unable to use the functions in the CMS and having to constantly duplicate the existing code?
EDIT:
And this forum system keeps cutting messages in half....
Rejoice! For very bad things are about to happen.