Welcome Guest, Not a member yet? Register   Sign In
The welcome.php missing ?>
#1

[eluser]hasokeric[/eluser]
The welcome.php Controller has a missing ?>
i am not sure if its needed or not -- but reading the Documentation about Controllers i see it being used -- however this confused me alot... so whats the deal is this a bug or not needed


welcome.php (latest version)

Code:
<?php

class Welcome extends Controller {

    function Welcome()
    {
        parent::Controller();    
    }
    
    function index()
    {
        $this->load->view('welcome_message');
    }
}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */
#2

[eluser]pistolPete[/eluser]
User guide:
Quote:PHP Closing Tag
The PHP closing tag on a PHP document ?> is optional to the PHP parser. (...) all PHP files should OMIT the closing PHP tag

But the documentation is inconsistent, the closing tag should be removed from e.g. Controllers.




Theme © iAndrew 2016 - Forum software by © MyBB