I am figuring out this application creation process. I created my app, and added the file into MyApp/pages. Template went into files/qdrupal/MyApp/templates. The file should have appeared in the dropdown, right?

Btw, here is the error messages:

* warning: scandir(C:/Users/Picardo/Sites/sites/default/files/qdrupal\MyApp/pages) [function.scandir]: failed to open dir: No error in C:\Users\Picardo\Sites\drupal-6\sites\all\modules\qdrupal\qdrupal.link.inc on line 165.
* warning: scandir() [function.scandir]: (errno 0): No error in C:\Users\Picardo\Sites\drupal-6\sites\all\modules\qdrupal\qdrupal.link.inc on line 165.
* warning: Invalid argument supplied for foreach() in C:\Users\Picardo\Sites\drupal-6\sites\all\modules\qdrupal\qdrupal.link.inc on line 165.

CommentFileSizeAuthor
#2 qdrupal_application_base_path.patch555 bytesbecw

Comments

picardo’s picture

Can anyone help?

becw’s picture

Title: So I am trying to add a file to an application. Drop down is empty. » qdrupal omits base_path() when it generates the path to a qcubed/qdrupal application
StatusFileSize
new555 bytes

When qdrupal generates the path to an application in qdrupal_application_disk_path(), it omits Drupal's base path. This isn't a problem if Drupal is at your document root, but if Drupal is in a subfolder then qdrupal fails to find its applications. This is simple to solve; I've attached a patch.

becw’s picture

Component: User interface » Code
Status: Active » Needs review