[Flow] How to build a search/filter form above of a list
Axel Wüstemann
awu at qbus.de
Fri Nov 1 18:39:17 CET 2013
Am 01.11.2013 15:17, schrieb Bastian Waidelich:
> Compare the two once again. And then replace all "<input>" tags by
> "<f:form.textfield>" ;
Thank you Bastian - copy & paste is not programming ;=)
Ok, at the first step I will make it strait forward, without DTO.
> public function indexAction(array $filter = null) {
> This should work, but you should try to avoid array as a placeholder
> for objects. Instead you can create a simple filter "Data Transfer
> Object":
If not DTO, what type $filter should have if not an array?
===========================================================
With DTO:
Where I can read more about them? I could not find anything in the Flow
Reference Manual
Where to store DTOs in the package folder structure - they are not
Domain Models nor Services?
As I mentioned - in the next step I need to save the filter related to
the user, so that the filter will be kept, until the user changes it.
My App is a relaunch of an app, what I built about five years ago with
Zend Framework 1.x. There I created a state object. The state data where
helt within an array. The state object was able to store and restore
those state data by using the session.
Within the controller's initialisation I restored the state and invoked
it in the index action to filter the list.
Is there a way with DTOs to make this more elegant or more "Flow compliant"
Many thanks
Axel
More information about the Flow
mailing list