Jump to content

Changing Module Names?


freshJet

Recommended Posts

  • Moderators

Is it OK to change module names? e.g the Profile folder and profile.php changed to PilotCentre and PilotCentre.php or something?

NO IT'S NOT! Unless you go inside each module folder and edit the .php and change the names there as well.I wouldn't suggest that as changing module's name may mess up other modules and files as they're all connected to each other somehow.

Link to comment
Share on other sites

  • Administrators

I am not sure why you would want to do this but if it is to change the title in the browser tab you can set a custom title in the start of the controller which will be reflected in the browser tab;

<?php

class Profile extends CodonModule
{
     public $title = 'Pilot Center';

     function index()   {

     etc.....


  • Like 1
Link to comment
Share on other sites

I am not sure why you would want to do this but if it is to change the title in the browser tab you can set a custom title in the start of the controller which will be reflected in the browser tab;

<?php

class Profile extends CodonModule
{
     public $title = 'Pilot Center';

     function index()   {

     etc.....


Thanks, that will do :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...