Call From eZ to my own php page, isn't working ...

Author Message

Natalia Lillo

Wednesday 26 October 2005 11:47:30 am

Hi!

My problem is this:
I have a php page created for me, which connect to oracle, to other server and retrieves data....Now, I create a link with adminstration interface from where I call this page but isn't working..

Someone knows what happend with this? or How I can make it?...

Cheers.
Natalia

Marko Žmak

Wednesday 26 October 2005 1:29:14 pm

What link exatly? And where is the page in which did you put your link? Inside eZ installation r somewhere else?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Natalia Lillo

Wednesday 26 October 2005 1:54:27 pm

Hi Marko.....

Look...
I put the link into the page pagelayout.tpl... of that way..

<div id="path"><a href="../PrimasVehiculos/primas_vehiculos.php">Primas Vehiculos</a> </div>

Now,this page primas_vehiculos.php it's localized in design/base/, here I create to folder manually called "PrimasVehiculos", and I can't to make that works
Appears this error Kernel(20)
Module not found

You can help me???.

Cheers

Natalia

Marko Žmak

Thursday 27 October 2005 1:02:21 pm

In eZ installation every page is called through index.php, that's the way eZ works. So when you call your link index.php is executed instead of your PHP script end it gives you Module not found error. If you want't to call a PHP script you have to put it somewhere outside your eZ installation.

I think there also exsists a user contrinution somwehere on eZ site that allows you to call php scripts. Check it out in the Contrib section of ez.no.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Łukasz Serwatka

Thursday 27 October 2005 2:19:57 pm

More elegant will be move code from primas_vehiculos.php to custom eZ publish module. This is also php script but code is executed every time when you accessing www.example.com/mymodule/view. You can connect to external database (Oracle in your case) using PHP functions, results you can present using eZ publish template language for example:

More about writing custom eZ publish modules you can read here:

http://ez.no/products/ez_publish_cms/documentation/development/extensions/module/hello_world

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Natalia Lillo

Friday 28 October 2005 7:24:18 am

Thanks boys...

I will follow your advices...

Cheers...

Natalia

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.