CakePHP Model or Controller without any database Table


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //### Creating a model for a table that doesn't actually exist in the database
  2. //### From cake-php.blogspot.com at :
  3. //### http://cake-php.blogspot.com/2006/09/21-things-you-must-know-about-cakephp.html
  4.  
  5. //Add this in the Model
  6. //or in the Controller if you didn't get anymodel for your controller
  7. var $useTable = false;

URL: http://cake-php.blogspot.com/2006/09/21-things-you-must-know-about-cakephp.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.