if (controller != null) {
List<PhpBaseElement> elements = new LinkedList<PhpBaseElement>();
String controllerName = controller.getName();
// add controller and variables
PhpClass controllerClass = new PhpClass(controllerName, controllerName);
PhpVariable phpVariable = new PhpVariable("$this", controllerClass, controller, 0); // NOI18N
elements.add(phpVariable);
elements.addAll(parseAction(fo));
return elements;
}