#402 ✓resolved
Richard Toohey

expTheme.php - looks for loginmodule instead of loginController

Reported by Richard Toohey | November 18th, 2011 @ 02:01 AM | in 2.0.3 (closed)

Migrating old site - which had code like this:


In the docs ...


... it suggests that I should use something like this:

// hard coding a controller
   "controller"=>"links", // the name of controller (exp2 mod) to display


So I try that for the login:


Doesn't work.

Tracked it down to framework/core/subsystems/expTheme.php

607     public static function showModule($module,$view="Default",$title="",$source=null,$pickable=false,$section=null,$hide_menu=false,$params=array()) {
608         if (!AUTHORIZED_SECTION && $module != 'navigationmodule' && $module != 'loginmodule' && $module != 'loginController') return;

In line 608 I added the loginController part - success ... I can hard-code the login module.

It also means the example code (in the simple theme) works:



Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Bug Tracker for Exponent CMS

Shared Ticket Bins

People watching this ticket