Flow of Energy Through Ecosystems

How does energy flow through an ecosystem?