Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

where ist the BASEDIR defined?

Asked Modified Viewed 800 times
C
chrome511
C
sorry for my english.
i´m from germany
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
asked
Member

hello
where ist the BASEDIR defined?
how is the basedir variable used to get in the root folder?
Edited by chrome511 on 15-08-2021 11:48,
0 replies

9 posts

R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

C
chrome511
C
sorry for my english.
i´m from germany
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

$basedir is in the follwing files.
- \includes\classes\PHPFusion\Rewrite\RewriteDriver.php
- \includes\classes\PHPMailer\PHPMailer.php
- \includes\classes\PHPFusion\Rewrite\Permalinks.php
- \includes\autoloader.php

and $basedir = BASEDIR is in
- \includes\classes\PHPFusion\Rewrite\RewriteDriver.php

where is the main basedir path defined? or ist this the defined code for basedir?
 $baseDir = __DIR__.'/';
 $fullPath = $baseDir.$path.'.php';
 if (is_file($fullPath)) {
 require_once $fullPath;
 }

or is it defined in the RewriteDriver.php?

how is the basedir variable used to get in the root folder?
example: root_folder/path/path to root_folder
Edited by chrome511 on 15-08-2021 14:05,
0 replies
R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

BASEDIR and $baseDir is not the same.

BASEDIR constant which gives you root path of your PHPFusion installation is declared here https://github.com/PHPFusion/PHPFusio...r.php#L116

IDK why you need to know where is declared but I recommend do not modify it. Especially if you don't know that this BASEDIR and $baseDir is not the same...
0 replies
C
chrome511
C
sorry for my english.
i´m from germany
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

ok thanks
is it possible to use BASEDIR in an infusion to get in the base folder? how must i use BASEDIR (without a path after it) then?
only BASEDIR?

and is there any offline documentation of php-fusion?
Edited by chrome511 on 15-08-2021 14:51,
0 replies
R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

Quote

s it possible to use BASEDIR in an infusion to get in the base folder?

Ofc. that the point of this. Open any file and read code.

Also we have these constant https://github.com/PHPFusion/PHPFusio...nclude.php, so you don't have to write full path like this BASEDIR.'infusions/', just use INFUSIONS


Quote

and is there any offline documentation of php-fusion?

No. But I want to create better documentation. Current is not updated.
0 replies
C
chrome511
C
sorry for my english.
i´m from germany
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

is there any test script to show/output the basedir path?
0 replies
R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

You are working with PHP and I assume you have some knowledge. You should know how to print output. https://www.php.net/manual/en/functio...r-dump.php, https://www.php.net/manual/en/functio...on.print-r

This is not PHPFusion related thing and I'm not gonna explain PHP basics.
0 replies
C
chrome511
C
sorry for my english.
i´m from germany
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

will there be an offline documentation in the near future?
0 replies
R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

Probably no.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 9 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

C
C
sorry for my english.
i´m from germany
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
R
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet