Empty/blank layout - Joomla! Forum - community, help and support


hi, i'm trying particular controller use specific layout, can't seem work:

code: select all

defined('_jexec') or die();

jimport('joomla.application.component.controller');

class componentsamplecontroller extends jcontroller
{

   function index()
   {
   }
   function display()
   {
      jrequest::setvar( 'layout', 'empty');
      parent::display();
   }
   
   function test() {
      
   }
}


i have set layout file in:

/templates/[current template in use/html/[com_component]/sample/default.php

any can offer appreciated.

defiant wrote:hi, i'm trying particular controller use specific layout, can't seem work:

code: select all

defined('_jexec') or die();

jimport('joomla.application.component.controller');

class componentsamplecontroller extends jcontroller
{

   function index()
   {
   }
   function display()
   {
      jrequest::setvar( 'layout', 'empty');
      parent::display();
   }
   
   function test() {
      
   }
}


i have set layout file in:

/templates/[current template in use/html/[com_component]/sample/default.php

any can offer appreciated.

is controller getting called?

ian





Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい