how integrate Nette fw in a existing application?

Notice: This thread is very old.
James_Scott
Member | 55
+
0
-

Hi, I would like use Nette in old php app – is there any way?
When I call

<?php include('sanbox/www/index.php'); ?>

I get exception “Cannot set cookie after HTTP headers have been sent”.

Vojtěch Dobeš
Gold Partner | 1316
+
0
-

This includes the whole app. You probably just want to make the library available – the you should:

include('...libs/Nette/loader.php');

Pokud používáš Composer, tak klasicky jen:

If you use Composer, then just as usual:

include('...vendor/autoload.php');

Last edited by vojtech.dobes (2014-06-05 11:07)

James_Scott
Member | 55
+
0
-

Okey, is library available. How can I now use for example Form in the middle app? Can i call directly any Presenter?