November 2009
Beginner to intermediate
300 pages
5h 43m
English
Wait a moment, you generated the CSS stylesheet address dynamically in your header_view:
<link rel="stylesheet" type="text/css" href="<?php echo "$base/$css";?>">
This means that the controller had to produce this data, which is only relevant to how the information is displayed. But we've just said the controller shouldn't know or care about that. Isn't that going right in the face of the "loose coupling" principle, we just set? What's more, generating this information dynamically requires several operations:
config file.$data array and pass it to the view.$base and $css and look up ...Read now
Unlock full access