Yes, above posted code is correct, it was line # 2209 & 2321 missing the closing php tags );By looking at that code, there doesn't seem to be anything wrong with it. See if any whitespace characters above or underneath it at the end of the lines.
Once those fixes zip the extension again and installed as per instructions it worked on admin end. However i am not seeing the ___csrf key on Catalog side.
@straightlight
Code: Select all
// admin/controller/common/header/before
public function commonHeaderBefore(&$route, &$args) {
$this->load->library('csrf_helper');
$csrf = new csrf_helper($this->registry);
$csrf->csrf_start();
Code: Select all
<?php
class ControllerExtensionModuleSlCsrf extends Controller {
// catalog/controller/common/header/after
public function index(&$route, &$args, &$output) {
$this->load->library('csrf_helper');
$csrf = new csrf_helper($this->registry);
$csrf->csrf_start();
}
}