Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pquery
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
pquery
Commits
3c8c11a1
Commit
3c8c11a1
authored
Nov 06, 2011
by
Taddes Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moves test files to separate folder.
parent
51ba7151
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
pquery.template.php
pquery.template.php
+1
-1
test/index.php
test/index.php
+3
-3
test/templates/test.tpl
test/templates/test.tpl
+1
-0
No files found.
pquery.template.php
View file @
3c8c11a1
...
@@ -56,7 +56,7 @@ class pQueryTemplate extends pQuery implements pQueryExtension {
...
@@ -56,7 +56,7 @@ class pQueryTemplate extends pQuery implements pQueryExtension {
*/
*/
static
function
set_root
(
$path
,
$relative
=
true
)
{
static
function
set_root
(
$path
,
$relative
=
true
)
{
self
::
$include_path
=
array
();
self
::
$include_path
=
array
();
self
::
add_root
(
$path
);
self
::
add_root
(
$path
,
$relative
);
}
}
/**
/**
...
...
index.php
→
test/
index.php
View file @
3c8c11a1
<?php
<?php
include_once
'../debug.php'
;
include_once
'../
../
debug.php'
;
include_once
'pquery.php'
;
include_once
'
../
pquery.php'
;
__p
::
require_plugins
(
'array'
,
'sql'
,
'template'
);
__p
::
require_plugins
(
'array'
,
'sql'
,
'template'
);
// Array test
// Array test
...
@@ -19,7 +19,7 @@ $results = _arr($results);
...
@@ -19,7 +19,7 @@ $results = _arr($results);
debug($results);*/
debug($results);*/
__tpl
::
set_root
(
'templates'
);
__tpl
::
set_root
(
'templates'
,
false
);
$tpl
=
_tpl
(
'test.tpl'
);
$tpl
=
_tpl
(
'test.tpl'
);
debug
(
$tpl
->
content
);
debug
(
$tpl
->
content
);
...
...
test/templates/test.tpl
0 → 100644
View file @
3c8c11a1
testcontent
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment