Jump to content

Moduleadmincontroller Presta 1.6.1.4


Recommended Posts

Hi. I have module and I need to create controller in admin section. I had one old module working that, but on this version I can´t figure out what s going on.

File is located in: 

modulename/controllers/admin/showchat.php

I call it via 

index.php?controller=showchat

And controller code is:

<?
class showchatController extends ModuleAdminController {
public function __construct()
{

parent::__construct();

}

public function renderList()
{
return $this->module->display(_PS_MODULE_DIR_.$this->module->name, 'views/templates/admin/showchat.tpl');
}

}


But on this version I´m getting error

Fatal error: Class 'showchatController' not found in D:\webserver\www\prestashop\classes\controller\Controller.php on line 134

Something has changed, or I am blind and I coppied files from old module badly? Thanks

Link to comment
Share on other sites

It´s not version problem, but it seems to by installation problem. A tested working module on live server, which runs on Linux and everything is ok. I tested the same on my Windows test server, and problem occurs. Any idea wha´t s going on?

Link to comment
Share on other sites

Nothing. Go on and don´t read... after 15years developing such a beginner mistake.
If anybody will have same problem and you´re trying to develop in new IDE, don´t forget watch out for short open tag

OMG. 24 hous searching "admin controller - how to" lost :-D

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...