T
T
tigra2016-08-31 11:14:17
Yii
tigra, 2016-08-31 11:14:17

How to check broken link in yii2?

There is a link, I somehow need to check the status of the transition to it, i.e. whether such a thing exists or not.
Are there any standard tools in yii2? It seems to me that I saw similar methods somewhere in the Url helper, but I can’t google it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2016-08-31
@mhthnz

www.yiiframework.com/doc-2.0/yii-validators-urlval...
Well, if you have links with get parameters and so on, then send a request there and see the response code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question