* Replace $this->config with $config in view files.
This commit is contained in:
@@ -4,7 +4,7 @@ js::import($jsRoot . 'jquery/validation/min.js');
|
||||
?>
|
||||
<style>label.error {color:red}</style>
|
||||
<script>
|
||||
requiredFields = "<?php echo isset($this->config->{$this->app->getModuleName()}->{$this->app->getMethodName()}->requiredFields) ? $this->config->{$this->app->getModuleName()}->{$this->app->getMethodName()}->requiredFields : '';?>";
|
||||
requiredFields = "<?php echo isset($config->{$this->app->getModuleName()}->{$this->app->getMethodName()}->requiredFields) ? $config->{$this->app->getModuleName()}->{$this->app->getMethodName()}->requiredFields : '';?>";
|
||||
$(document).ready(function()
|
||||
{
|
||||
if(typeOf requiredFields == 'unDefined') return;
|
||||
|
||||
Reference in New Issue
Block a user