Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Echo text not working.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #149138

    Hello I am trying to echo text from file.

    Hello I am creating a php website. But when I add my echo powered in to footer it doesnt read. I think it is something to do with the if file exist i am just uploading it straight to my ftp server

    <?php  
    class ControllerCommonFooter extends Controller {
        protected function index() {
            $this->language->load('common/footer');
    
    
            $this->data['text_contact'] = $this->language->get('text_contact');
    
    
    
            $this->data['contact'] = $this->url->link('information/contact');
    
    
            $this->data['powered'] = sprintf($this->language->get('text_powered');
    
    
    
            if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/catalog/view/theme/realestate/template/common/footer.php')) {
                $this->template = $this->config->get('config_template') . '/catalog/view/theme/realestate/template/common/footer.php';
            } else {
                $this->template = 'catalog/view/theme/realestate/template/common/footer.php';
            }
    
            $this->render();
        }
    }
    ?>
    
    $_['text_powered']      = 'Powered By <a href="http://www.mwbcomputers.com">MWB Computers</a><br /> &copy;';
    
    <p><?php echo $powered; ?></p>
    
    #149148

    I am also trying to create a php website with out Mysql don’t know where to start. want to have controller files etc though

    #149199
    JamesBarnsley
    Participant

    Of course it does not read …

    $_['text_powered'] is not the same as $powered

    You need to change it to this …

    $powered = ‘Powered By blah blah blah etc

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.