print $innerContent outputting nothing

Permalink
I've done this fifty times without issue, but for some reason, I can't get my custom login page working in this instance.

My login page is getting wrapped by view.php, but print $innerContent is not outputting anything.

The only thing that I can think of is that the installation is running in a folder above the root: mydomain.com/demo

I've turned the cache off...

Has anyone else run into this before?

Tags:

BigBobbyD
View Replies: View Best Answer
MichaelG replied on at Permalink Best Answer Reply
MichaelG
got a screenshot of your exact code? I know I do the simple stuff like that a thousand times, but I've often overlooked the stupidest thing.
BigBobbyD replied on at Permalink Reply
BigBobbyD
Thanks, Michael G.

To me, this is really weird...

I got it working by creating a custom login.php in my theme's folder, but it is disturbing to me that I couldn't make this work. I even moved the site back to root to see if that made a difference, and it still didn't work.

From site_theme_paths:
<?php   
defined('C5_EXECUTE') or die("Access Denied.");
$v = View::getInstance();
$v->setThemeByPath('/login', "movie_trivia");
/* 
   you can override system layouts here  - but we're not going to by default...


view.php:
<?php 
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php');
?>
<?php
echo $innerConent;
?>
   </div>
</div>
</div>
</body>
</html>


I know it's sloppy closing tags I opened in my header include, but whatevs...
MichaelG replied on at Permalink Reply
MichaelG
echo $innerConent;


is this an exact copy/paste? If so.. you've misspelled "innerContent"
BigBobbyD replied on at Permalink Reply
BigBobbyD
OMG.

<script>

function slapsForehead() {
head.slap;
alert('What a dumbass!');
}

</script>
MichaelG replied on at Permalink Reply
MichaelG
Hahaha - thus why you chose my original post as "best answer" haha. Trust me - I do it all the time!!