projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Process/Php7.php
[Pman.Core]
/
JsTemplate.php
diff --git
a/JsTemplate.php
b/JsTemplate.php
index
8ad31a3
..
f138791
100644
(file)
--- a/
JsTemplate.php
+++ b/
JsTemplate.php
@@
-40,10
+40,12
@@
class Pman_Core_JsTemplate extends Pman {
}
}
- function get()
+ function get(
$v, $opts=array()
)
{
{
+
+ $this->sessionState(0);
// get the modules.
// get the modules.
-
//
header('Content-type: text/javascript');
+ header('Content-type: text/javascript');
$ff = HTML_FlexyFramework::get();
$ff = HTML_FlexyFramework::get();
@@
-58,7
+60,7
@@
class Pman_Core_JsTemplate extends Pman {
foreach($mods as $mod )
{
$prefix = $mod == $pr ? "" : "{$pr}.";
foreach($mods as $mod )
{
$prefix = $mod == $pr ? "" : "{$pr}.";
- var_dump($prefix);
+
//
var_dump($prefix);
$pdir = $mod == $pr ? '' : ($pr .'/') ;
$dir = $this->rootDir .'/'.$pdir . $mod . '/jtemplates';
$pdir = $mod == $pr ? '' : ($pr .'/') ;
$dir = $this->rootDir .'/'.$pdir . $mod . '/jtemplates';
@@
-111,7
+113,7
@@
class Pman_Core_JsTemplate extends Pman {
$out= array();
$out= array();
- $head = "$name = function(t)\n{\n var ret =
[]
;\n\n";
+ $head = "$name = function(t)\n{\n var ret =
''
;\n\n";
$funcs = array();
// do not allow nested functions..?
$funcs = array();
// do not allow nested functions..?