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}'; 

 

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

 

92 Comments

  1. site128620615.fo.team says:

    cialis pills https://site128620615.fo.team/

    You expressed this adequately.

  2. beer777 says:

    … [Trackback]

    […] Read More on to that Topic: dragon-ark.com/archives/680 […]

  3. site373681070.fo.team says:

    cialis 20mg prix en pharmacie https://site373681070.fo.team/

    You said that fantastically.

  4. sehytv.wordpress.com says:

    cialis prices https://sehytv.wordpress.com/

    Good material. Many thanks.

  5. canadian pharmaceuticals says:

    canadian pharmacies online prescriptions https://kerbgsw.mystrikingly.com/

    Excellent write ups. Regards.

  6. sbo says:

    … [Trackback]

    […] Read More on that Topic: dragon-ark.com/archives/680 […]

  7. kertubs.mystrikingly.com says:

    tadalafil 20mg https://kertubs.mystrikingly.com/

    With thanks. Ample posts.

  8. online-pharmacies0.yolasite.com says:

    cialis canada https://online-pharmacies0.yolasite.com/

    Reliable information. Appreciate it!

  9. deiun.flazio.com says:

    canadian cialis https://deiun.flazio.com/

    Nicely put, Thanks.

  10. Canadian Pharmacy USA says:

    drugstore online https://kertyun.flazio.com/

    Fantastic material, Thanks a lot!

  11. global pharmacy canada says:

    canadian online pharmacies https://kerntyas.gonevis.com/the-mafia-guide-to-online-pharmacies/

    Lovely forum posts. With thanks!

  12. kerbnt.flazio.com says:

    Generic cialis tadalafil https://kerbnt.flazio.com/

    Kudos! Quite a lot of posts!

  13. canadadrugs says:

    canadian pharmacies mail order http://nanos.jp/jmp?url=http://cialisonlinei.com/

    Thanks a lot, Ample tips!

  14. canadian pharmacy world says:

    canadian pharmacies that ship to us http://ime.nu/cialisonlinei.com

    Incredible tons of superb facts.

  15. kerntyast.flazio.com says:

    purchasing cialis on the internet https://kerntyast.flazio.com/

    With thanks. I enjoy this!

  16. highest rated canadian pharmacies says:

    pharmacy canada https://gewrt.usluga.me/

    Useful forum posts. Appreciate it.

  17. สล็อตวอเลท ไม่มีขั้นต่ำ says:

    … [Trackback]

    […] Find More Info here to that Topic: dragon-ark.com/archives/680 […]

  18. canada drug pharmacy says:

    buy viagra now https://site273035107.fo.team/

    Kudos. A lot of material.

  19. https://site656670376.fo.team/ says:

    cialis purchase online without prescription https://site656670376.fo.team/

    You revealed that well!

  20. online pharmacies canada says:

    canada drug https://kawsear.fwscheckout.com/

    You expressed it adequately!

  21. hertnsd.nethouse.ru says:

    canadian cialis https://hertnsd.nethouse.ru/

    Truly a good deal of amazing info.

  22. canadian pharmacy world says:

    canadian pharmacies shipping to usa https://pharmacies.bigcartel.com/

    This is nicely expressed! .

  23. https://kwersd.mystrikingly.com/ says:

    cialis tablets https://kwersd.mystrikingly.com/

    You actually suggested it exceptionally well.

  24. site592154748.fo.team says:

    cialis 5 mg http://site592154748.fo.team/

    You revealed that adequately!

  25. https://asebg.bigcartel.com/canadian-pharmacy says:

    online prescriptions without a doctor https://asebg.bigcartel.com/canadian-pharmacy

    You made your stand extremely nicely!!

  26. https://kertvbs.webgarden.com/ says:

    cialis 20 mg https://kertvbs.webgarden.com/

    You expressed it really well.

Leave a Reply