After reading the source code of typecho, the structure is still quite compact. it seems that there is a heavy java object design idea, but there is a lot of doubt about the route table settings. The current statement basically fixed this structure. why not let users configure it? for example, the route table exists in a certain... after reading the source code of typecho, this structure is still quite compact and seems to have a heavy java object design idea.
However, there is a lot of doubt about the route table settings.
The current statement is basically to fix this structure. why not let users configure it? for example, you can save a route table in a configuration file or implement the automatic routing function. Is it to keep it simple?
Now, if I want to do some new development, it seems that only the plug-in method is implemented.
Let's not talk about this question.
My problem is, for example, the following route table
'Attachment' =>
array (size=6) 'url' => string '/attachment/[cid:digital]/' (length=26) 'widget' => string 'Widget_Archive' (length=14) 'action' => string 'render' (length=6) 'regx' => string '|^/attachment/([0-9]+)[/]?$|' (length=28) 'format' => string '/attachment/%s/' (length=15) 'params' => array (size=1) 0 => string 'cid' (length=3)
After reading the code, it seems that the url field is not used, so is it just to prompt that the link is in this mode? Similar to the annotation function
I have neglected some of the functions, but I have some trouble in understanding them.
Reply content:
After reading the source code of typecho, this structure is still quite compact and seems to have a heavy java object design idea.
However, there is a lot of doubt about the route table settings.
The current statement is basically to fix this structure. why not let users configure it? for example, you can save a route table in a configuration file or implement the automatic routing function. Is it to keep it simple?
Now, if I want to do some new development, it seems that only the plug-in method is implemented.
Let's not talk about this question.
My problem is, for example, the following route table
'Attachment' =>
array (size=6) 'url' => string '/attachment/[cid:digital]/' (length=26) 'widget' => string 'Widget_Archive' (length=14) 'action' => string 'render' (length=6) 'regx' => string '|^/attachment/([0-9]+)[/]?$|' (length=28) 'format' => string '/attachment/%s/' (length=15) 'params' => array (size=1) 0 => string 'cid' (length=3)
After reading the code, it seems that the url field is not used, so is it just to prompt that the link is in this mode? Similar to the annotation function
I have neglected some of the functions, but I have some trouble in understanding them.
Do you mean the whole task is only for attachment?
The whole is useful to URLs.