24 $action->lay->template =
'';
27 $packSession = $action->read(
"RSPACK_" .
$packName);
28 $action->lay->template =
'';
29 $action->lay->noparse =
true;
33 foreach ($packSession as $resource) {
34 if ($resource[
"needparse"]) {
35 $action->lay->noparse =
false;
36 if (preg_match(
"/([A-Z_-]+):([^:]+):{0,1}[A-Z]{0,1}/", $resource[
"ref"], $reg)) {
38 if ($lfile) $action->lay->template.= file_get_contents($lfile);
39 else $nfFile[] = $resource[
"ref"];
42 $action->lay->template.= file_get_contents($resource[
"ref"]);
47 if (preg_match(
"/([A-Z_0-9-]+):([^:]+):{0,1}[A-Z]{0,1}/", $layout, $reg)) {
48 $action->lay->template =
'';
50 if ($lfile) $action->lay =
new Layout($lfile, $action);
52 if (preg_match(
"/^css/", $layout, $reg) && strpos($layout,
'..') ===
false) {
54 if (is_file($layout)) $action->lay =
new Layout($layout, $action);
59 if ($action->lay->template ==
'') {
67 } elseif (
$type ==
'js') {
70 if (count($nfFile) > 0) {
71 header(sprintf(
"HTTP/1.0 404 %s layout [%s] not found",
$type, implode(
" ,", $nfFile)));
Layout is a template generator.
getLayoutFile($app, $layfile)
core_css(Action &$action)
static getArgument($k, $def= '')