Online Forum To Support Coders With Technical Assistance - Read Write Execute

how can we pass variables from view to element in cakephp

Ankit Agrawal
Ankit Agrawal
Published on October 8, 2015 · 1 min read

we can set param while calling element in view

<?php $this->element('element_name', array('var_name' => $var)); ?>
Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article How to use editor in wordpress Next Article → what is “Doctype” in html