yii2在使用的时候,访问控制器的时候,如果控制器的名称是驼峰命名法,那访问的url中要改成横线的形式。例如: 最近在做某渠道的直连的时候,他们提供的文档上明确指出接口的形式: 刚开始以为YII2中肯定有这样的设置,然后就去google了下,发现都说不行,自己去看了下,果然,框架里面直接是写死的:( ...
分类:
其他好文 时间:
2017-10-30 11:19:26
阅读次数:
413
仅供学习,共同进步!1.准备工作hostnamemysql修改主机名vi/etc/sysconfig/network永久修改主机名yuminstallgccgcc-c++安装gccyuminstalllrzsz-y安装rzuname-runame-m2.准备安装包mkdir/hose/oldboy/toolscd/hose/oldboy/toolsrz-ycmake-2.8.8.tar.gzls-ltarxfcmake-2.8.8.tar...
分类:
数据库 时间:
2017-10-28 11:12:22
阅读次数:
246
Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen. Follow up:Wha ...
分类:
其他好文 时间:
2017-10-25 21:18:37
阅读次数:
142
Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a numbe ...
分类:
其他好文 时间:
2017-10-23 21:40:11
阅读次数:
151
1015. Reversible Primes (20) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue 时间限制 400 ms 时间限制 400 ms 内存限制 65536 kB 内存限制 65536 kB 代 ...
分类:
其他好文 时间:
2017-10-23 01:03:16
阅读次数:
131
Love means never having to say you are sorry. 爱就是永远不必说对不起。 If there is ture love, you will never do things that would irritate your lover. If there is ...
分类:
其他好文 时间:
2017-10-15 15:16:21
阅读次数:
209
Description The main land of Japan called Honshu is an island surrounded by the sea. In such an island, it is natural to ask a question: “Where is the ...
分类:
其他好文 时间:
2017-10-13 12:44:58
阅读次数:
199
2038: [2009国家集训队]小Z的袜子(hose) Description 作为一个生活散漫的人,小Z每天早上都要耗费很久从一堆五颜六色的袜子中找出一双来穿。终于有一天,小Z再也无法忍受这恼人的找袜子过程,于是他决定听天由命……具体来说,小Z把这N只袜子从1到N编号,然后从编号L到R(L 尽管 ...
分类:
编程语言 时间:
2017-10-11 18:10:20
阅读次数:
189
Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjac ...
分类:
其他好文 时间:
2017-10-11 16:56:06
阅读次数:
148
On an NxN chessboard, a knight starts at the r-th row and c-th column and attempts to make exactly K moves. The rows and columns are 0 indexed, so the ...
分类:
其他好文 时间:
2017-10-09 00:27:39
阅读次数:
333