I'm guessing that this question is related to your previous thread, in which I suggested you may want to write a block plugin. If this advice was not helpful, please respond in that thread and let me know why rather than starting a new thread, as this keeps the conversation together and makes it more useful to other readers who may be trying to solve the same problem.
General developer forum
Add PHP code in moodle site
This discussion has been locked so you can no longer reply to it.