Variable scope question

t3living 19 Apr, 2016
I have a variable scope question.

My connection takes an input parameter(via Get) and then pulls related parameters from a database in order to create the WHERE filter on the model being used for the connection.

My question is....
are PHP variables declared in the FrontList/Table/Header Code available in the Models/Conditions area or vice versa?
are PHP variable declared in the FrontList/Settings/Pre-display-processing available in Models/Conditions are or vice versa?
GreyHead 20 Apr, 2016
Hi t3living,

Basically No. You can declare them as Global; or you can add them to the CC Object which is accessible as $this in both places. IIRC the basic listing data (not the $row data) is an array in $this->view->controller->data.

Bob
This topic is locked and no more replies can be posted.