LabelLmsController.php missing file

Please report here problems and bugs
tempuser
FormaLms Expert
Posts: 76
Joined: Wed Feb 28, 2018 8:26 am

Re: LabelLmsController.php missing file

Post by tempuser » Tue Mar 27, 2018 1:26 pm

Ok then, so what is the fix for the missing label class error? Any workaround? Can you share a file for this class?

Also I have a comment regarding placement of course files under the public folder. Is there some setting to direct this path to some inaccessible location?

By the way, it's not clear to me where the course modules can be added? I see in the documents the course logo and demo files only, where are the core files uploaded?

alfa24
FormaLms Expert
Posts: 118
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: LabelLmsController.php missing file

Post by alfa24 » Tue Mar 27, 2018 1:31 pm

Why don't you open a new thread for each request?
I'm Jasmines, the One

User avatar
max
FormaLms Guru
Posts: 1732
Joined: Thu Mar 01, 2012 10:41 am

Re: LabelLmsController.php missing file

Post by max » Tue Mar 27, 2018 1:32 pm

tempuser wrote:By the way, it's not clear to me where the course modules can be added? I see in the documents the course logo and demo files only, where are the core files uploaded?
Hi tempuser, this is a totally different topic, it's not "by the way". Please add your question to the appropriate forum viewforum.php?f=12
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
http://www.elearnit.net
http://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
http://elearnit.wordpress.com
Skype: m_ferrari_it

alfa24
FormaLms Expert
Posts: 118
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: LabelLmsController.php missing file

Post by alfa24 » Tue Mar 27, 2018 3:50 pm

Solution:
create a new mvc module with only a show controller that would redirect to elearning/show&id_common_label=-2
Done.
I'm Jasmines, the One

tempuser
FormaLms Expert
Posts: 76
Joined: Wed Feb 28, 2018 8:26 am

Re: LabelLmsController.php missing file

Post by tempuser » Tue Mar 27, 2018 4:54 pm

May you please share this file?

tempuser
FormaLms Expert
Posts: 76
Joined: Wed Feb 28, 2018 8:26 am

Re: LabelLmsController.php missing file

Post by tempuser » Wed Mar 28, 2018 10:04 am

I created this file as LabelLmsController.php

<?php defined("IN_FORMA") or die('Direct access is forbidden.');

/* ======================================================================== \
| FORMA - The E-Learning Suite |
| |
| Copyright (c) 2013 (Forma) |
| http://www.formalms.org |
| License http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt |
| |
| from docebo 4.0.5 CE 2008-2012 (c) docebo |
| License http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt |
\ ======================================================================== */

require_once(_base_.'/lib/lib.urlmanager.php');

class LabelLmsController extends LmsController {

//std functions

public function showTask() {
header('Location: elearning/show&id_common_label=-2');
}
}

?>


When I clicked the 'Labels' button from the learning interface, it showed this error:

The requested URL /appLms/elearning/show&id_common_label=-2 was not found on this server.


What is the problem?

alfa24
FormaLms Expert
Posts: 118
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: LabelLmsController.php missing file

Post by alfa24 » Wed Mar 28, 2018 10:25 am

you should use the jump to built in feature to correctly handle mvc paths
I'm Jasmines, the One

tempuser
FormaLms Expert
Posts: 76
Joined: Wed Feb 28, 2018 8:26 am

Re: LabelLmsController.php missing file

Post by tempuser » Wed Mar 28, 2018 10:34 am

Worked, thank you.

Post Reply