Hi! I need some help...
Here's the content of my pntables.php
function test_pntables()
{
$pntable = array();
$tableName = pnConfigGetVar('prefix') . '_test';
$pntable['test'] = $tableName;
$pntable['test_column'] = array('recordid' => $tableName . '.recordid');
return $pntable;
}
And the partial content of my pninit.php
function test_init()
{
// Reference database connection
$dbconn =& pnDBGetConn(true);
// Reference pnTable from PostNuke core array
$pntable =& pnDBGetTables();
print_r($pntable);
die();
The table ($pntable['test']) and column ($pntable['test_column']) I specify in pntables.php is not in the $pntable array! Where did I go wrong? Please help!
-Ang
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Help... tables and column missing from $pntable
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Aug 21, 2006
- Posts: 3
Upon further investigation by inserting die() in pntables.php, I realized it was never called.
I have made sure display_error is on and error_reporting is E_ALL. Where do I go from here?
-Ang -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Aug 21, 2006
- Posts: 3
Thanks for the suggestion. After one week of reading up all the documents and posting I can find, I finally found the answer at the PostNuke Modules Factory (http://home.postnuke.ru/index.php/).
Quote
Do I have proper permissions for module's files (0644) and directories (0755)?
I am trying out the new Ubuntu and the file permission wasn't set correctly. PostNuke was unable to 'read' pntables.php.
:)
- Moderated by:
- Support
