Adding AJAX to PHPMySQL 6th edition app

@tomB After going through the book PHPMySQL 6th edition and after also going through the post Php mysql 6th edition: how to integrate js ajax into the framework created in the book where a reader asked a question how to AJAXIFY his app. Following your comment, I add

$layouts

to the

__construct()

function, then, add this lines to the

run()

function(actually added in the else part)

$layout = $routes[$this->route][$this->layouts]['layout']; and this.. echo $this->loadTemplate($layout, ['loggedIn' => $authentication->isLoggedIn(),
			                                             'output' => $output,
			                                             'title' => $title
			                                            ]);

in EntryPoint.php

But, this dosen’t work

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.