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
be0b6542
Commit
be0b6542
authored
Dec 05, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed commented code from test index.
parent
9468e05b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
13 deletions
+38
-13
test/config.php
test/config.php
+37
-0
test/index.php
test/index.php
+1
-13
No files found.
test/config.php
0 → 100644
View file @
be0b6542
<?php
/**
* Base and plugin config for pQuery utility framework.
*
* @package pQuery
*/
/**
* Indicates whether the framework is in debug mode, which right
* now only means that occuring errors will be displayed or not.
*
* @var bool
*/
define
(
'DEBUG'
,
true
);
/**
* The root location of the pQuery framework folder, used for file
* inclusions. The path is absolute and should end with a slash ('/').
*
* @var string
*/
define
(
'PQUERY_ROOT'
,
'D:/xampp/htdocs/pquery/'
);
/**
* Abstract class containing plugin configs.
*/
abstract
class
pQueryConfig
{
/**
* Indicates whether errors occuring in the framework will
* terminate the script.
*
* @var bool
*/
const
ERROR_IS_FATAL
=
true
;
}
?>
\ No newline at end of file
test/index.php
View file @
be0b6542
<?php
<?php
include_once
'../../simpletest/autorun.php'
;
include_once
'../../simpletest/autorun.php'
;
include_once
'
../pquery.
config.php'
;
include_once
'config.php'
;
include_once
PQUERY_ROOT
.
'pquery.php'
;
include_once
PQUERY_ROOT
.
'pquery.php'
;
function
is_test_file
(
$filename
)
{
function
is_test_file
(
$filename
)
{
...
@@ -11,16 +11,4 @@ function is_test_file($filename) {
...
@@ -11,16 +11,4 @@ function is_test_file($filename) {
foreach
(
array_filter
(
scandir
(
'.'
),
'is_test_file'
)
as
$file
)
foreach
(
array_filter
(
scandir
(
'.'
),
'is_test_file'
)
as
$file
)
include_once
$file
;
include_once
$file
;
//include_once '../pquery.php';
//__p::require_plugins('array', 'sql', 'template');
// SQL test
/*include_once '../../debug.php';
$sql = _sql("select * from posts where slug = '[slug]'")
->set(array('slug' => 'contact'));
$results = $sql->fetch_all('object');
$results = _arr($results);
debug($results);*/
?>
?>
\ 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