title: CakePhp render a blank view
body: <p>I have a CakePHP application where all the view works, but two.
  This is the controller:</p>
  
  <pre><code> &lt;?php
      App::uses('AppController', 'Controller');
      class CardsController extends AppController {
        public function index() {
        } 
      }
      ?&gt;
  </code></pre>
  
  <p>And this is the view</p>
  
  <pre><code>&lt;h2&gt;Title&lt;/h2&gt;
  &lt;?php
  echo $this-&gt;Form-&gt;create('Card', array(
  'url' =&gt; array(
      'controller' =&gt; 'cards',
      'action' =&gt; 'view'
  )
  ));
  echo $this-&gt;Form-&gt;input('codice');
  echo $this-&gt;Form-&gt;end('Cerca');*/
  ?&gt;
  </code></pre>
  
  <p>Checking with the firefox console I got this:</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;&lt;/head&gt;
    &lt;body&gt;&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The "view" view, called by the form has the same problem.
  Normally if the view is missing Cake return an error, in this case if I delete the index.ctp the result is in any case a blank page.
  I can't find what the problem is.</p>
  
  <p><strong>UPDATE 1</strong><br>
  My route code:</p>
  
  <pre><code>&lt;?php
  Router::connect('/', array('controller' =&gt; 'users', 'action' =&gt; 'login'));
  Router::connect('/pages/*', array('controller' =&gt; 'pages', 'action' =&gt; 'display'));
  CakePlugin::routes();
  require CAKE . 'Config' . DS . 'routes.php';
  ?&gt;
  </code></pre>
  
  <p>**UPDATE 2 **<br>
  My folder structure</p>
  
  <pre><code>├── Config
  │   └── Schema
  ├── Console
  │   ├── Command
  │   └── Templates
  ├── Controller
  │   ├── ()
  │   ├── Component
  │   ├── docs
  │   └── output
  ├── files
  ├── Lib
  ├── Locale
  │   └── eng
  ├── Model
  │   ├── ()
  │   ├── Behavior
  │   └── Datasource
  ├── Plugin
  │   ├── AclExtras
  │   ├── CakePdf
  │   └── DebugKit
  ├── Test
  │   ├── Case
  │   └── Fixture
  ├── tmp
  │   ├── cache
  │   └── logs
  ├── Vendor
  │   └── tcpdf
  ├── View
  │   ├── ()
  │   ├── Cards
  │   ├── Clientis
  │   ├── Elements
  │   ├── Emails
  │   ├── Errors
  │   ├── Fornitoris
  │   ├── Groups
  │   ├── Helper
  │   ├── Indirizzos
  │   ├── Layouts
  │   ├── Magsits
  │   ├── Movimentis
  │   ├── Pagamentos
  │   ├── Pages
  │   ├── Pdcard
  │   ├── Pdf
  │   ├── Posts
  │   ├── Rdocumentos
  │   ├── Rlistinos
  │   ├── Scaffolds
  │   ├── Storicotransaziones
  │   ├── Tdocumentos
  │   ├── Titoliviaggios
  │   ├── Tmovimentis
  │   ├── Users
  │   ├── Verificas
  │   ├── Voucher
  │   └── Widgets
  └── webroot
      ├── css
      ├── files
      ├── images
      ├── img
      └── js
  </code></pre>
  
  <p><strong>UPDATE 3</strong><br>
  Card model</p>
  
  <pre><code>&lt;?php
  App::uses('AppModel', 'Model', 'AuthComponent', 'Controller/Component');
  class Card extends AppModel {
      public $belongsTo = array('Packet' =&gt; array('foreignKey' =&gt; 'pacchetto'), 'Tdocumento' =&gt; array('foreignKey' =&gt; 'iddocument'));
      public $hasMany = array('Visit' =&gt; array('foreignKey' =&gt; 'codicecarta'));
      public $primaryKey = 'codicecarta';
  
      public function afterFind($results, $primary = true) {
          for ($i=0; $i &lt; sizeof($results); $i++) { 
              if($results[$i]['Card']['minore'] == 1){
                  $results[$i]['Card']['minore'] = 'Yes';
              }else{
                  $results[$i]['Card']['minore'] = 'No';
              }
              if($results[$i]['Card']['gratuito'] == 1){
                  $results[$i]['Card']['gratuito'] = 'Yes';
              }else{
                  $results[$i]['Card']['gratuito'] = 'No';
              }
              $datavalidita = $this-&gt;formatodata($results[$i]['Card']['iniziovalidita']);
              $datavisita = $this-&gt;formatodata($results[$i]['Card']['dataprenotazione']);
              $results[$i]['Card']['datainizio'] = $datavalidita[0];
              $results[$i]['Card']['orainizio'] = $datavalidita[1];
              $results[$i]['Card']['datavisita'] = $datavisita[0];
              $results[$i]['Card']['oravisita'] = $datavisita[1];
          }
          return $results;
      }
  
      public $validate = array(
          'nominativo' =&gt; array(
              'required' =&gt; array(
                  'rule' =&gt; array('notEmpty'),
                  'message' =&gt; 'A username is required'
              )
          ),
          'codicecarta'=&gt; array(
              'required' =&gt; array(
                  'rule' =&gt; array('notEmpty'),
                  'message' =&gt; 'Inserire il codice'
              )
          )
      );
      private function formatodata($dataora){
          $dataora = explode(' ', $dataora);
          $data = $dataora[0]; 
          $data = date('d-m-y', strtotime($data));
          $ora = $dataora[1]; 
          $ora = substr($ora, 0,5);
          return array($data, $ora);
      }
  }
  </code></pre>
  
  <p><strong>UPDATE 4</strong><br>
  My View/Layout/default.ctp</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt; 
      &lt;?php echo $this-&gt;Html-&gt;charset(); ?&gt;
      &lt;title&gt;
          &lt;?php echo $cakeDescription ?&gt;:
          &lt;?php echo $title_for_layout; ?&gt;
      &lt;/title&gt;
      &lt;?php
          echo $this-&gt;Html-&gt;meta('icon');
          echo $this-&gt;Html-&gt;css('cake.generic');
          echo $this-&gt;fetch('meta');
          echo $this-&gt;fetch('css');
          echo $this-&gt;fetch('script');?&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="container"&gt;
          &lt;div id="header"&gt;
              &lt;h1&gt;&lt;?php echo $this-&gt;Html-&gt;link($cakeDescription, 'http://cakephp.org'); ?&gt;&lt;/h1&gt;
          &lt;/div&gt;
          &lt;div id="content"&gt;
              &lt;?php echo $this-&gt;Session-&gt;flash(); ?&gt;
              &lt;?php echo $this-&gt;fetch('content'); ?&gt;
              &lt;?php echo $this-&gt;element('sql_dump'); ?&gt;  
          &lt;/div&gt;
          &lt;div id="footer"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>