Waylander
|
| Posted: 03/30/2003, 5:48 PM |
|
Using CodeCharge Studio 2.0 - Converted/imported a Code Charge app to studio and republished, and get all these relative path errors in PHP
"Use of undefined constant RelativePath"
I guess this is a PHP.ini issue? or something not set in the project.
The result of this question will determine If I buy this product or go .NET so any help would be appreciated.
|
|
|
 |
Vaasu
|
| Posted: 05/21/2003, 5:46 AM |
|
I had the same problem. Here is how I figured the problem:
Quick Answer:
Just simply recreate your PAGE from scratch (with a new name if necessary)
and that should work.
Long Answer:
If you see this error, that usually means you did something that you are not supposed to. For example you are accessing a PAGE that is not supposed to be accessed directly such as a HEADER, FOOTER etc.
Ideally, this should gracefully let you view the HEADER, FOOTER etc., in fact which is what used to happen in CodeCharge itself. But in CCS, this behaviour is a bit seem to have changed.
Here is an explanation of my problem.
I had a LOGIN page that was working just fine. But I wanted to INCLUDE this LOGIN in another page (default home) just as a convenience. CCS warned/asked me if it is okay to convert this to INCLUDABLE page. I didn't think of much and went ahead with the change.
Then, later while testing, when I go to LOGIN page directly it gave me the problem with RelativePath. As it seems it is not defining the "RelativePath" constant, I just went ahead and added that one line (for testing, of course). But then I ran into problem when I got the home page which is including this LOGIN page (as the RelativePath is defined twice).
So, the morale of the story is that you shoudl lay out your pages and decide on the nagivation design well in advance and then figure out what to do in CCS. If I do modifications on the fly thinking CCS is a RAD and it will work, it will work until I hit bumps like this.
Hope this helps.
-Vaasu
|
|
|
 |
|