Jump to content

Pretty stupid problem ... where method is not working

where problem

  • Please log in to reply
1 reply to this topic

#1 James



  • Members
  • Pip
  • 1 posts

Posted 11 July 2019 - 06:34 PM



It's a very first post here, so welcome guys.

I'm just writting a simple webapp for my client and I looks like GC delivers almost all functionality what I need.


But there is one problem. I'm just messing around documentation and API and I'm trying to get values with where method.

But ... at the end nothing is changed :/

public function __construct()
        /* ------------------ */


    public function index()

	public function employees(){
	    $crud = new grocery_CRUD();
	    $crud->where('jobTitle','Sales Rep')
	    $output = $this->grocery_crud->render();

    private function example_output($output = null){

As you see I just added one line to a code what you can see in examples.

The question is: where is a problem ? ;P Of course I searched google for solution but I found nothing :(

#2 genya



  • Members
  • Pip
  • 5 posts

Posted 22 July 2019 - 07:12 PM

Including the table name solved the problem for my cases, so in your case the code would be

$crud->where('employees.jobTitle','Sales Rep');

instead of

$crud->where('jobTitle','Sales Rep')

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users