CodeIgniter Forums
Codeigniter on magento site - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Codeigniter on magento site (/showthread.php?tid=61000)



Codeigniter on magento site - El Forum - 08-25-2014

[eluser]Unknown[/eluser]
Hello, i have to develope a module on magento, wich create new clients, i made it with codeigniter and it works perfectly, but i need to put my ci views on the magento context, for include magento header and footer, and i can't, does anyone knows how to do it?? :-S

This is my floder structure:

magento_site/data/www/ci_app/application/views/my_view

the web is: www.magento_web.cl and the ci_app is on www.magento_webb/ci_app/index.php/my_controller

when i try to include the files i need like this:
<?php include APPPATH.'app/design/frontend/defult/bata/template/page/html/header.php';?>
obiusly get an error, so i try to modifie the $application_folder variable value 'application' to ../application, to up levels, and i get this:

Message: include(/data/www/test_ci/system/../application/app/design/frontend/defult/bata/template/page/html/header.php): failed to open stream: No such file or directory

Apppath=>..//data/www/test_ci/system/../application/

Does anyone knows how to include my template on my magento site context?
Thanks!!!


Codeigniter on magento site - El Forum - 09-02-2014

[eluser]Unknown[/eluser]
[quote author="cramr" date="1408994289"]Hello, i have to develope a module on magento, wich create new clients, i made it with codeigniter and it works perfectly, but i need to put my ci views on the magento context, for include magento header and footer, and i can't, does anyone knows how to do it?? :-S

This is my floder structure:

magento_site/data/www/ci_app/application/views/my_view

the web is: www.magento_web.cl and the ci_app is on www.magento_webb/ci_app/index.php/my_controller

when i try to include the files i need like this:
<?php include APPPATH.'app/design/frontend/defult/bata/template/page/html/header.php';?>
obiusly get an error, so i try to modifie the $application_folder variable value 'application' to ../application, to up levels, and i get this:

Message: include(/data/www/test_ci/system/../application/app/design/frontend/defult/bata/template/page/html/header.php): failed to open stream: No such file or directory

Apppath=>..//data/www/test_ci/system/../application/

Does anyone knows how to include my template on my magento site context?
Thanks!!![/quote]