Cakephp3でSitemap.xmlの導入
Jun 2, 2016 
								AD:
		
		
	
	Google News用のSitemap.xmlを作成した際のメモです。
fm-labs/cakephp3-sitemapを使用します。
componserでPluginを追加しようとするとcomposerでpackageがないとエラーがでました。
| 1 | composer require fm-labs/cakephp3-sitemap | 
なので、直接pluginの中に入れて対応しました。
| 1 2 | cd app/plugins/ git clone https://github.com/fm-labs/cakephp3-sitemap Sitemap | 
compsoser.jsonの編集
| 1 2 3 4 5 6 7 | vi app/compsoser.json     "autoload": {         "psr-4": {             "App\\": "src",             "Sitemap\\": "./plugins/Sitemap/src"         }     }, | 
dumpautoloadを走らせる
| 1 2 | php composer.phar dumpautoload Generating autoload files | 
これで、後はreadmeにある通りにcontrollerを作ればうまくXMLが表示されるようになりました。

		AD:
			
			
		
		
	

 Ayumi Mizoshiri
Ayumi Mizoshiri







No Comments, Comment or Ping
Reply to “Cakephp3でSitemap.xmlの導入”
Warning: Undefined variable $user_ID in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/themes/grid_focus_public_mizo/comments.php on line 66
You must be logged in to post a comment.