Welcome Guest, Not a member yet? Register   Sign In
Split large page in more view
#4

(This post was last modified: 07-18-2019, 11:05 AM by Wouter60.)

In that case, what you suggested is possible indeed:
PHP Code:
$this->load->view('page/page1'$data);
$this->load->view('page/page2'$data);
etc

How this would help you to find errors more easily, isn't clear to me. Does it matter if you get an error message that says: error on line 1500 of 'page1', instead of line 3000 of 'page' ?? In both cases, it's obvious where to look, isn't it? Provided that you are using a code editor with line numbers, of course.
If you need 4000 lines of code for a view file, I'm affraid you're doing something basically wrong. How did you end up with such a large php file?
Reply


Messages In This Thread
Split large page in more view - by pippuccio76 - 07-18-2019, 04:14 AM
RE: Split large page in more view - by Wouter60 - 07-18-2019, 07:20 AM
RE: Split large page in more view - by Wouter60 - 07-18-2019, 10:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB