View Single Post
  #5  
Old 09-12-2016, 02:43 PM
Demonwolf37's Avatar
Demonwolf37 Demonwolf37 is offline
Trans with a plan
 
Join Date: Sep 2016
Posts: 21
Gender: Male
Credits: 4,865
Demonwolf37 is on a distinguished road
Default

I'll probably just do it by hand then. What should I change $adopt->getType() to? Assuming that I use 'levelname', would it be something like $levelname->getType(), or am I way off here?

Also, how exactly do you add additional levels? Right now I'm seeing this, and I can only add 3 levels. Do I just rewrite the level cap in one of the php files?
"This page will allow you to create new level(s) for 0_testAdoptable2. Right now there are 0 levels that exist for 0_testAdoptable2, the level cap is 3. That means that you can create up to 3 levels for 0_testAdoptable2. right now."

When adding the new field in class_adoptlevel, would it be something like this?

public function getLevelname($fetchMode = ""){
if($fetchMode == Model::MODEL) return new Adoptable($this->lvlname);
else return $this->lvlname;
}


And then add this with the others at the top?

protected $lvlname;

I'm not great at code, so I'm just kind of copying and modifying what was already there for the others...

And I'm not really sure what to do with level.php? Just add $current level = $mysidia->input->post("lvlname"); ????
__________________
I keep coming back to my dragons, even though I know there's nothing to do with them :/
Reply With Quote