Hello,
I am interested in Phalcon but totally newbie. Thinking about refactor my apps with Phalcon. I am using pages containing more parts, for example DNS settings admin page:
<h3>A records</h3>
<div>table with A records</div>
<h3>CNAME records</h3>
<div>table with CNAME records</div>
etc.
<h3>Zone settings</h3>
<div>table with zone settings</div>
I want to have possibility to refresh every table (or div) with Ajax. So with DRY is possible to do something as this in controller?
public function indexAction() {
// use showARecordsAction()
// use showCnameRecordsAction()
// showZoneSettingsAction()
}
public function showARecordsAction() {
}
public function showCnameRecordsAction() {
}
public function showZoneSettingsAction() {
}
Every show-action should use its own .volt file (because of refreshing its content with ajax).
Or what is the best way to do this? Thanks, J.M.