• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.