CodeIgniterからWordprssを呼び出した際に苦労したから、FuelPHPからはどうだろうと思いやってみた。
とりあえずということでまずは投稿された記事が呼び出せるか?(ってか、まだこれしかしてない)
まずは、フォルダの構成。あまり深く考えず、ドキュメントルートにwordpressを置いてみた。

ドキュメントルートの名前はwpplus(適当)

wp_1

 

この状態でwordpressのインストールを実行。

 

次に、 /fuel/app/bootstrap.php の編集を行う。
ポイントは3行目の「 require ‘../wordpress/wp-load.php’; 」の部分。
10行目の「require COREPATH.’classes’.DIRECTORY_SEPARATOR.’autoloader.php’; 」の部分より、
前に呼び出す必要がある。

<?php

require '../wordpress/wp-load.php';

// Load in the Autoloader
require COREPATH.'classes'.DIRECTORY_SEPARATOR.'autoloader.php';
class_alias('Fuel\\Core\\Autoloader', 'Autoloader');

// Bootstrap the framework DO NOT edit this
require COREPATH.'bootstrap.php';
Autoloader::add_classes(array(
// Add classes you want to override here
// Example: 'View' => APPPATH.'classes/view.php',
));

// Register the autoloader
Autoloader::register();

/**
* Your environment. Can be set to any of the following:
*
* Fuel::DEVELOPMENT
* Fuel::TEST
* Fuel::STAGING
* Fuel::PRODUCTION
*/
Fuel::$env = (isset($_SERVER['FUEL_ENV']) ? $_SERVER['FUEL_ENV'] : Fuel::DEVELOPMENT);

// Initialize the framework with the config file.
Fuel::init('config.php');

次に、Controllerの作成。
ポイントは9行目の「 require_once ‘../wordpress/wp-blog-header.php’; 」の部分。
後はWordpressの関数を呼び出すことで記事の一覧を取得出来る。


というわけで、非常に簡単でした。

