I am using CakePHP 2.X latest. Facing unique error.
This is error i am getting:
Warning (2): call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object [CORE/Cake/Utility/ObjectCollection.php, line 132]
Warning (2): call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object [CORE/Cake/Utility/ObjectCollection.php, line 132]
Fatal error: Call to a member function link() on a non-object in /data/html/savaganza/app/View/Elements/header.ctp on line 21
I am simply using Html in my header
element
Line 21: <?php echo $this->Html->link('Categories', array('controller'=>'categories') ); ?>
This Header
element is calling from all views this is giving me error for some view, i don't know why but its working fine for some views.
Efforts:
- When i change
$this->Html
to$this->html
it works why??? - When i tried
var_dump($this->Html)
it givesstring(58) "�H��
.
Its working in my loacal server but not in live server.
Suggest me please.