Another problem. Function delete doesn't works!
When I try to delete record, press button [delete], I receive
a message "Invalid token!".
The first line of function delete() in controllers->hello.php is JRequest::checkToken() or die('Invalid token!');
I understand that the checkToken is fail and execute second part "die".
If I comment first line of delete() /not check for token/,
it's works, the record has been deleted, but I beleve it's not best idea .
I have the same line /checkToken/ in function Save() in the same file, but save is working perfectly, the checkToken is success.
For pity function delete() doesn't works, and I really don't know where is the problem.
Joomla error level is set to development -> no errors, no warnings and no notices.
Line by line reading was not successfully this time...
In views->hello->default.php and views->hellos->default.php at the end
of the two files, there is <?php echo JHtml::_('form.token');?>
Can somebody let me an idea how to find the problem?
P.S. If I change first line from
JRequest::checkToken() or die('Invalid token!');
to
$this->checkToken() or die('Invalid token!');
I receive:
Warning
The security token did not match. The request was aborted to prevent any security breach. Please try again.