ApplicationDelegate.php method

Hello !
I have a dashboard which works perfectly.
I want to try something in the dashboard and it doesnt work.
In fact, in the dashboard i have :
Then i have define a method in the ApplicationDelegate.php
This works perfectly.
Now I modify the code in the ApplicationDelegate.php like :
But it doesnt work.. Anybody can say me something about this ?
Thank you !
I have a dashboard which works perfectly.
I want to try something in the dashboard and it doesnt work.
In fact, in the dashboard i have :
- Code: Select all
{block name="for_group"}
Then i have define a method in the ApplicationDelegate.php
- Code: Select all
function block__for_group(){
echo 'Groups';
}
This works perfectly.
Now I modify the code in the ApplicationDelegate.php like :
- Code: Select all
function block__for_group(){
echo 'Groups';
echo getGroup();
}
function getGroup(){
return 'Hello, how are you ? ';
}
But it doesnt work.. Anybody can say me something about this ?
Thank you !