Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-04-2014, 12:44 PM
FounderSim FounderSim is offline
Member
 
Join Date: Sep 2014
Posts: 65
Gender: Male
Credits: 7,883
FounderSim is on a distinguished road
Default No errors, just a blank page?

So my tester/explore page works then but when I add the method investigate, I can't even access the tester/explore page. Its just blank. I have checked and rechecked both the controller and view for sytanx errors and can't seem to find any. I noticed sometimes if I will not be alerted of any error if I dont pass two variables to certain functions in mysidia so I checked all them as well because that usually results in a blank page as well.

The Controller:
Code:
	public function investigate(){
		$mysidia = Registry::get("mysidia"); 
		
		$explore_var = $mysidia->session->fetch("explorer");
		
		if($explore_var == 0)
		{
			$this->setField("explorer", new String("Stupid Hacker..."));
		}
		else
		{
			$mysidia->session->assign("explorer_step", 2);
			$stmt = $mysidia->db->select("explorer", array("eType"), "eid={$explore_var}");	
			$result = $stmt->fetchObject();

			if($result->eType == "item")
			{
				$this->setField("explorer", new String($result->eType));
			}
			elseif($result->eType == "coin")
			{
				$this->setField("explorer", new String($result->eType)));
			}
			elseif($result->eType == "pet")
			{
				$this->setField("explorer", new String($result->eType));
			}
			else
			{
				$this->setField("explorer", new String("boo"));
			}
		}
	}

The View
Code:
	public function investigate(){
		$mysidia = Registry::get("mysidia");
		$document = $this->document;  
		
		
        $document->setTitle("TEST");
		
		
		$emessages = $this->getField("explorer");
		
		
		switch($emessages)
		{
//manual edit of comments during paist of this code =)
			case "item":
				$document->add(new Comment('Ooh/a>'));
				break;
			case "pet":
				$document->add(new Comment('oh/a>'));
				break;
			case "coin":
				$document->add(new Comment('Ooh">Continue</a>'));
				break;
			default:
				$document->add(new Comment($emessages));			
		}
	}
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank page with x10Hosting bisexuowl Questions and Supports 0 09-22-2015 09:42 PM
Blank profile page? gloryKAT Questions and Supports 3 02-08-2015 04:53 PM
Blank Inventory Page ilrak Questions and Supports 5 09-23-2014 09:03 PM
Blank Page Samuel hunter Questions and Supports 8 01-01-2013 04:08 PM
Blank page LilPixie Questions and Supports 2 02-20-2009 09:59 PM


All times are GMT -5. The time now is 12:44 AM.

Currently Active Users: 1006 (0 members and 1006 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636