We help IT Professionals succeed at work.
Get Started

how is this saving without a table

jagguy asked
Last Modified: 2015-04-19
In cakephp I have some code which saves data without a table and I have no idea how.
The model,controller show nothing like below it works fine but there is no tablecalled terms

 $terms=$this->Term->find('all' ); //displays everything and you can edit these fields in another page.

There is no table called terms in any database I have.

How is this happening?

App::uses('AppController', 'Controller');

 * Subjects Controller
 * @property Subject $Subject
class TermsController extends AppController {

    public function add() {
        if ($this->request->is('post')) {
            if ($this->Term->save($this->request->data)) {
                $this->Session->setFlash(__('The Term has been saved'), 'flash_success');
                $this->redirect(array('controller' => 'configs', 'action' => 'index'));
            } else {
                $this->Session->setFlash(__('The Term could not be saved. Please, try again.'));

Open in new window

Watch Question
Most Valuable Expert 2020
Most Valuable Expert 2018
This problem has been solved!
Unlock 1 Answer and 14 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE