Posted By

jpsirois on 07/21/09


Tagged

database table controller cakephp


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

irishsk
esritter


CakePHP Model or Controller without any database Table


 / Published in: PHP
 

URL: http://cake-php.blogspot.com/2006/09/21-things-you-must-know-about-cakephp.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;

Report this snippet  

You need to login to post a comment.