Hi,
I’m trying to implement a booking/availability calendar within a CMP (as part of a collection of CMP’s in a tabbed panel). I have a attached a screenshot of the prototype I assembled using two subclasses of MODx.Panel: a Calendar panel (wrapper panel for months) and a Month panel. The calendar should display booked and available dates for a number of rental properties. A property can be selected from the combo upon which the Calendar panel should re-render itself.
After browsing through the ExtJs API I’m not sure how to move on with the prototype. My plan was to have a Month class (in PHP) which (1) is capable of retrieving bookings from the database and (2) is capable of rendering itself to HTML which can then be displayed inside each Month panel.
How do I actually connect each Month panel to the Month class in PHP so that upon rendering the Calendar panel, each Month panel is rendered as well?
Also, if you think this approach sucks feel free to say so (...and maybe add some pointers on how to do it right

)
Thanks for ideas, pointers, suggestions etc...