XF 2.2 Help with entities and controllers in one template

grantus

Active member
I have some custom tables that I'm querying via the finder system and it works fine for each table.

The issue is I want to have a template like this:

My Template
  • show finder results from table 1
  • show finder results from table 2
  • show finder results from table 3
If I want to create a template for example on table 1, I have the Entity/Controller/Template which works fine. But if I have the same setup for each of my tables and I try to show the results from each one into one template, I don't get results. I tried including the templates but that didn't work either. There aren't any errors, it just doesn't show results but it shows results in its own template.

How can I accomplish this?
 
Solution
pass each finder result as a new viewparams, eg:

Code:
	$viewParams = [
				'data1' 	=> $finder1,	
				'data2' 	=> $finder2,
		
			];

and then you can iterare through data1 and data2 in the template
pass each finder result as a new viewparams, eg:

Code:
	$viewParams = [
				'data1' 	=> $finder1,	
				'data2' 	=> $finder2,
		
			];

and then you can iterare through data1 and data2 in the template
 
Solution
Top Bottom