HI, thank you for quick response. We will do check inside oxajax.php to fall back to file include if oxNew will fail (and will remove it in next major version)
Alf ________________________________________ From: dev-general-boun...@lists.oxidforge.org [dev-general-boun...@lists.oxidforge.org] on behalf of Lang, Raimund [r.l...@haller-stahlwaren.de] Sent: Thursday, May 31, 2012 12:05 PM To: dev-general@lists.oxidforge.org Subject: Re: [oxid-dev-general] new module structure in 4.6 and admin include files not working? Good point... Ando f course need to upload a new version to the eXchange as well. Maybe a (temporary) workaround would be better, so modules do not need to changed again after just one minor release. This big change can be implemented later anyway, in 4.7 or in 5.0 when even more changes are made. Ray ________________________________________________ Haller Stahlwaren GmbH Am Gartennest 1 74544 Michelbach/Bilz --- Tel.: 0791/47003 Fax : 0791/47005 www.haller-stahlwaren.de --- Sitz: Schwäbisch Hall Registergericht: Stuttgart HRB 570131 Geschäftsführer: Hermann Hebsacker, Karin Hebsacker -----Ursprüngliche Nachricht----- Von: dev-general-boun...@lists.oxidforge.org [mailto:dev-general-boun...@lists.oxidforge.org] Im Auftrag von Tobias Merkl Gesendet: Donnerstag, 31. Mai 2012 10:12 An: dev-general@lists.oxidforge.org Betreff: Re: [oxid-dev-general] new module structure in 4.6 and admin include files not working? Hey alf, this sounds good, but ... all module developer has to update their modules in 4.6.2 (?) if they are using admin ajax classes! :-( Kindest Regards Tobias Merkl Software-Entwicklung ************************************* shoptimax GmbH Guntherstraße 45a 90461 Nürnberg Tel (09 11) 2 55 66 - 25 Fax (09 11) 2 55 66 - 29 eMail me...@shoptimax.de Web www.shoptimax.de ************************************* Geschäftsführung: Friedrich Schreieck Ust.-IdNr.: DE 814340642 Amtsgericht Nürnberg HRB 21703 ************************************* -----Ursprüngliche Nachricht----- Von: dev-general-boun...@lists.oxidforge.org [mailto:dev-general-boun...@lists.oxidforge.org] Im Auftrag von Alfonsas Cirtautas Gesendet: Donnerstag, 31. Mai 2012 09:05 An: dev-general@lists.oxidforge.org Betreff: Re: [oxid-dev-general] new module structure in 4.6 and admin include files not working? Hi With bugfix for https://bugs.oxid-esales.com/view.php?id=4037 we will move and rename all ajax list related admin classes. As an example admin/inc/actions_article.inc.php will become admin/actions_article_ajax.php With this change it will be possible to extend existing and register new ajax list files in module metadata. Alf. ________________________________________ From: dev-general-boun...@lists.oxidforge.org [dev-general-boun...@lists.oxidforge.org] on behalf of Stefan Moises [moi...@shoptimax.de] Sent: Monday, May 14, 2012 12:22 PM To: dev-general@lists.oxidforge.org Subject: Re: [oxid-dev-general] new module structure in 4.6 and admin include files not working? submitted as bug now at https://bugs.oxid-esales.com/view.php?id=4037 Best, Stefan Am 14.05.2012 09:56, schrieb Stefan Moises: > any idea from the OXID developers? :) > > Thanks, > Stefan > > Am 11.05.2012 15:20, schrieb Stefan Moises: >> Hi list, >> >> I am trying to port a module to the new Oxid 4.6. module logic and >> having a hard time getting the paths etc. right... now I seem to have >> hit the wall with admin includes: >> >> [11-May-2012 15:07:06] PHP Warning: include_once(): Failed opening >> 'inc/smxb2b_accounts_main.inc.php' for inclusion >> (include_path='.:/usr/local/lib/php') in >> /...smxDemoshopB2B46/admin/oxajax.php on line 740 >> >> The file smxb2b_accounts_main.inc.php is located at >> "/modules/shoptimax/smxb2b_accounts/admin/inc/" and included from >> "/modules/shoptimax/smxb2b_accounts/admin/smxb2b_accounts_main.php". >> At first, not even that was working and I had to adjust the path to >> the include in my admin class. Now that part is working, but oxajax >> can't find the include now as you can see... >> I've tried to set the include path with PHP like this: >> >> if (oxConfig::getParameter("aoc")) >> { >> $newIncPath = dirname(__FILE__); >> set_include_path(get_include_path() . PATH_SEPARATOR . >> $newIncPath); >> >> $aColumns = array(); >> include_once 'inc/' . strtolower(__CLASS__) . '.inc.php'; >> $this->_aViewData['oxajax'] = $aColumns; >> >> return "popups/" . $this->_sThisTemplate; >> } >> >> This works for my admin class, but not for oxajax.php... >> I also can't set the path for this include file in my metadata.php, >> because it isn't a "real" class like the main admin class: >> >> 'files' => array( >> 'smxb2b_accounts_main' => >> 'shoptimax/smxb2b_accounts/admin/smxb2b_accounts_main.php', >> 'ajaxComponent' => >> 'shoptimax/smxb2b_accounts/admin/inc/smxb2b_accounts_main.inc.php', >> ... >> I've tried to set the path for "ajaxComponent" as you can see, but of >> course this isn't working either... >> >> So is there any way I can get oxajax to load my include file from the >> modules directory, or do I have to copy it over to the "/admin/inc/" >> dir of the shop (which would break the whole concept :P) >> >> >> And another "path question": is there a way to load the >> "bottomnavicustom.tpl" from my module folder, too? E.g. this doesnt >> seem to overwrite the default template: >> 'templates' => array( >> "bottomnavicustom.tpl" => >> "shoptimax/smxb2b_accounts/out/admin/tpl/bottomnavicustom.tpl", >> "smxb2b_accounts.tpl" => >> "shoptimax/smxb2b_accounts/out/admin/tpl/smxb2b_accounts.tpl", >> ... >> My own template is found, but bottomnavi is not overwritten with my >> version.... >> >> Thanks a lot, >> Stefan >> > -- Mit den besten Grüßen aus Nürnberg, Stefan Moises ******************************************* Stefan Moises Senior Softwareentwickler Leiter Modulentwicklung shoptimax GmbH Guntherstraße 45 a 90461 Nürnberg Amtsgericht Nürnberg HRB 21703 GF Friedrich Schreieck Tel.: 0911/25566-0 Fax: 0911/25566-29 moi...@shoptimax.de http://www.shoptimax.de ******************************************* _______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general _______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general _______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general _______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general _______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general