Using $view->action within an included file

Permalink
Hi all,

I'm new to php & concrete and I've created a block that includes a file (based on an if condition) within add.php. Within the included file, I include another file based on another condition, but when I execute I run into "Undefined variable: view" when calling $view->action.

How would I go about including the $view object in second included file?

 
Gondwana replied on at Permalink Reply
Gondwana
Try this variation on $view->inc(), perhaps:
http://documentation.concrete5.org/developers/designing-for-concret...