Hi Roland, As Andreas already mentioned OXID forum is the proper place to ask questions like this. And in this mailing list we discuss about technical solutions, how to implement core features or to fix bugs for new versions. More about usage of this mailing list you can find here: http://www.oxidforge.org/wiki/Mailinglists.
Should there be any other questions about usage of this mailing list feel free to ask. Cheers, Vilma ________________________________ Von: [email protected] im Auftrag von anzido GmbH Gesendet: Pr 2009.11.16 13:03 An: [email protected] Betreff: Re: [oxid-dev-general] Create new articlelist [T-4C0IHUVM2Z-71] Hi Manuel, hi Roland, what you wrote, Manuel, about the return values of oxList and oxArticleList is true. This should - with no doubt - be changed, cause it does not make sense. But the starting question by Roland was just a support question and it showed that Roland just needs a bit of training in understanding the oxid framework, I think. And this is not the purpose of this list - as far as I understood ... @Roland: Please don't get me wrong: You question is a GOOD question and it could have been asked by - and which should be interesting for - many developers new to the oxid stuff. And for that reason it should be asked and answered at a place where more people get the chance to read it. Best Regards from the IPC in Karlsruhe! Andreas Ziethen | Geschäftsführung -----Ursprüngliche Daten----- Datum: 11/16/2009 11:53:16 AM Von: Manuel Reiß <[email protected]> An: <[email protected]> Betreff: Re: [oxid-dev-general] Create new articlelist Vorgang: T-4C0IHUVM2Z-71 > Hi Andreas, > don't know :) - I'm new to this list... > but as you can see in my post "But even this won't happen, since the parent > (oxList) will return null ;)", this sentence also contains a small hint to > oxid developers > > 1) the return var-name of oxarticlelist's selectString() "$oRes" doesn't > seem to contain a boolean var regarding naming conventions ;) > > 2) oxarticlelist's parent (oxlist) method selectString() doesn't return > anything -> and since it's called and its "value" returned in oxarticlelist, > result will always be null > > So I hope besides helping out Andreas before, this post might also be of > value during refactoring and cleanup for the dev-team ;) > > best regards, > Manuel > > > [email protected] | www.mediaopt.de > > derksen mediaopt gmbh > galvanistrasse 6 | 10587 berlin | +49 (30) 34 09 42-77 fax-66 | ust.-id > de265886017 | geschäftsführer dipl.-ing. philipp derksen | amtsgericht > charlottenburg | hrb 120935 b > > > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] Im Auftrag von anzido GmbH > Gesendet: Montag, 16. November 2009 10:33 > An: [email protected] > Betreff: Re: [oxid-dev-general] Create new articlelist [T-4C0IHUVM2Z-71] > > Sorry guys - but isn't this stuff for the forum more then for the dev-list? > :-o > > Regards! > Andreas Ziethen | Geschäftsführung > > > > -----Ursprüngliche Daten----- > Datum: 11/16/2009 9:45:24 AM > Von: Manuel Reiß <[email protected]> > An: <[email protected]> > Betreff: Re: [oxid-dev-general] Create new articlelist > Vorgang: T-4C0IHUVM2Z-71 > > > Hi Roland, > > as you can see in the comments of oxarticlelist's selectString-method (* > > @return bool), the return value would be boolean. > > Therefore your expression > > $this->_aList = $aList->selectString($sQuery); > > will just set $this->_aList to a boolean value. (But even this won't > happen, > > since the parent (oxList) will return null ;) ) > > Therefore, one solution would be: skip this class-member ($this->_aList) > and > > just return your object: > > > > $aList = oxNew('oxarticlelist'); > > $aList->selectString($sQuery); > > return $aList; > > > > have a nice week. > > > > [email protected] | www.mediaopt.de > > > > derksen mediaopt gmbh > > galvanistrasse 6 | 10587 berlin | +49 (30) 34 09 42-77 fax-66 | ust.-id > > de265886017 | geschäftsführer dipl.-ing. philipp derksen | amtsgericht > > charlottenburg | hrb 120935 b > > > > -----Ursprüngliche Nachricht----- > > Von: [email protected] > > [mailto:[email protected]] Im Auftrag von Roland > > Gruber > > Gesendet: Samstag, 14. November 2009 02:15 > > An: [email protected] > > Betreff: [oxid-dev-general] Create new articlelist > > > > Hi everybody > > > > > > > > I'm trying do create my first extension for oxid. It should be a new view > > for the products of the last x days. I just wrote the code below (with > some > > help of the community), saved it in the file newestarticles.php and copied > > this file to the folder /view/. So if I call now the class newestarticles > > with www.myshop.de/index.php?cl=newestarticles, I can see in the > debug-mode, > > that the object 'newestarticles' has been created, but it has no value > > (null). Of course, the query "SELECT * FROM oxarticles LIMIT 10" gets the > > values, which I'd like to have in 'newestarticles'. > > > > Can anybody give me a hint, what I have to change to get the values out of > > the query into 'newestarticles'? > > > > > > > > Kind regards > > > > Roland > > > > > > > > > > > > > > > > <?php > > > > class newestarticles extends oxUBase { > > > > > > > > public function init() > > > > { > > > > parent::init(); > > > > $this->_sThisTemplate = > 'newestarticles.tpl'; > > > > } > > > > > > > > > > > > public function render() > > > > { > > > > $this->_aViewData['newestarticles'] = $this->getnewarticles(); > > > > parent::render(); > > > > > > > > return $this->_sThisTemplate; > > > > } > > > > > > > > public function getnewarticles() > > > > { > > > > $sQuery = "SELECT * FROM oxarticles LIMIT > > 10"; > > > > > > > > $aList = oxNew('oxarticlelist'); > > > > $this->_aList = > > $aList->selectString($sQuery); > > > > > > > > return $this->_aList; > > > > } > > > > > > > > } > > > > ?> > > > > > > > > > > > > _______________________=5F= > 5F______________________ > > dev-general mailing list > > [email protected] > > http://dir.gmane.org/gmane.comp.php.oxid.general > > > > _______________________=5F= > 5F______________________ > > dev-general mailing list > > [email protected] > > http://dir.gmane.org/gmane.comp.php.oxid.general > > ________________________= 5F______________________ > dev-general mailing list > [email protected] > http://dir.gmane.org/gmane.comp.php.oxid.general > > ________________________= 5F______________________ > dev-general mailing list > [email protected] > http://dir.gmane.org/gmane.comp.php.oxid.general _______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
_______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
