Answer the question
In order to leave comments, you need to log in
How to use public_function in new file?
Friends, good afternoon. A bit off on this one. I've read a lot and nothing works.
The point is the following. There is a site on opencart, one of the opencard modules is encrypted with ioncub_loader.
There is a page that needs to be opened through the CLI, the page is also encrypted with an ioncube and just does not open.
BUT, the author, who encrypted the whole thing, issued a clean code of the following form with the following comment
public function do_seo() {
$this->load->model('localization/language');
$this->load->model('module/revolution');
$seo_data = $this->config->get('revtheme_seo');
$languages = $this->model_localization_language->getLanguages();
$this->model_module_revolution->do_seodata($seo_data, $languages);
}
Call this function where needed.
Answer the question
In order to leave comments, you need to log in
You need to create a controller in:
catalog/controller/folder(for example api)/filename(for example seo).php
in it you create a class:
<?php
class ControllerApiSeo extends Controller {
// Тут вставляете код
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question