Пример #1
0
 /**
  * Test JViewLegacy::setLayout()
  *
  * @since   11.3
  *
  * @return  void
  */
 public function testSetLayout()
 {
     $this->assertAttributeEquals('default', '_layout', $this->class);
     $this->class->setLayout('test');
     $this->assertAttributeEquals('test', '_layout', $this->class);
     $this->assertAttributeEquals('_', '_layoutTemplate', $this->class);
     $this->class->setLayout('-:test2');
     $this->assertAttributeEquals('test2', '_layout', $this->class);
     $this->assertAttributeEquals('-', '_layoutTemplate', $this->class);
 }
Пример #2
0
 /**
  * Set the layout for the view
  *
  * @param string $layout The layout to set
  *
  * @return AppView The view itself to allow chaining
  *
  * @since 1.0.0
  */
 public function setLayout($layout)
 {
     parent::setLayout($layout);
     return $this;
 }