* change hide footer and header not use hook.

This commit is contained in:
wangyidong
2012-08-28 09:29:32 +00:00
parent 3891ce2ac3
commit b060a6bb41
8 changed files with 42 additions and 16 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ js::import($jsRoot . 'jquery/validation/min.js');
?>
<style>label.error {color:red}</style>
<script>
requiredFields = "<?php echo $this->config->{$this->app->getModuleName()}->{$this->app->getMethodName()}->requiredFields;?>";
requiredFields = "<?php echo isset($this->config->{$this->app->getModuleName()}->{$this->app->getMethodName()}->requiredFields) ? $this->config->{$this->app->getModuleName()}->{$this->app->getMethodName()}->requiredFields : '';?>";
$(document).ready(function()
{
for(i in requiredFields)