We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Plugin Crash Course Question | Forum

Corey
Corey Sep 23 '14

Not sure if this is right spot, but here's the question....

 

I'm learning, so no giggles :)

 

I've done the crash course, it say make the install.php file and put this in it:

BOL_LanguageService::getInstance()->addPrefix('contactus', 'Contact Us');

 

And make the other files, then install it the plugin.

 

When I go to the admin, it shows up and I click install I'm directed to a page at <domain>/admin/plugins/install/key/contactus  that basically just says:

BOL_LanguageService::getInstance()->addPrefix('contactus', 'Contact Us');

as text output.

 

What did I do wrong?

 

Thanks

Corey
Corey Sep 23 '14

So, since no one responding I thought I'd add some other info to see if someone might know what I'm doing wrong.

 

I added

<?php

to the install.php file so it now reads:

 

<?php

BOL_LanguageService::getInstance()->addPrefix('contactme', 'Contact Me');

 

and it worked, lol  <---- duh