error while including another view file |
[eluser]Unknown[/eluser]
Quote:Hey guys. I have gotten this error for many days please help.
[eluser]jotorres1[/eluser]
I would recommend for you to use the CI Load, and not use php include. Use: Code: <?php $this->load->view('date'); ?>
[eluser]it.peds[/eluser]
Or it needs the full path, even they are in the same folder.
[eluser]srpurdy[/eluser]
Like Jotorres1 said. you should use CI view() to load other view files. And ditch the 1998 table code. <font> isn't used anymore. Use CSS instead. Makes your code much cleaner, also rendering wise tables are slow. They should not be used for layouts. Specially considering you can make things look much nicer with css, and have more control over the layout. Take a peak at Twitter Bootstrap. http://twitter.github.com/bootstrap/ It's a really nice base set of CSS. for form fields buttons. pretty much almost anything you would need for a UI.
[eluser]phann123[/eluser]
[quote author="srpurdy" date="1345305175"]Like Jotorres1 said. you should use CI view() to load other view files. And ditch the 1998 table code. <font> isn't used anymore. Use CSS instead. Makes your code much cleaner, also rendering wise tables are slow. They should not be used for layouts. Specially considering you can make things look much nicer with css, and have more control over the layout. Take a peak at Twitter Bootstrap. http://twitter.github.com/bootstrap/ It's a really nice base set of CSS. for form fields buttons. pretty much almost anything you would need for a UI. [/quote] thank |
Welcome Guest, Not a member yet? Register Sign In |