0
I am developing a system for accounting in PHP, Mysql, jQuery and css, the system is divided into sectors, and each sector has a graphics tab (plugin highcharts), which are generated dynamically according to the parameters passed.
It works as follows:
indexView() -> renderIndex() -> calls menu and options ( suppose here that we enter the tax sector):
fiscalControll -> fiscalView() -> renderFiscal() -> calls the options of the tax and displays the Dashboard (now suppose we click on the tab 'Graphics'):
The system calls:
fiscalControll-> fiscalModel() -> get_charts_data_json_from_mysql($Chart).
in the sequence Controll takes the data of fiscalModel() and passes to fiscalView() rederize somehow, there is my 'problem'.
Doubt:
Should I render the graphics directly by the php function, or in a separate html page with the locations of the graphics?
Note: The two forms work, almost with the same response time, but which would be the most correct?