K
K
k-22017-10-17 17:29:37
CodeIgniter
k-2, 2017-10-17 17:29:37

How to call controller function from view in codeigniter?

from the view, you need to call the controller function, but it writes an error. How to do it?

<input name="login" value="<?php $this->dat('login'); ?>"><br>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-10-17
@Maksclub

Everything that the controller sends there is called in the view, pass it to the view and it will be there
No need to be smart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question