I would pass two php variables from a codeigniter controller to a javascript function located to the head of my view. is it possible to do such thing?
Take the tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
yeah sure, just echo the javascript: | |||||||||||||||||||||
|
or just set in your controller your variables eg - in the controller
and then in the view in the javascript
| ||||
|