Welcome Guest, Not a member yet? Register   Sign In
Better code for View performance?
#1

[eluser]Unknown[/eluser]
Hi all, i'm new in codeigniter and this framework is perfect for me! Smile
I have one question about View code. This solution:
Code:
<?=doctype('html5').'
<html>
    <head>
        '.meta('Content-type', 'text/html; charset=utf-8', 'equiv').'
    </head>
    <body>
        '.form_open_multipart('Home/upload', $form).'
            '.form_upload($fields['file']).br().'
            '.form_submit($fields['submit'], 'Upload').'
        '.form_close().'
    </body>
</html>'?>
or this:
Code:
<?=doctype('html5')?>
<html>
    <head>
        <?=meta('Content-type', 'text/html; charset=utf-8', 'equiv')?>
    </head>
    <body>
        <?=form_open_multipart('Home/upload', $form).'
            '.form_upload($fields['file']).br().'
            '.form_submit($fields['submit'], 'Upload').'
        '.form_close()?>
    </body>
</html>
is better for performance?
I'm sorry for my bad English!
#2

[eluser]Đaяк Đaηтє[/eluser]
Second way is a best practique, separate html code from php code....
#3

[eluser]Unknown[/eluser]
[quote author="SAC Version 27.11" date="1247802971"]Second way is a best practique, separate html code from php code....[/quote]
Thank you!




Theme © iAndrew 2016 - Forum software by © MyBB