{"id":32347,"date":"2017-09-07T18:08:32","date_gmt":"2017-09-07T09:08:32","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=32347"},"modified":"2024-05-06T11:44:55","modified_gmt":"2024-05-06T02:44:55","slug":"%e3%80%90cakephp%e5%85%a5%e9%96%80%e3%80%91controller%e3%81%ae%e4%b8%bb%e3%81%aa%e5%87%a6%e7%90%86%e3%82%92%e3%81%be%e3%81%a8%e3%82%81%e3%81%be%e3%81%97%e3%81%9f%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/32347","title":{"rendered":"\u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u30e9\u30a4\u30bf\u30fc\u306e\u4e80\u7530\u3067\u3059\u3002<\/p>\n<p>PHP\u306b\u306fCakePHP\u4ee5\u5916\u306b\u3082\u69d8\u3005\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u3067\u306f\u3001FuelPHP\u3001Laravel\u306a\u3069\u3068\u3044\u3063\u305f\u65b0\u8208\u52e2\u529b\u304c\u53f0\u982d\u3057\u3066\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057<span style=\"color: #ff0000;background-color: #ffff99\"><strong>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u9055\u3063\u3066\u3082\u57fa\u672c\u7684\u306a\u8003\u3048\u65b9\u306b\u306f\u3055\u307b\u3069\u9055\u3044\u306f\u3042\u308a\u307e\u305b\u3093<\/strong><\/span>\u3002<\/p>\n<p>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f<span style=\"color: #339966\"><strong>M(Model)<\/strong><\/span>\u3001<span style=\"color: #339966\"><strong>V(View)<\/strong><\/span>\u3001<span style=\"color: #339966\"><strong>C(Controller)<\/strong><\/span>\u3068\u3044\u30463\u3064\u306e\u67f1\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3046\u3061\u7279\u306b<span style=\"color: #0000ff\"><strong>Controller\u306f\u3001\u753b\u9762\u51fa\u529b\u3092\u3064\u304b\u3055\u3069\u308bView\u3068\u3001\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u62c5\u3063\u3066\u3044\u308bModel\u306e\u9593\u3092\u53d6\u308a\u6301\u3064\u5927\u4e8b\u306a\u5f79\u5272<\/strong><\/span>\u3092\u62c5\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u7279\u306b\u3001CakePHP\u306eController\u306b\u6ce8\u76ee\u3057\u3066\u305d\u306e\u5f79\u5272\u3092\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001<\/p>\n<p><span style=\"color: #ff0000\"><strong>\u30fb \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\uff08Controller\uff09\u3068\u306f\uff1f<\/strong><\/span><\/p>\n<p>\u3067\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u7d9a\u3044\u3066<\/p>\n<p><span style=\"color: #ff0000\"><strong>\u30fb\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9(Pagenation)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9(session)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u30c7\u30d0\u30c3\u30b0\u306e\u4f7f\u3044\u65b9(Debug)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u30ed\u30b0\u306e\u4f7f\u3044\u65b9(Log)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u4f7f\u3044\u65b9(Redirect)<\/strong><\/span><\/p>\n<p>\u3067\u3001\u5177\u4f53\u7684\u306a\u4ed5\u7d44\u307f\u306b\u3064\u3044\u3066\u8a00\u53ca\u3057\u307e\u3059\u3002<\/p>\n<p>\u66f4\u306b\u3001\u5fdc\u7528\u7de8\u3068\u3057\u3066<\/p>\n<p><span style=\"color: #ff0000\"><strong>\u30fb\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u65b9\u6cd5(Auth)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u4f7f\u3044\u65b9(component)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fbset\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u5171\u901a\u51e6\u7406(beforefilter)<\/strong><\/span><\/p>\n<p>\u3067\u5fdc\u7528\u7684\u306a\u30c8\u30d4\u30c3\u30af\u306b\u3064\u3044\u3066\u53d6\u308a\u4e0a\u3052\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\uff08Controller\uff09\u3068\u306f\uff1f<\/h2>\n<p>\u5192\u982d\u306b\u3082\u8aac\u660e\u3057\u305f\u901a\u308a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u3001<span style=\"color: #339966\"><strong>Model<\/strong><\/span>\u3001<span style=\"color: #339966\"><strong>View<\/strong><\/span>\u3001<span style=\"color: #339966\"><strong>Controller<\/strong><\/span>\u3068\u3044\u30463\u3064\u306e\u8981\u7d20\u304b\u3089\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>View\u306f\u753b\u9762\u3078\u306eHTML\u51fa\u529b\u3001Model\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5f79\u5272\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #0000ff\"><strong>Controller\u306f\u3001View\u304b\u3089\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u3082\u3068\u306bModel\u306b\u30a2\u30af\u30bb\u30b9<\/strong><\/span>\u3057\u305f\u308a\u3059\u308b\u306a\u3069\u4e21\u8005\u3092\u53d6\u308a\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30e6\u30fc\u30b6\u30fc\u304cURL\u3092\u5165\u529b\u3057\u305f\u969b\u306b\u3001\u305d\u306e<span style=\"color: #0000ff\"><strong>\u5185\u5bb9\u306b\u3088\u3063\u3066\u9069\u5207\u306a\u51e6\u7406\u3092View\u3068Model\u306b\u5272\u308a\u632f\u308b<\/strong><\/span>\u306e\u3082\u3001Controller\u306e\u4ed5\u4e8b\u3067\u3059\u3002<\/p>\n<h3>\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h3>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306f\u3069\u306e\u3088\u3046\u306a\u50cd\u304d\u3092\u3059\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002\u5b9f\u969b\u306b\u7c21\u5358\u306a\u5b9f\u4f8b\u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<h4>helloworld<\/h4>\n<p>\u307e\u305a\u306f\u3001helloworld\u304c\u51fa\u308b\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u3092\u898b\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>composer\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u4ee5\u4e0b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5165\u529b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>src\/controller\/HelloController.php<\/p>\n<pre class=\"decode:true \">&lt;?php \r\n    namespace App\\Controller;\r\n    \r\n    use App\\Controller\\AppController;\r\n    \r\n    class HelloController extends AppController\r\n    {\r\n        public function index()\r\n        {\r\n            \/\/\u5909\u6570teststr\u3092\u30bb\u30c3\u30c8\r\n            $this-&gt;set('comment', 'HelloWorld');\r\n        }\r\n    }<\/pre>\n<p>View\u5074\u306e\u8a2d\u5b9a\u306f\u3001<span style=\"color: #339966\"><strong>ctp\u30d5\u30a1\u30a4\u30eb<\/strong><\/span>\u3067\u884c\u3044\u307e\u3059\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u540d\u524d\u304c\u300cHelloController\u300d\u306a\u306e\u3067\u3001src\/Template\u30d5\u30a9\u30eb\u30c0\u306e\u4e0b\u306b\u3001<span style=\"color: #0000ff\"><strong>\u66f4\u306b\u300chello\u300d\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u308a<\/strong><\/span>\u3001\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>src\/Template\/hello\/index.ctp<\/p>\n<pre class=\"decode:true \">&lt;?php\r\n\/\/index.ctp\r\n?&gt;\r\n&lt;div&gt;\r\n    &lt;h1&gt;Helo Wrold!&lt;\/h1&gt;\r\n    &lt;p class=\"text-red\"&gt;&lt;?= $comment ?&gt;&lt;\/p&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>XAMPP\u306a\u3069\u3092\u4f7f\u3044\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\u3067\u3053\u308c\u3092\u8868\u793a\u3059\u308b\u5834\u5408\u306b\u306f\u3001<\/p>\n<p><strong>http:\/\/localhost\/[\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d]\/hello<\/strong><\/p>\n<p>\u3068\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32358\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/pic1-min.png\" alt=\"pic1-min\" width=\"512\" height=\"256\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/pic1-min.png 512w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/pic1-min-150x75.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/pic1-min-300x150.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/p>\n<p>Controller\uff08\u3053\u306e\u5834\u5408\u306f\u3001HelloController)\u3067\u3001\u6307\u5b9a\u3057\u3066\u3044\u308bctp\u30d5\u30a1\u30a4\u30eb\uff08\u3053\u306e\u5834\u5408\u306f\u3001index.ctp)\u3092\u547c\u3073\u51fa\u3057\u3001\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #339966\"><strong>ctp<\/strong><\/span>\u30d5\u30a1\u30a4\u30eb\u306f\u3001CakePHP\u3067\u7528\u3044\u3089\u308c\u308b<span style=\"color: #0000ff\"><strong>php\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb<\/strong><\/span>\u3067\u3001Controller\u304b\u3089\u64cd\u4f5c\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u306b\u306f\u3001$comment\u3068\u3044\u3046\u5909\u6570\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u5024\u3092\u6c7a\u3081\u3066\u3044\u308b\u306e\u304c\u3001Controller\u306e\u4ee5\u4e0b\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">$this-&gt;set('comment', 'HelloWorld');<\/pre>\n<p>CakePHP\u3067\u306f\u3001\u3053\u308c\u306b\u3088\u3063\u3066<span style=\"color: #0000ff\"><strong>\u52d5\u7684\u306b\u30da\u30fc\u30b8\u3092\u751f\u6210<\/strong><\/span>\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3069\u3093\u306a\u306b\u30da\u30fc\u30b8\u6570\u304c\u591a\u304f\u8907\u96d1\u306a\u30a2\u30d7\u30ea\u3067\u3082\u539f\u5247\u306f\u5909\u308f\u308a\u307e\u305b\u3093\u3002<\/p>\n<h4>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u884c\u3046\u5834\u5408<\/h4>\n<p>\u6b21\u306b\u3001\u7c21\u5358\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u3092\u884c\u3046\u30b5\u30f3\u30d7\u30eb\u3092\u7d39\u4ecb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>CakePHP\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u64cd\u4f5c\u3059\u308b\u65b9\u6cd5\u306f\u5927\u304d\u304f\u5206\u3051\u30662\u901a\u308a\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e00\u3064\u306f<span style=\"color: #339966\"><strong>\u30e2\u30c7\u30eb\uff08Model\uff09<\/strong><\/span>\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u3082\u3046\u4e00\u3064\u306f\u76f4\u63a5SQL\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3067\u3001\u7c21\u5358\u306a\u64cd\u4f5c\u3067\u3042\u308c\u3070\u3001<span style=\"color: #ff0000\"><strong>Controller\u5185\u3067\u76f4\u63a5SQL\u6587\u3092\u5b9f\u884c<\/strong><\/span>\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u305d\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>src\/Controller\/DbController.php<\/p>\n<pre class=\"lang:php decode:true \" > \r\nnamespace App\\Controller;\r\n\r\nuse App\\Controller\\AppController;\r\nuse Cake\\Datasource\\ConnectionManager;\r\n    \r\nclass DbController extends AppController {\r\n    function index() {\r\n        $sql = &quot;SELECT * FROM data&quot;;\r\n        $connection = ConnectionManager::get('default');\r\n        $connection-&gt;logQueries(true);\r\n        $data = $connection-&gt;query($sql)-&gt;fetchAll('assoc');\r\n        $connection-&gt;logQueries(false); \r\n        $this-&gt;set('data', $data);\r\n    }\r\n}<\/pre>\n<p>src\/Template\/Db\/index.ctp<\/p>\n<pre class=\"lang:php decode:true \" >&lt;!DOCTYPE html&gt;\r\n&lt;html lang=&quot;ja&quot;&gt;\r\n    &lt;head&gt;\r\n        &lt;meta charset=&quot;UTF-8&quot;&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;h1&gt;\u5b9f\u884c\u7d50\u679c&lt;\/h1&gt;\r\n        &lt;table style=&quot;border:1px; width:400px;&quot;&gt;&lt;tr&gt;&lt;th&gt;ID&lt;\/th&gt;&lt;th&gt;\u540d\u524d&lt;\/th&gt;&lt;\/tr&gt;\r\n        &lt;?php\r\n            print '';\r\n            foreach($data as $element){\r\n                print &quot;&lt;tr&gt;&lt;td&gt;{$element['id']}&lt;\/td&gt;&lt;td&gt;{$element['name']}&lt;\/td&gt;&lt;\/tr&gt;\\n&quot;;\r\n            }\r\n        ?&gt;\r\n        &lt;\/table&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c6\u30fc\u30d6\u30eb\u306fdata\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">CREATE TABLE data(\r\n    id int,\r\n    name varchar(32)\r\n);<\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">INSERT INTO data VALUES(1,\"Yamada\");\r\nINSERT INTO data VALUES(2,\"Sato\");\r\nINSERT INTO data VALUES(3,\"Gotou\");<\/pre>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u306a\u3069\u306f\u3001\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/29200\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-32-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u5165\u9580\u3011SQL\uff08\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff09\u306e\u57fa\u672c\u3092\u7406\u89e3\u3057\u3088\u3046\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<p>\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089\u3001URL\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>http:\/\/localhost\/[\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d]\/db<\/strong><\/p>\n<p>\u3059\u308b\u3068\u3001\u5b9f\u884c\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32359\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/pic2-min.png\" alt=\"pic2-min\" width=\"512\" height=\"280\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/pic2-min.png 512w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/pic2-min-150x82.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/pic2-min-300x164.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u7c21\u5358\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3067\u3042\u308c\u3070\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u5185\u3067\u884c\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<h2>\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9(Pagenation)<\/h2>\n<p>\u3068\u3053\u308d\u3067\u3001\u5b9f\u969b\u306bCakePHP\u3067\u4f5c\u308b\u30a2\u30d7\u30ea\u3067\u4f7f\u7528\u3059\u308b\u3068\u3001\u691c\u7d22\u7d50\u679c\u4e00\u89a7\u3084\u540d\u7c3f\u306e\u4e00\u89a7\u306a\u3069\u306e\u3088\u3046\u306b\u3001<span style=\"color: #0000ff\"><strong>\u4e00\u3064\u306e\u30da\u30fc\u30b8\u5185\u306b\u3059\u3079\u3066\u306e\u60c5\u5831\u304c\u53ce\u307e\u3089\u306a\u3044<\/strong><\/span>\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3088\u3046\u306a\u6642\u306b\u4fbf\u5229\u306a\u306e\u304c\u3001<span style=\"color: #339966\"><strong>\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3(Pagenation)<\/strong><\/span>\u3068\u547c\u3070\u308c\u308b\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p>\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3048\u3070\u3001\u3053\u3046\u3044\u3063\u305f\u5927\u91cf\u306e\u60c5\u5831\u3092<span style=\"color: #ff0000\"><strong>\u8907\u6570\u306e\u30da\u30fc\u30b8\u306b\u5206\u5272<\/strong><\/span>\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<h3>Paginate\u3068\u306f<\/h3>\n<p>CakePHP\u3067\u306f\u3001\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u73fe\u3059\u308b\u65b9\u6cd5\u306e\u7c21\u5358\u306a\u4f8b\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \" >class ArticlesController extends AppController {\r\n\r\n    public $paginate = [\r\n        'limit' =&gt; 25,\r\n        'order' =&gt; [\r\n            'Articles.title' =&gt; 'asc'\r\n        ]\r\n    ];\r\n\r\n    public function initialize()\r\n    {\r\n        parent::initialize();\r\n        $this-&gt;loadComponent('Paginator');\r\n    }\r\n}<\/pre>\n<p>\u8a2d\u5b9a\u306f\u3001<span style=\"color: #339966\"><strong>$pangenate<\/strong><\/span>\u3068\u3044\u3046\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #339966\"><strong>limit<\/strong><\/span>\u306f\u6700\u9ad8\u30da\u30fc\u30b8\u6570\u3067\u3001\u3053\u306e\u5834\u5408\u306f25\u30da\u30fc\u30b8\u3001<span style=\"color: #339966\"><strong>order<\/strong><\/span>\u306f\u4e26\u3073\u9806\u3067\u3001\u3053\u3053\u3067\u306f<span style=\"color: #339966\"><strong>Articles<\/strong><\/span>\u30c6\u30fc\u30d6\u30eb\u306e<span style=\"color: #339966\"><strong>title<\/strong><\/span>\u90e8\u5206\u3092\u6607\u9806\u3067\u4e26\u3079\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\u3001<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \"> $this-&gt;loadComponent('Paginator');<\/pre>\n<p>\u3067\u3001<span style=\"color: #339966\"><strong>Paginator<\/strong><\/span>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u8aad\u307f\u8fbc\u3080\u3053\u3068\u306b\u3088\u3063\u3066\u6709\u52b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306b\u95a2\u3057\u3066\u3088\u308a\u8a73\u3057\u304f\u5b66\u7fd2\u3057\u305f\u3044\u65b9\u306f\u3001\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/26859\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image6-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u5165\u9580\u3011Pagenation\uff08\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\uff09\u306e\u4f7f\u3044\u65b9<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9(session)<\/h2>\n<p>\u7d9a\u3044\u3066\u3001CakePHP\u306b\u304a\u3051\u308b<span style=\"color: #339966\"><strong>\u30bb\u30c3\u30b7\u30e7\u30f3(session)<\/strong><\/span>\u306e\u6271\u3044\u65b9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u3068\u306f\u3001<span style=\"color: #0000ff\"><strong>\u4e00\u9023\u306e\u51e6\u7406\u306e\u59cb\u307e\u308a\u304b\u3089\u7d42\u308f\u308a\u307e\u3067<\/strong><\/span>\u3092\u8868\u3059\u6982\u5ff5\u3067\u3001\u305d\u306e\u305f\u3081\u306b<span style=\"color: #0000ff\"><strong>\u4e00\u6642\u7684\u306b\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u4ed5\u7d44\u307f<\/strong><\/span>\u3082\u542b\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u4e3b\u306bWeb\u30b5\u30a4\u30c8\u306e<span style=\"color: #0000ff\"><strong>\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3084\u6700\u7d42\u306e\u30a2\u30af\u30bb\u30b9\u60c5\u5831\u306a\u3069\u306e\u4fdd\u5b58<\/strong><\/span>\u306b\u5229\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>Session\u3068\u306f<\/h3>\n<p>CakePHP\u306b\u304a\u3044\u3066\u306f\u3001<span style=\"color: #339966\"><strong>\u30bb\u30c3\u30b7\u30e7\u30f3(session)<\/strong><\/span>\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \" >$this-&gt;request-&gt;session();<\/pre>\n<p>\u3067\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u4e2d\u306b\u3001<\/p>\n<p><span style=\"color: #0000ff\"><strong>[\u30ad\u30fc : \u5024]<\/strong><\/span><\/p>\n<p>\u3068\u3044\u3046\u7d44\u307f\u5408\u308f\u305b\u3067<span style=\"color: #0000ff\"><strong>\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u30fb\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306a\u64cd\u4f5c\u65b9\u6cd5\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u306f\u3001<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">$this-&gt;request-&gt;session()-&gt;write($key, $value);<\/pre>\n<p>\u53d6\u5f97\u3059\u308b\u5834\u5408\u306f<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">$this-&gt;request-&gt;session()-&gt;read($key);<\/pre>\n<p>\u3068\u3044\u3046\u98a8\u306b\u64cd\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u95a2\u3057\u3066\u8a73\u3057\u304f\u5b66\u3073\u305f\u3044\u65b9\u306f\u3001\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/27092\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/\u3010CakePHP\u5165\u9580\u3011seesion\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u65b9\u6cd5-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u5165\u9580\u3011seesion\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u65b9\u6cd5<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>\u30c7\u30d0\u30c3\u30b0\u306e\u4f7f\u3044\u65b9(Debug)<\/h2>\n<p>\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306b\u304a\u3044\u3066<span style=\"color: #0000ff\"><strong>\u30c7\u30d0\u30c3\u30b0<\/strong><\/span>\u3092\u3059\u308b\u306b\u306f\u30ed\u30b0\u3092\u6b8b\u3059\u65b9\u6cd5\u304c\u6709\u52b9\u3067\u3059\u3002<\/p>\n<p>CakePHP\u306b\u306f\u3001<span style=\"color: #339966\"><strong>Debug<\/strong><\/span>\u3068\u3044\u3046\u3001\u30c7\u30d0\u30c3\u30b0\u7528\u306e\u30ed\u30b0\u3092\u6b8b\u3059\u4ed5\u7d44\u307f\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>Debug\u3068\u306f<\/h3>\n<p>CakePHP\u3067Debug\u3092\u4f7f\u3046\u305f\u3081\u306b\u306f\u3001Controller\u3067<span style=\"color: #339966\"><strong>Log<\/strong><\/span>\u30af\u30e9\u30b9\u306e<span style=\"color: #339966\"><strong>debug<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066Log\u30af\u30e9\u30b9\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">use Cake\\Log\\Log;<\/pre>\n<p>\u5f8c\u306f\u3001\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u3092\u767a\u751f\u3055\u305b\u305f\u3044\u5834\u6240\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">Log::debug('debug log');<\/pre>\n<p>Debug\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u5b66\u3073\u305f\u3044\u65b9\u306f\u3001\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/28383\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-3-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u5165\u9580\u3011\u30c7\u30d0\u30c3\u30b0(debug)\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>\u30ed\u30b0\u306e\u4f7f\u3044\u65b9(Log)<\/h2>\n<p>\u524d\u8ff0\u306eDebug\u306f\u30b7\u30b9\u30c6\u30e0\u305d\u306e\u3082\u306e\u306e\u30c7\u30d0\u30c3\u30b0\u3092\u884c\u3046\u305f\u3081\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n<p>\u305d\u308c\u306b\u5bfe\u3057\u3001\u4e3b\u306b<span style=\"color: #ff0000\"><strong>\u30b7\u30b9\u30c6\u30e0\u904b\u7528\u6642\u306b\u4f55\u3089\u304b\u306e\u4e0d\u5177\u5408\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306b\u89e3\u6790\u3059\u308b\u4ed5\u7d44\u307f<\/strong><\/span>\u3068\u3057\u3066\u30ed\u30b0\u3092\u6b8b\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u4ed5\u7d44\u307f\u3092\u7528\u610f\u3057\u3066\u3044\u308b\u306e\u304cController\u306e\u306e<span style=\"color: #339966\"><strong>log<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<h3>Log\u3068\u306f<\/h3>\n<p>log\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u65b9\u6cd5\u306f\u7c21\u5358\u3067\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">$this-&gt;log('\u30ed\u30b0\u306e\u5185\u5bb9' [, \u30ed\u30b0\u30ec\u30d9\u30eb]);<\/pre>\n<p>\u3068\u3059\u308c\u3070\u3001\u30ed\u30b0\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u30ec\u30d9\u30eb\u306f\u7701\u7565\u3067\u304d\u3001<span style=\"color: #ff0000\"><strong>\u30b7\u30b9\u30c6\u30e0\u306e\u904b\u7528\u30dd\u30ea\u30b7\u30fc<\/strong><\/span>\u306b\u5f93\u3063\u3066\u6c7a\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u306a\u304a\u3001\u30ed\u30b0\u306b\u95a2\u3057\u3066\u8a73\u3057\u304f\u5b66\u3073\u305f\u3044\u65b9\u306f\u3001\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/26261\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u5165\u9580\u3011log\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff08\u30ed\u30b0\u306e\u51fa\u529b\u65b9\u6cd5\uff09<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u4f7f\u3044\u65b9(Redirect)<\/h2>\n<p>Web\u30a2\u30d7\u30ea\u3067\u306f\u3001\u6642\u3005<span style=\"color: #ff0000\"><strong>\u5f37\u5236\u7684\u306a\u30da\u30fc\u30b8\u9077\u79fb<\/strong><\/span>\u3092\u5fc5\u8981\u3068\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u51e6\u7406\u304c\u7d42\u308f\u3063\u305f\u5f8c\u306b\u30c8\u30c3\u30d7(index)\u30da\u30fc\u30b8\u3078\u623b\u308b\u5834\u5408\u306a\u3069\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u6642\u306b\u6709\u52b9\u306a\u306e\u304c<span style=\"color: #339966\"><strong>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\uff08Redirect)<\/strong><\/span>\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n<h3>Redirect\u3068\u306f<\/h3>\n<p>CakePHP\u3067\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u884c\u3046\u306b\u306f\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u6700\u5f8c\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">return $this-&gt;redirect(['action' =&gt; 'index']);<\/pre>\n<p>\u3053\u308c\u306f\u51e6\u7406\u7d42\u4e86\u5f8c\u306b\u3001\u540c\u4e00\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u5185\u306eindex\u306b\u9077\u79fb\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p>\u5225\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u79fb\u308b\u5834\u5408\u306f\u3001<\/p>\n<pre class=\"lang:php decode:true \" >return $this-&gt;redirect(['controller' =&gt; 'Article','action' =&gt; 'index']);<\/pre>\n<p>\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306f\u3001Article\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306eindex\u3078\u306e\u9077\u79fb\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001CakePHP\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/27030\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/image-221-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u3011\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3067\u5225\u30da\u30fc\u30b8\u306b\u9077\u79fb\u3059\u308b\u65b9\u6cd5(redirect\/header)<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u65b9\u6cd5(Auth)<\/h2>\n<p>Web\u30a2\u30d7\u30ea\u306b\u306f\u3001<span style=\"color: #0000ff\"><strong>\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c<\/strong><\/span>\u306f\u7121\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p>\u5f53\u7136\u306e\u3053\u3068\u306a\u304c\u3089\u3001CakePHP\u306b\u3082\u305d\u306e\u4ed5\u7d44\u307f\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u304c\u3001<span style=\"color: #339966\"><strong>Auth<\/strong><\/span>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3059\u3002<\/p>\n<h3>Auth\u3068\u306f<\/h3>\n<p>Auth\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u3046\u306b\u306f\u3001Controller\u306einitialize\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070<\/p>\n<pre class=\"lang:php decode:true \" >$this-&gt;loadComponent('Auth', [\r\n    'loginRedirect' =&gt; [\r\n    'controller' =&gt; 'Articles',\r\n    'action' =&gt; 'index'\r\n    ],\r\n    'logoutRedirect' =&gt; [\r\n    'controller' =&gt; 'Pages',\r\n    'action' =&gt; 'home'\r\n    ]\r\n]);<\/pre>\n<p>\u3068\u3059\u308b\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u6642\u306fArticles\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306eindex\u3078\u3001\u30ed\u30b0\u30a2\u30a6\u30c8\u6642\u306fPages\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306ehome\u3078\u9077\u79fb\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001auth\u3092\u4f7f\u7528\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u3092\u8b58\u5225\u30fb\u8a8d\u8a3c\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/30688\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-110-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u4f7f\u3044\u65b9(component)<\/h2>\n<p>\u524d\u8ff0\u306eauth\u306e\u3088\u3046\u306b\u3001CakePHP\u3067\u306f\u3057\u3070\u3057\u3070<span style=\"color: #339966\"><strong>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\uff08component\uff09<\/strong><\/span>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001\u308f\u304b\u308a\u3084\u3059\u304f\u8a00\u3048\u3070\u5916\u90e8\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u6a5f\u80fd\u306e\u3053\u3068\u3067\u3001<span style=\"color: #0000ff\"><strong>\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8aad\u307f\u8fbc\u3093\u3067\u5229\u7528<\/strong><\/span>\u3057\u307e\u3059\u3002<\/p>\n<h3>component\u3068\u306f<\/h3>\n<p>CakePHP\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5\u306f2\u901a\u308a\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e00\u3064\u306f\u3001\u4f7f\u3044\u305f\u3044\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306epublic\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u3057\u3066\u3001\u914d\u5217<span style=\"color: #339966\"><strong>$components<\/strong><\/span>\u3092\u5ba3\u8a00\u3057\u3001\u305d\u306e\u4e2d\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u540d\u3092\u66f8\u3044\u3066\u3044\u304f\u65b9\u6cd5\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">public $components = [\"Auth\", \"Cookie\"];<\/pre>\n<p>\u3068\u3059\u308c\u3070\u3088\u3044\u306e\u3067\u3059\u3002\u305d\u3057\u3066\u3001\u3082\u3046\u4e00\u3064\u306e\u65b9\u6cd5\u304c\u3001<span style=\"color: #339966\"><strong>loadComponent<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3067\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u524d\u8ff0\u306eauth\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u4f7f\u7528\u65b9\u6cd5\u304c\u305d\u308c\u306b\u3042\u305f\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3082\u3068\u3082\u3068CakePHP\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3070\u304b\u308a\u3067\u306f\u306a\u304f\u3001<span style=\"color: #0000ff\"><strong>\u81ea\u5206\u3067\u3082\u4f5c\u308b\u3053\u3068\u304c\u53ef\u80fd<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/30423\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-18-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u5165\u9580\u3011Component\u306b\u3088\u308b\u5171\u901a\u51e6\u7406\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>set\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9<\/h2>\n<p>CakePHP\u306b\u304a\u3044\u3066\u3001View\uff08Template\u5185\u306e.ctp\u30d5\u30a1\u30a4\u30eb\uff09\u306b\u5024\u3092\u6e21\u3059\u306e\u304c<span style=\"color: #339966\"><strong>set<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306fCakePHP\u306eController\u3067\u5927\u5909\u4f7f\u7528\u983b\u5ea6\u306e\u9ad8\u3044\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<h3>set\u3068\u306f<\/h3>\n<p>\u5192\u982d\u306eHelloWorld\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u898b\u308c\u3070\u308f\u304b\u308b\u901a\u308a\u3001.ctp\u30d5\u30a1\u30a4\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u6e21\u3059\u306b\u306f\u3001<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">$this-&gt;set('\u5909\u6570\u540d', \u5024);<\/pre>\n<p>\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>set\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u8a73\u3057\u3044\u3053\u3068\u306f\u3001\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/26983\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image8-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u5165\u9580\u3011set\u30e1\u30bd\u30c3\u30c9\u3067View\u306b\u30c7\u30fc\u30bf\u3092\u9001\u308b\u65b9\u6cd5<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<h2>\u5171\u901a\u51e6\u7406(beforefilter)<\/h2>\n<p>\u6700\u5f8c\u306b\u3001Controller\u306e<span style=\"color: #339966\"><strong>\u5171\u901a\u51e6\u7406(beforefilter)\u30e1\u30bd\u30c3\u30c9<\/strong><\/span>\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001Controller\u3067\u4e3b\u306b\u5171\u901a\u3057\u305f\u3044\u51e6\u7406\u3092\u8a18\u8ff0\u3057\u305f\u3044\u3068\u304d\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3>beforefilter\u3068\u306f<\/h3>\n<p>beforefilter\u30e1\u30bd\u30c3\u30c9\u306f\u3001<span style=\"color: #0000ff\"><strong>\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u5b9f\u884c\u3055\u308c\u308b\u524d<\/strong><\/span>\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001<span style=\"color: #0000ff\"><strong>\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u524d\u306e\u8a2d\u5b9a<\/strong><\/span>\u306a\u3069\u306b\u5229\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306a\u30b3\u30fc\u30c9\u3067\u3069\u306e\u3088\u3046\u306a\u65b9\u6cd5\u3067beforefilter\u3092\u4f7f\u7528\u3059\u308b\u304b\u898b\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:php decode:true \" >&lt;?php\r\nnamespace App\\Controller;\r\nuse App\\Controller\\AppController;\r\nuse Cake\\Event\\Event;\r\n \r\nclass BeforeController extends AppController{\r\n    \/\/\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5ba3\u8a00\r\n    public $text = 'AAA';\r\n    \r\n    public function beforeFilter(Event $event) {\r\n        \/\/\u5024\u3092\u5909\u66f4\u3059\u308b\r\n        $this-&gt;text = 'BBB'; \r\n    }\r\n\r\n    public function index() {\r\n        $this-&gt;set('text', $this-&gt;text);\r\n    }\r\n}<\/pre>\n<p>$text\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u306e\u521d\u671f\u5024\u306f\u2019AAA\u2019\u3067\u3059\u3002\u3057\u304b\u3057\u5b9f\u884c\u3059\u308b\u3068\u3001<span style=\"color: #ff0000\"><strong>index\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u5b9f\u884c\u3055\u308c\u305f\u3068\u304d\u306b\u5024\u306f\u2019BBB\u2019\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u3053\u308c\u306f\u3001\u305d\u306e\u524d\u306bbeforefilter\u304c\u5b9f\u884c\u3055\u308c\u3066\u5024\u304c\u5909\u66f4\u3055\u308c\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>beforefilter\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/27127\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-21-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u5165\u9580\u3011\u5171\u901a\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5(beforefilter)<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306fCakePHP\u306eController\u306b\u3064\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6d41\u308c\u3067\u8aac\u660e\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><span style=\"color: #ff0000\"><strong>\u30fb \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\uff08Controller\uff09\u3068\u306f\uff1f<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9(Pagenation)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9(session)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u30c7\u30d0\u30c3\u30b0\u306e\u4f7f\u3044\u65b9(Debug)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u30ed\u30b0\u306e\u4f7f\u3044\u65b9(Log)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u4f7f\u3044\u65b9(Redirect)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u65b9\u6cd5(Auth)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u4f7f\u3044\u65b9(component)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fbset\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u5171\u901a\u51e6\u7406(beforefilter)<\/strong><\/span><\/p>\n<p>\u3053\u308c\u3089\u3092\u5de7\u307f\u306b\u5229\u7528\u3059\u308c\u3070\u3001<span style=\"color: #ff0000;background-color: #ffff99\"><strong>PHP\u306e\u307f\u3067\u306f\u975e\u5e38\u306b\u5b9f\u88c5\u304c\u96e3\u3057\u3044Web\u30a2\u30d7\u30ea\u3092\u7c21\u5358\u306b\u5b9f\u88c5<\/strong><\/span>\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u3053\u3046\u3044\u3063\u305f\u4ed5\u7d44\u307f\u306f<span style=\"color: #0000ff\"><strong>Cake\u4ee5\u5916\u306e\u4ed6\u306ePHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3082\u4f3c\u305f\u3088\u3046\u306a\u4ed5\u7d44\u307f<\/strong><\/span>\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u672c\u683c\u7684\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308a\u305f\u3044\u65b9\u306f\u3001\u4ee5\u4e0a\u306e\u5185\u5bb9\u3092\u3057\u3063\u304b\u308a\u5b66\u7fd2\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u30e9\u30a4\u30bf\u30fc\u306e\u4e80\u7530\u3067\u3059\u3002 PHP\u306b\u306fCakePHP\u4ee5\u5916\u306b\u3082\u69d8\u3005\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u5b58\u5728\u3057\u307e\u3059\u3002 \u6700\u8fd1\u3067\u306f\u3001FuelPHP\u3001Laravel\u306a\u3069\u3068\u3044\u3063\u305f\u65b0\u8208\u52e2\u529b\u304c\u53f0\u982d\u3057\u3066\u304d\u3066\u3044\u307e\u3059\u3002 \u3057\u304b\u3057\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u9055\u3063\u3066\u3082\u57fa\u672c [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":32353,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2348],"tags":[15,618],"class_list":["post-32347","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-study","tag-cakephp","tag-controller"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/32347\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/32347\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/sejuku2013\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-07T09:08:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:44:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image6.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32347#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32347\"},\"author\":{\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\"},\"headline\":\"\u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01\",\"datePublished\":\"2017-09-07T09:08:32+00:00\",\"dateModified\":\"2024-05-06T02:44:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32347\"},\"wordCount\":286,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32347#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/image6.jpg\",\"keywords\":[\"CakePHP\",\"controller\"],\"articleSection\":[\"PHP\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32347\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32347\",\"name\":\"\u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32347#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32347#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/image6.jpg\",\"datePublished\":\"2017-09-07T09:08:32+00:00\",\"dateModified\":\"2024-05-06T02:44:55+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32347#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32347\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32347#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/image6.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/image6.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32347#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\"},\"description\":\"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\\\/Web\u958b\u767a\\\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\\\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\\\/\u30b2\u30fc\u30e0\u958b\u767a\\\/AI\\\/Web\u30c7\u30b6\u30a4\u30f3\",\"sameAs\":[\"https:\\\/\\\/www.sejuku.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\\\/\",\"https:\\\/\\\/www.instagram.com\\\/samuraiengineer_official\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\"],\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-blog\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/32347","og_locale":"ja_JP","og_type":"article","og_title":"\u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/32347","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_author":"https:\/\/www.facebook.com\/sejuku2013\/","article_published_time":"2017-09-07T09:08:32+00:00","article_modified_time":"2024-05-06T02:44:55+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image6.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/32347#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/32347"},"author":{"name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61"},"headline":"\u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01","datePublished":"2017-09-07T09:08:32+00:00","dateModified":"2024-05-06T02:44:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/32347"},"wordCount":286,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/32347#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image6.jpg","keywords":["CakePHP","controller"],"articleSection":["PHP\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/32347","url":"https:\/\/www.sejuku.net\/blog\/32347","name":"\u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/32347#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/32347#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image6.jpg","datePublished":"2017-09-07T09:08:32+00:00","dateModified":"2024-05-06T02:44:55+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/32347#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/32347"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/32347#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image6.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image6.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/32347#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010CakePHP\u5165\u9580\u3011Controller\u306e\u4e3b\u306a\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff01"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","caption":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8"},"description":"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\/Web\u958b\u767a\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\/\u30b2\u30fc\u30e0\u958b\u767a\/AI\/Web\u30c7\u30b6\u30a4\u30f3","sameAs":["https:\/\/www.sejuku.net\/","https:\/\/www.facebook.com\/sejuku2013\/","https:\/\/www.instagram.com\/samuraiengineer_official\/","https:\/\/x.com\/https:\/\/twitter.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g"],"url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-blog"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/32347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=32347"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/32347\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/32353"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=32347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=32347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=32347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}