Page 2 of 2

Re: LabelLmsController.php missing file

Posted: Tue Mar 27, 2018 1:26 pm
by tempuser
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?

Re: LabelLmsController.php missing file

Posted: Tue Mar 27, 2018 1:31 pm
by alfa24
Why don't you open a new thread for each request?

Re: LabelLmsController.php missing file

Posted: Tue Mar 27, 2018 1:32 pm
by max
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

Re: LabelLmsController.php missing file

Posted: Tue Mar 27, 2018 3:50 pm
by alfa24
Solution:
create a new mvc module with only a show controller that would redirect to elearning/show&id_common_label=-2
Done.

Re: LabelLmsController.php missing file

Posted: Tue Mar 27, 2018 4:54 pm
by tempuser
May you please share this file?

Re: LabelLmsController.php missing file

Posted: Wed Mar 28, 2018 10:04 am
by tempuser
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?

Re: LabelLmsController.php missing file

Posted: Wed Mar 28, 2018 10:25 am
by alfa24
you should use the jump to built in feature to correctly handle mvc paths

Re: LabelLmsController.php missing file

Posted: Wed Mar 28, 2018 10:34 am
by tempuser
Worked, thank you.

Re: LabelLmsController php missing file

Posted: Sun Aug 04, 2019 8:32 am
by alfa24
KamHaWay wrote:
Sun Aug 04, 2019 7:33 am
app/config/config.php is missing.

I checked everywhere and also I downloaded the package again. maybe the package got incomplete but this wasnt the case.

Anybody has similar problems? Or a solution for this?
What are you referring to?