Hey PHP guys... OOP question
//Controller
$this->data['text_learn'] = $this->language->get('text_learn');
//Language
$_['text_learn'] = 'Learn About Our Website';
//View
<?php echo $text_learn; ?>
Simply with:
//View
<?php echo 'Learn About Our Website'; ?>
I'm trying hard to understand why it would be beneficial to have all that excess code when I could simply echo out the text; especially in cases where it is only used once.