예제 #1
0
 public function getLayout()
 {
     $layout = parent::getLayout();
     if (version_compare(JVERSION, '3.0', 'lt')) {
         $layout .= '.j2';
     }
     return $layout;
 }
예제 #2
0
 /**
  * Test JViewLegacy::getLayout()
  *
  * @since   11.3
  *
  * @return  void
  */
 public function testGetLayout()
 {
     $this->assertEquals('default', $this->class->getLayout());
     TestReflection::setValue($this->class, '_layout', 'test1');
     $this->assertEquals('test1', $this->class->getLayout());
 }