phpBeans

different extension for the bean

Forum / Server Programming / different extension for the bean

Reply         Subscribe         Start new thread         Syndicated Feed (RSS)        

Displaying 1 to 4 of 4 Previous   1   Next
Author Message
informvarma

Posts: 2
different extension for the bean - Posted: February 14, 2006 - 6:14 AM Quote and reply
Hi,

Seems like the bean object within `../obj` location will be loaded by server only if the extension of the file ends with a `.php` or am i missing something ?

if not Can this behaviour be changed ?

Regards
Varma

Back to top
lux

Posts: 17
Re: different extension for the bean - Posted: February 20, 2006 - 11:37 AM Quote and reply
informvarma said:
Hi,

Seems like the bean object within `../obj` location will be loaded by server only if the extension of the file ends with a `.php` or am i missing something ?

if not Can this behaviour be changed ?

Regards
Varma


Hi Varma,

Not quite sure I understand what you mean. Do you mean can we load objects from outside of the 'obj' folder? If you're able to do so, please let me know how because that's not the intended behaviour. If that's not what you mean, then let me know too. :)

Cheers,

Lux

Back to top
informvarma

Posts: 2
Re: different extension for the bean - Posted: February 22, 2006 - 10:56 PM Quote and reply
lux said:
informvarma said:
Hi,

Seems like the bean object within `../obj` location will be loaded by server only if the extension of the file ends with a `.php` or am i missing something ?

if not Can this behaviour be changed ?

Regards
Varma


Hi Varma,

Not quite sure I understand what you mean. Do you mean can we load objects from outside of the 'obj' folder? If you're able to do so, please let me know how because that's not the intended behaviour. If that's not what you mean, then let me know too. :)

Cheers,

Lux



Hi Lux,

:), nope.
within the 'obj' folder, say i have a file named
'someServer.class', am not able to load this class. but if i have the same as 'someServer.php' then no problem it loads fine.
Hope am being clear this time :))

Regards
Varma

Back to top
lux

Posts: 17
Re: different extension for the bean - Posted: February 23, 2006 - 3:43 AM Quote and reply
informvarma said:
Hi Lux,

:), nope.
within the 'obj' folder, say i have a file named
'someServer.class', am not able to load this class. but if i have the same as 'someServer.php' then no problem it loads fine.
Hope am being clear this time :))

Regards
Varma


Hi Varma,

This is correct, the file must end in '.php' for it to be recognized. This happens in the file lib/Server.php in the onStart() method, which reads the obj directory for any .php files and registers them with the server.

Cheers,

Lux

Back to top

Return to Top


  Powered by Sitellite Enterprise PHP CMS