147 Comments

  1. rule 34 penis growth says:

    rule 34 penis growth

    blog topic

  2. teh cock tease erotic penis growth story says:

    teh cock tease erotic penis growth story

    blog topic

  3. male enhancement bangkok says:

    male enhancement bangkok

    blog topic

  4. sudden weight loss in men says:

    sudden weight loss in men

    blog topic

  5. Iwhat kind of medical marijuana increases sex drive says:

    Iwhat kind of medical marijuana increases sex drive

    blog topic

  6. Speedpaste kaufen says:

    … [Trackback]

    […] Find More on that Topic: dragon-ark.com/archives/743 […]

  7. cialis difficulty ejaculating says:

    cialis difficulty ejaculating

    blog topic

  8. best replica shoes says:

    … [Trackback]

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

  9. 메리트카지노 says:

    메리트카지노

    FuelPHPからWordpressを呼び出してみる | Dragon-Ark

  10. microsoft exchange online plan 2 says:

    … [Trackback]

    […] Find More on that Topic: dragon-ark.com/archives/743 […]

  11. sunucu teknik servis says:

    … [Trackback]

    […] Find More Information here on that Topic: dragon-ark.com/archives/743 […]

  12. try these out says:

    … [Trackback]

    […] Find More on that Topic: dragon-ark.com/archives/743 […]

  13. relx says:

    … [Trackback]

    […] Info to that Topic: dragon-ark.com/archives/743 […]

  14. nova88 says:

    … [Trackback]

    […] There you will find 48706 additional Info to that Topic: dragon-ark.com/archives/743 […]

  15. kardinal stick says:

    … [Trackback]

    […] Here you can find 33715 additional Information to that Topic: dragon-ark.com/archives/743 […]

  16. gay chat randon says:

    shemale/gay online chat sites https://bjsgaychatroom.info/

  17. fcn chat gay says:

    gay chat random alternative https://gaytgpost.com/

  18. feminine gay dating sites says:

    gay dating long term relationship oriented guys into spanish https://speedgaydate.com/

  19. ตรวจหวย says:

    … [Trackback]

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

  20. slot pulsa says:

    slot pulsa

    FuelPHPからWordPressを呼び出してみる | Dragon-Ark

  21. runtz says:

    … [Trackback]

    […] Find More here on that Topic: dragon-ark.com/archives/743 […]

  22. situs game slot terpercaya says:

    situs game slot terpercaya

    FuelPHPからWordPressを呼び出してみる | Dragon-Ark

  23. kertvbs.webgarden.com says:

    cialis from canada https://kertvbs.webgarden.com/

    With thanks, I value it.

  24. canadian pharmacy cialis says:

    pharmacy https://swerbus.webgarden.com/

    Appreciate it, A lot of information!

  25. Slot Maxwin says:

    Slot Maxwin

    blog topic

  26. pharmacy-online.yolasite.com says:

    tadalafil 10 mg https://pharmacy-online.yolasite.com/

    Thanks, Excellent information.

  27. https://kevasw.webgarden.com/ says:

    cialis without a doctor’s prescription https://kevasw.webgarden.com/

    Thank you, I appreciate it!

  28. 62553dced4718.site123.me says:

    cialis from canada https://62553dced4718.site123.me/

    You said it very well.!

  29. https://site128620615.fo.team/ says:

    purchasing cialis on the internet https://site128620615.fo.team/

    Cheers! Quite a lot of tips!

  30. buy cheap cialis in canada says:

    purchasing cialis on the internet https://hemuyrt.livejournal.com/325.html

    You actually mentioned it wonderfully.

  31. https://site373681070.fo.team/ says:

    buy generic cialis https://site373681070.fo.team/

    Amazing plenty of amazing tips.

  32. https://sehytv.wordpress.com/ says:

    cialis lowest price https://sehytv.wordpress.com/

    This is nicely expressed! .

  33. kerbgsw.mystrikingly.com says:

    cialis without a doctor’s prescription https://kerbgsw.mystrikingly.com/

    You actually explained it perfectly.

  34. northwest pharmacies says:

    cialis canadian pharmacy https://kerbiss.wordpress.com/2022/04/27/14/

    Beneficial write ups. Regards.

  35. viagra canada says:

    canadian pharmacies online prescriptions https://canadian-pharmaceuticals-online.yolasite.com/

    Great content. Thank you!

  36. canadian mail order pharmacies says:

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

    Seriously quite a lot of helpful data.

  37. https://kertyun.flazio.com/ says:

    buy cialis https://kertyun.flazio.com/

    Truly lots of helpful material!

  38. https://kerbnt.flazio.com/ says:

    cialis 20mg prix en pharmacie https://kerbnt.flazio.com/

    Good data, Appreciate it!

  39. ime.nucialisonlinei.com says:

    cialis 20mg http://ime.nu/cialisonlinei.com

    Many thanks! Wonderful information!

  40. kerntyast.flazio.com says:

    cialis 20mg prix en pharmacie https://kerntyast.flazio.com/

    You’ve made your point!

  41. site273035107.fo.team says:

    cialis generico https://site273035107.fo.team/

    Nicely put, Cheers.

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

    cialis without a doctor’s prescription https://site656670376.fo.team/

    Really tons of excellent advice!

  43. kawsear.fwscheckout.com says:

    tadalafil 20mg https://kawsear.fwscheckout.com/

    Nicely voiced truly! !

  44. hertnsd.nethouse.ru says:

    cialis without a doctor’s prescription https://hertnsd.nethouse.ru/

    You said it nicely..

  45. legitimate canadian mail order pharmacies says:

    canadian pharmacies online https://uertbx.livejournal.com/402.html

    Regards, A good amount of write ups.

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

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

    Whoa plenty of valuable information.

  47. FuelPHPからWordPressを呼び出してみる | Dragon-Ark says:

    Proxies For Facebook

    CodeIgniterからWordprssを呼び出した際に苦労したから、FuelPHPからはどうだろうと思いや

  48. FuelPHPからWordPressを呼び出してみる | Dragon-Ark says:

    Private Proxies

    CodeIgniterからWordprssを呼び出した際に苦労したから、FuelPHPからはどうだろうと思いや

  49. http://lsdevs.iwopop.com/ says:

    cialis generic http://lsdevs.iwopop.com/

    Great postings. With thanks.

  50. kwsedc.iwopop.com says:

    cialis 5 mg http://kwsedc.iwopop.com/

    Nicely put. Thank you!

  51. kawerc.proweb.cz says:

    cialis generico online https://kawerc.proweb.cz/

    Many thanks! I like it!

  52. pedrew.zombeek.cz says:

    tadalafil 20mg https://pedrew.zombeek.cz/

    Superb information, Many thanks!

  53. discount canadian pharmacies says:

    canadian medications https://canadian-pharmacies.webflow.io/

    You actually expressed that perfectly!

  54. https://laswert.wordpress.com/ says:

    tadalafil generic https://laswert.wordpress.com/

    Nicely put, Many thanks!

  55. lasweb.iwopop.com says:

    online prescriptions without a doctor http://lasweb.iwopop.com/

    Cheers! Plenty of advice!

  56. buy viagra usa says:

    Viagra sans ordonnance https://viagraonlinee.livejournal.com/492.html

    Wonderful data. Thanks a lot!

  57. onlineviagra.flazio.com says:

    cialis generico online https://onlineviagra.flazio.com/

    Useful write ups. Kudos.

  58. https://onlineviagra.fo.team/ says:

    online cialis https://onlineviagra.fo.team/

    You have made your stand extremely nicely!.

  59. 500px.comporderstromectoloverthecounter says:

    Viagra 20 mg best price https://500px.com/p/orderstromectoloverthecounter

    Really a good deal of amazing information.

  60. online pharmacies canada says:

    canadian medications https://slides.com/canadianpharmaceuticalsonline

    Seriously quite a lot of useful information.

  61. challonge.comgotsembpertvil says:

    Viagra pills https://challonge.com/gotsembpertvil

    You made your stand pretty well..

  62. stromectol cvs says:

    stromectol effectiveness https://lehyriwor.estranky.sk/clanky/stromectol-cream.html

    Beneficial content. Regards.

  63. https://dsdgbvda.zombeek.cz/ says:

    Viagra dosage https://dsdgbvda.zombeek.cz/

    Many thanks. Valuable stuff.

  64. canadian pharmacy meds says:

    online pharmacies https://supplier.ihrsa.org/profile/421717/0

    Thanks a lot! Excellent stuff!

Leave a Reply

You must be logged in to post a comment.