Where condition inside if statement in editor
Where condition inside if statement in editor
Hello,
I want to put where condition inside if statement, but it doesn't work. I try to break the chain like this
$editor = new Editor( ... )
->fields( ... );
if($aktiv == '1'){
$editor->where( 'tm_pflegestellen.Aktiv', $aktiv, '=')
}
$editor->process( $_POST );
$editor->json();
also got error in ->fields line.
So how to put Where condition inside if statement in editor and thanks
This discussion has been closed.
Replies
What is the error?
in if statement, it says syntax error
There are a few examples on this page that should get you going. Also, look at the
controllers/compoundKey.php
file in the download package, there are a fewwhere
clauses in there too.Colin