Path reference to "lib" folder

15 views
Skip to first unread message

sirbeagle

unread,
Feb 28, 2011, 7:14:08 PM2/28/11
to jqmPhp
Out of the box I had a problem getting jqmPhp setup and it turned out
to be the path to the lib folder. Just for simplicity sake I changed
one line in pqmPhp.php:

original line 25:

define('JQMPHP_PATH', 'lib/', true);

proposed line 25:

define('JQMPHP_PATH', realpath(dirname(__FILE__) . '/../lib/') . '/',
true);

I'm using the line numbers from revision 11 of the SVN repo.

I think this change should make things reasonably "portable" without
having to set any weird paths. For a project I'm working on I have the
jqmPhp library in a completely different folder and this line change
makes things work smoothly. Would this change help out?

Also I realize that it would be easier to use the __DIR__ constant but
I wanted to maintain compatibility with PHP 5.2.x.

Thanks!

Bruno Maia

unread,
Mar 1, 2011, 5:37:36 AM3/1/11
to jqm...@googlegroups.com
Hi,

My initial idea was that the the developer changed the definition of the
JQM_PATH for the used path. But I consider this change and make some
tests.

It is important you update to the latest version. Changes were made in
jqmPhp.php file and various other constants can be defined therein.

Thank you,

Bruno Maia.

Reply all
Reply to author
Forward
0 new messages