I want to know the answer to the following question:
What practice was desired through connecting religion and schools?
All the background I'm provided with is that "Overall, the fact that mosques contained medreses comes to show the relevance of education to religion in the sense that education took place within the framework of religion and religion established social life by trying to create a common religious orthodoxy.". Is that enough to answer the question?