dirname

Questionsdirname
Greg asked 10 years ago

I am trying to configure the grid and I continue to get the following error

Parse error: syntax error, unexpected '.' in
/_Samples/phpgridorg2/config.php on line 17

I believe the error comes from my configuration of the following line of code in the config file, but I feel like I have tried everything and I cannot get it to work.

define("PHPGRID_LIBPATH",dirname(__FILE__).DIRECTORY_SEPARATOR."lib".DIRECTORY_SEPARATOR);

Any help would be appreciated.

1 Answers
Abu Ghufran answered 10 years ago

Change
define("PHPGRID_LIBPATH",dirname(__FILE__).DIRECTORY_SEPARATOR."lib".DIRECTORY_SEPARATOR);

To:
define("PHPGRID_LIBPATH","../../lib/");

The config file is included in demos/editing/index.php. And the lib folder resides in demos (so we added ../../)

Your Answer

19 + 15 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?