D
D
Dmitry Bay2014-12-11 12:45:26
Yii
Dmitry Bay, 2014-12-11 12:45:26

URL manager yii does not generate CreateUrl, why?

Hello. Something shut up in this question:
There is a rule:

'<view:(about|partners|jobs|history|our_contacts)>'=>'site/page',

There is an output url
<?=  CController::createAbsoluteUrl('/site/page', array('view'=>our_contacts))  //генерирует /our_contacts ?>
<?=  CController::createAbsoluteUrl('/site/page', array('view'=>test)) // генерирует /test ?>

But at the same time
site.ru/our_contacts works
site.ru/test doesn't work
That's the question - why?

Answer the question

In order to leave comments, you need to log in

9 answer(s)
D
Dmitry Bay, 2014-12-11
@kawabanga

The rule should have looked like this

'<view:(agreement|vendors|partners|help|about|howtobuy)>'=> array('site/page' , 'matchValue'=>true),

E
Eugene, 2014-12-11
@Nc_Soft

<view:(about|partners|jobs|history|our_contacts)>
I don’t see something here test, probably that’s why it doesn’t work

E
evgeniy_lm, 2017-04-12
@evgeniy_lm

The hard disk "ruins" the work of the computer in principle. It doesn't matter if you distribute torrents or not. If you want the HDD to live for a long time, do not turn on the computer, but keep in mind that modern HDDs are morally aging much faster than physically, even when working 24/7

J
John Smith, 2017-04-12
@ClearAirTurbulence

Coffins, as answered below.
Not much, as also answered below.
With HDD, as with almost any other electronics today - be it with mechanics, be it without - the situation is as follows:
There is also such a picture:
I.e. if he did not die immediately, then most likely he would not die for quite some time; but as you "age" the likelihood of death increases. At the same time, a situation often arises when a screw dies, on which there was almost no load, and a file dump with torrents, spinning 24/7, is more alive than all the living.
By the way, if the PC is not turned off and the disk is not allowed to "sleep", it (ceteris paribus) will live longer (statistically), due to the minimization of start-stop cycles.
For overnight reading:
https://www.backblaze.com/blog/how-long-do-disk-dr...
storagemojo.com/2007/02/19/googles-disk-failure-ex...

K
Konstantin, 2017-04-12
@kostya_vtomske

ruins the disk overload and sudden shutdown. When at the moment (x) the head slides over the surface making a scratch. And then micro dust scratches more and more over time, until there are too many troubles

D
dmfun, 2017-04-12
@dmfun

Loads decently, consumes resources. The head goes back and forth, fragmentarily gives files. With sequential recoil, the load would be less. Well, if there are a lot of small files, then this is in any case bad, if they are large, then it’s not so scary.
By the way, there is no point in guessing, there is SMART info, look at it and that's it. If the screw is normal, then the indicators will be good, almost unchanged. If not, you will see for yourself. If the screw is potentially faulty, then its life will be shortened. There are screws that have been working for 20 years, well, they will work for 15, so it's okay.

V
Valentine, 2017-04-12
@vvpoloskin

Experience has shown that the resource, like any mechanism with moving and rotating parts, is actively consumed. I had an external USB HDD connected to a router with running torrents, it worked around the clock, a little more than six months was enough.
In 24/7 systems, hard drives are consumables. Buy another HDD, store your data on it, and distribute the torrent from another.

A
Alexander, 2017-04-24
@Survtur

And I wouldn't worry. My experience in 20 years of owning my own computers is that not a single HDD has died. Well, maybe he died when the disks were less than 1 gigabyte.
Yes, and 80 GB per day for reading is ridiculous.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question