Hi! After playing around with Epesi for a couple of weeks I have installed it for my company to use as our CRM. I am very impressed and I have ideas for a number of modules for it.
BUT... I was following the tutorial here: http://www.epesi.org/index.php?title=Create_links and I ran into a problem. When I add the code
public function body() {
print('This is a page no. 1<br>');
print('<a '.$this->create_callback_href(array($this,'second_page')).'>Link to the second page</a><br>');
}
private function second_page() {
print('This is a page no. 2<br>');
return true;
}
to my module I get the following error and the module won't run:
Type: 256
Message: Callback not callable
File: C:\xampp\htdocs\epesi\include\module.php
Line=555
error backtrace:
File: C:\xampp\htdocs\epesi\include\error.php
line 125
function called: handle_error
[PHP core called function]
function called: handle_epesi_error
File: C:\xampp\htdocs\epesi\include\module.php
line 555
function called: trigger_error
File: C:\xampp\htdocs\epesi\include\module.php
line 581
function called: set_callback
File: C:\xampp\htdocs\epesi\include\module.php
line 498
function called: create_callback_href_with_id
File: C:\xampp\htdocs\epesi\modules\Experimental\TestModule\TestModule_0.php
line 19
function called: create_callback_href
[PHP core called function]
function called: body
File: C:\xampp\htdocs\epesi\include\module.php
line 785
function called: call_user_func_array
File: C:\xampp\htdocs\epesi\include\module.php
line 706
function called: get_html_of_module
File: C:\xampp\htdocs\epesi\modules\Base\Box\Box_0.php
line 144
function called: display_module
File: C:\xampp\htdocs\epesi\include\epesi.php
line 194
function called: body
File: C:\xampp\htdocs\epesi\include\epesi.php
line 234
function called: go
File: C:\xampp\htdocs\epesi\process.php
line 29
function called: process
Is this a common error? I am guessing maybe I am missing an include file or something.
ALSO, I noticed that when I created my module it only created three files, which the wiki says to do, but there is an 'Init' file also created in this tutorial http://www.epesi.org/tutorial/. What happened to that, and will I need to add it later? Where are the choices of my dependent modules (QuickForm, User, etc.) kept?
Thanks in advance!
-Irate