Jump to content

Show warnings or errors when installing a module


vblanch

Recommended Posts

Hi all,

I'm developing a new module and I copy some files from the module to /mails. I want to show a warning if the files already exists (so the user knows that files haven't been copied).

 

The problem is that I can't find a way to show warnings or errors in Prestashop. I'm using 1.5.4.

 

So far I tried this:

 

                $this->warning = $this->l('just a warning ');

                $this->context->controller->errors[] = 'give an error regardless';

 

So if somebody knows how to show warnings or errors or any kind of messages in the install() function please let me know.

 

Thanks!! :)

 

P.D. Sorry if this has been asked before, just can't find the answer!

Link to comment
Share on other sites

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...