-
-
Save LostKobrakai/5ace0b2082e9225b7596dceae0fab996 to your computer and use it in GitHub Desktop.
Add urlSegments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Migration_2015_10_21_12_13 extends Migration { | |
public static $description = "Add specific urlSegments to basic-page"; | |
public function update() { | |
$t = $this->templates->get('basic-page'); | |
$t->urlSegments(array( | |
'segment', | |
'segment2' | |
)); | |
$t->save(); | |
} | |
public function downgrade() { | |
$t = $this->templates->get('basic-page'); | |
$t->urlSegments(true); | |
$t->save(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment