Jump to content
  • 0

How To Use A Custom File Name Of The Template File?


Question

3 answers to this question

Recommended Posts

  • 0
Posted
  On 7/16/2015 at 1:05 AM, ty0716 said:

System default is to use controller.function.pdt file as template file.

 

 

But i want to use a other name's file。

 

for example: http://domain.com/client/main/edit     will use   views/default/client_main_edit.pdt  .  How to use a other name's file .eg: client_main_edit1.pdt  or client_main_edit2.pdt

 

 

you should client.php controller file , in the end of the function edit() you can add something like

 

$this->partial("client_main_edit2") ;

  • 0
Posted
  On 7/16/2015 at 4:08 AM, naja7host said:

you should client.php controller file , in the end of the function edit() you can add something like

 

$this->partial("client_main_edit2") ;

          public function add() {
                if($department->id==2){
			$this->partial("client_tickets_addtest");
		}

why still show default template file ? 

  • 0
Posted
  On 7/16/2015 at 6:38 AM, ty0716 said:
          public function add() {
                if($department->id==2){
			$this->partial("client_tickets_addtest");
		}

why still show default template file ? 

 

 

 

what you mean by default template ? structure.pdt ? or client_main_edit.pdt ?

 

if you want to use a special structure view pdt file use this code

$this->structure_view = "your_new_structure_view";

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...