Kijin Sung
df9e990fdc
Fix fatal error when module.xml contains invalid menu reference
...
https://xetown.com/questions/1588670
2021-07-03 16:30:39 +09:00
Kijin Sung
741a714abd
Set standalone attribute to 'auto' if new class syntax is used in module.xml
...
- 새로 추가된 클래스 문법 사용시 standalone 속성 기본값은 true가 아닌 auto로 지정
- standalone 속성의 의미는 아래와 같음
- true: 항상 접근 허용 (기존 방식으로 선언한 액션의 기본값)
- false: mid가 소속 모듈과 일치하거나, admin 모듈인 경우에만 접근 허용
- auto: module 또는 mid가 소속 모듈과 일치하거나, admin 모듈인 경우에만 접근 허용
(즉, false와 비슷하지만 exec_json 함수 등에서 module+act로 호출하는 경우에는
mid가 없더라도 module만 일치하면 호출할 수 있도록 허용하여 개발 편의를 높임)
- 단, global_route 속성이 있는 경우 standalone 속성 기본값은 true임
(전역 짧은주소는 mid 없이 호출될 수밖에 없으므로)
2021-04-20 21:45:21 +09:00
Kijin Sung
73695ccdd2
For backward compatibility, allow both GET and POST if an action does not specify method
2021-04-12 22:21:58 +09:00
Kijin Sung
62d9befb0d
Support custom classes in module.xml
2021-04-12 21:03:03 +09:00
Kijin Sung
325ace58e0
Reorganize method/route parser order
2020-10-27 21:39:36 +09:00
Kijin Sung
c920f6dca4
Refine default allowed methods
2020-10-27 21:38:26 +09:00
Kijin Sung
c9cf1a5bc5
Allow both GET and POST for actions that aren't proc
2020-10-27 20:43:15 +09:00
Kijin Sung
12a8671065
Fix #1424 incorrect handling of multi-method (GET|POST) actions
2020-10-19 13:56:46 +09:00
Kijin Sung
13ea096cd4
Remove use_ssl attribute from module.xml
2020-07-03 00:50:14 +09:00
Kijin Sung
e1df71bc38
Separate common methods into BaseParser class
2020-06-29 11:31:11 +09:00
Kijin Sung
1bb7248e3e
Add tests for Router::getURL() and Router::parseURL()
2020-06-22 00:52:51 +09:00
Kijin Sung
67d4217052
Set default language if lang_type is not available
2020-06-22 00:04:08 +09:00
Kijin Sung
c8a6b8de79
Support global routes
2020-06-18 16:36:27 +09:00
Kijin Sung
5fa72f8629
Add 404 error handler and update permission data structure
2020-06-18 14:13:23 +09:00
Kijin Sung
b5740052fc
Move SSL redirection logic to Context::init()
2020-06-17 22:25:40 +09:00
Kijin Sung
a814b4e334
Improve parsing of route definitions and deleted vars
2020-06-17 12:33:21 +09:00
Kijin Sung
7ac27fffce
Reorganize type shortcuts
2020-06-16 23:24:47 +09:00
Kijin Sung
a2bd361737
Implement route priority
2020-06-16 21:33:26 +09:00
Kijin Sung
bf8d2c8b09
Improve handling of multiple routes per action
2020-06-13 11:48:58 +09:00
Kijin Sung
522e3af8c1
Remove unnecessary 'i' modifier in variable regexp
2020-06-13 01:38:23 +09:00
Kijin Sung
1bf5b4c240
Change syntax for specifying multiple routes for the same action
2020-06-13 00:37:59 +09:00
Kijin Sung
f02c4aa4c4
Remove object return type declaration for compatibility with PHP < 7.2
2020-06-12 23:53:09 +09:00
Kijin Sung
eb2c9d0aed
Spaces to tabs
2020-06-12 23:49:33 +09:00
Kijin Sung
2d1a7ec432
Add ability to parse routes into regexp
2020-06-12 23:19:23 +09:00
Kijin Sung
7cf17bc43f
Implement SimpleXML parsers for info.xml and module.xml
2020-06-12 22:41:18 +09:00