Fork me on GitHub

Announcement

The oneye project has been discontinued. You might not expect further fixes and support from us. All community related systems are set to read-only mode. Though feel free to download and use oneye as-is or even fork it over at GitHub.

#1 2012-04-18 10:55:10

permana
Member
Registered: 2012-03-21
Posts: 9

using incude_once

i have a toolbar in my events.eyecode named eyeMonitor_toolbar_DLG that i want it to call another window called client.eyecode...
how can i call client.eyecode in my events.eyecode throught the toolbar eyeMonitor_toolbar_DLG....
thanks before...
warmly....
best regards....

Offline

#2 2012-04-18 17:57:15

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: using incude_once

Welcome again wink !

I guess your "client.eyecode" is in the same directory as the "events.eyecode" of your application?!


You can include files by specifying the correct path, just like:

include_once EYE_ROOT . '/' . APP_DIR . '/myApp/client' . EYE_CODE_EXTENSION;

Please make sure you include that file in "app.eyecode" and "events.eyecode" depending on your usage.

To use "client.eyecode" as additional file containing event functions, the file need to be included while loading the "events.eyecode" and the function names need to follow the correct name scheme: "myApp_on_ClickedToolbarButton".

Or does client.eyecode represent another "app.eyecode"-like file?


Best regards,
Lars Knickrehm

The oneye project.

Offline

#3 2012-04-19 10:43:27

permana
Member
Registered: 2012-03-21
Posts: 9

Re: using incude_once

hi lars....
i sent you all my project files...
i need your suggest, recommend, advice...
everything that you have to know about my project, written in my files....(permanaharianja@gmail.com)

Offline

Board footer

Powered by FluxBB