Fixes in login
This commit is contained in:
parent
6b20d046d1
commit
9f21c3a87e
14 changed files with 331 additions and 2814 deletions
|
|
@ -15,7 +15,7 @@ class Templates {
|
|||
public $yes_layout=false;
|
||||
|
||||
public $layout='';
|
||||
|
||||
|
||||
public function __construct($search_dir) {
|
||||
|
||||
$this->search_dir=$search_dir;
|
||||
|
|
@ -28,9 +28,7 @@ class Templates {
|
|||
|
||||
$template='';
|
||||
|
||||
$this->yes_layout=0;
|
||||
|
||||
//$yes_template=false;
|
||||
$this->yes_layout=false;
|
||||
|
||||
$z=0;
|
||||
|
||||
|
|
@ -48,8 +46,6 @@ class Templates {
|
|||
|
||||
if($this->yes_layout) {
|
||||
|
||||
//$sections_layout=implode("\n", $this->section_content);
|
||||
|
||||
$final_template=$this->load_template($this->layout, $args);
|
||||
|
||||
echo $final_template;
|
||||
|
|
@ -110,12 +106,6 @@ class Templates {
|
|||
echo $this->section_content[$section_name];
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
echo $section_name.' dont have any content';
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -131,7 +121,7 @@ class Templates {
|
|||
}
|
||||
|
||||
/**
|
||||
* Method for finisha section in a template with a layout
|
||||
* Method for finish section in a template with a layout
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -149,5 +139,17 @@ class Templates {
|
|||
return html_entities($str);
|
||||
|
||||
}
|
||||
|
||||
public function make_url($module, $script='', $args=[]) {
|
||||
|
||||
return \PhangoApp\PhaRouter\Url::make_url($module, $script, $args);
|
||||
|
||||
}
|
||||
|
||||
public function make_media_url($file) {
|
||||
|
||||
return \PhangoApp\PhaRouter\Url::make_media_url($file);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue