php codeigniter中的界面损坏

I've got a problem on my interface. I'm using codeigniter pagination with this one. All data are fetched correctly and returned in a paginated way. Pagination is good also. The main problem is if i go the next page of the pagination, the UI is broken but data are still there. I don't know how to fix this, I'm still new to codeigniter. please help

link using home correctly displays the UI and the paginated contents but When link goes home/index/15 or clicking for the next page results, UI is broken. I've also checked the page source and still its okay. I'm using <?php echo base_url();?>assets/ to link through my css and js and other assets.

Take a look again on your code if you've really added:

<?php echo base_url();?>assets/

Assuming your data is correctly displayed. There might be some links on that page which you haven't changed. That's why your user interface gets broken.

Try to put assets parameters inside

When you load the home page your URL looks like

localhost/tsa/home/index/15

But when you click the page I assume it goes to

localhost/tsa/index.php/home/index/15

Note the index.php before controller name

home

you can update some code into CI controller pagination

the full code is Here