FuelPHPでindex.phpを含むURI(mod rewriteで省略しない)場合、

paginationのリンク生成が正常に動作しないことを確認しました。

 

■例

http://localhost/app/public/index.php/aaa/bbb/list

■コントローラ: bbb

■メソッド:list

■paginationのconfig

$pagination = Pagination::forge(‘default’, array(
‘pagination_url’ => ‘/app/public/index.php/aaa/bbb/list’,
‘uri_segment’ => 4,
‘total_items’ => $count,
‘per_page’ => $this->per_page,
‘));

この場合、paginationで生成されるURLは、以下のようになりました。

http://localhost/app/public/index.php/aaa/bbb/2
※本来であれば、http://localhost/app/public/index.php/aaa/bbb/list/2となるはず

上記の例をmod rewriteでindex.phpを省略させた場合、正常に動作し、以下のURLが生成されました。

http://localhost/app/public/aaa/bbb/list/2

 

paginationのコードを追ったところ、以下の部分を変更することで正常に処理されるようになりました。

■FuelPHP 1.6の場合

543行目
○修正前

$segs[$this->config['uri_segment'] - 1 + $seg_offset] = '{page}'; 

○修正後

$segs[$this->config['uri_segment'] + $seg_offset] = '{page}'; 

 

この事象は恐らくバグだと思われます。
これはあくまで暫定の対処方法です。

 

149 Comments

  1. buy viagra pills says:

    Viagra tablets australia https://viagraonlineee.wordpress.com/

    Nicely put, Kudos.

  2. buy viagra uk says:

    Viagra cost https://viagraonline.home.blog/

    This is nicely expressed. .

  3. https://500px.com/p/orderstromectoloverthecounter says:

    Viagra manufacturer coupon https://500px.com/p/orderstromectoloverthecounter

    You have made your point extremely nicely..

  4. 먹튀신고하는법 says:

    먹튀신고하는법

    blog topic

  5. 토토메이저놀이터 says:

    토토메이저놀이터

    blog topic

  6. 먹튀 검증 says:

    먹튀 검증

    blog topic

  7. https://experiment.com/users/canadianpharmacy says:

    5 mg viagra coupon printable https://experiment.com/users/canadianpharmacy

    You actually said that exceptionally well.

  8. buy generic viagra pills says:

    Tadalafil 20 mg https://challonge.com/gotsembpertvil

    Very good facts. Many thanks!

  9. dsdgbvda.zombeek.cz says:

    Generic for viagra https://dsdgbvda.zombeek.cz/

    You revealed it fantastically.

  10. buying stromectol online says:

    stromectol price https://inflavnena.zombeek.cz/

    Thanks, An abundance of forum posts!

  11. www.ecosia.orgsearch?q="My Canadian Pharmacy - Extensive Assortment of Medications – 2022" says:

    Viagra sans ordonnance https://www.ecosia.org/search?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    Good info, Kudos.

  12. pharmacy canada says:

    northwest pharmacy canada https://seedandspark.com/user/canadian-pharmaceuticals-online

    Truly many of amazing knowledge.

  13. canadian pharmacies says:

    canadian pharmacies https://search.gmx.com/web/result?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    You actually revealed it wonderfully!

  14. search.seznam.cz?q="My Canadian Pharmacy - Extensive Assortment of Medications – 2022" says:

    Viagra 5 mg https://search.seznam.cz/?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    Many thanks. Quite a lot of posts.

  15. https://swisscows.com/en/web?query="My Canadian Pharmacy - Extensive Assortment of Medications – 2022" says:

    Viagra online https://swisscows.com/en/web?query=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    Valuable content. With thanks.

  16. www.dogpile.comserp?q="My Canadian Pharmacy - Extensive Assortment of Medications – 2022" says:

    Viagra from canada https://www.dogpile.com/serp?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    Appreciate it. Plenty of write ups!

  17. https://search.naver.com/search.naver?where=nexearch says:

    Viagra reviews

    This is nicely put. !

  18. canadian pharmacy no prescription says:

    canadian pharmacy online 24 https://search.givewater.com/serp?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    You mentioned this well!

  19. canadianpharmacy says:

    cialis canadian pharmacy https://www.bakespace.com/members/profile/Сanadian pharmaceuticals for usa sales/1541108/

    You stated it exceptionally well!

  20. results.excite.comserp?q="My Canadian Pharmacy - Extensive Assortment of Medications – 2022" says:

    Discount viagra https://results.excite.com/serp?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    Kudos. A good amount of material.

  21. https://www.infospace.com/serp?q="My Canadian Pharmacy - Extensive Assortment of Medications – 2022" says:

    Viagra canada https://www.infospace.com/serp?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    Whoa a lot of valuable info.

Leave a Reply