1, open the background online editing template function
Find a caches\configs\system.php file and find the ' tpl_edit ' = 0,
The system default is 0, turn on the online editing template function only need to change 0 to 1
2, Phpcms forbidden to contain {PHP tag edit, modify two files
One file is phpcms/modules/template/file.php
Will $code = str_replace (Array (' <? ', ' {php '), Array (' <? ', ' {php '), $code); Comment out
Another file is phpcms\modules\template\templates\file_edit_file.tpl.php
put function Check_form () {
//if (Findinpage ("{php)") {
//Alert ("Online template editing prohibits the submission of tags containing {php). ");
//return false;
//} else if (Findinpage ("<\?php")) {
//alert (' Online template editing prohibits the submission of tags containing <\?php. ');
//return false;
//} else {
//Myform.submit ();
// }
}
Comments out, this way you can edit the template online, for security purposes, it is not recommended.
Phpcms Background Online editing templates prohibit {PHP tag editing solution