Welcome Guest, Not a member yet? Register   Sign In
Help needed Multi city flight search logic
#1

(This post was last modified: 11-14-2019, 04:11 AM by msjagan.)

I would like to create flight booking system in CI4. I know the search logic for single and return way, but I couldn't figure out the logic for Multi city flight search like multi city search in expedia.com. 

Guys,
I really appreciate, if anybody could help me to achieve multi city logic in PHP. 
Reply
#2

Guys Help please
Reply
#3

If every option/input/dropdown etc on the search area is selected, I believe it will be the same with the "one input search" you can already do. 
Just send the values to controller, then to model and retrieve the results by filtering according to the values.

However, if there are some options which might be blank, you can check this answer written for one of my questions : 

https://forum.codeigniter.com/thread-74617.html

Good Luck.
Reply
#4

(11-14-2019, 04:05 AM)msjagan Wrote: I would like to create flight booking system in CI4. I know the search logic for single and return way, but I couldn't figure out the logic for Multi city flight search like multi city search in expedia.com. 

Guys,
I really appreciate, if anybody could help me to achieve multi city logic in PHP. 

well you can send it as an ARRAY of selected cities to the controller
Reply
#5

Thanks for hints guys Smile

I may also require another help.

Is there any free flight search API available (atleast with limitations)?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB