Re: [WebDNA] Re: Need someone to port CakePHP auction site to WebDNA
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104680
interpreted = N
texte = Perhaps a WebDNA framework should be created? The shopping site isprobably the place to start. Lots of things to borrow from otherframeworks.We could set up a public github and contribute/fork from there.BillOn Wed, Feb 3, 2010 at 5:30 AM, Dan Strong
wrote:> Already walked away :)>> Toby Cox wrote:>>>Dan>>>>I think this would be difficult.>>>>We're an agency that does both webdna and cakephp, and from my experience= with both, I would have to say that the project sounds nasty. Possibly bes=t to walk away from it. Let me explain:>>>>CakePHP is what they call a rapid development framework, which means a lo=t of things are done by the framework itself.>>>>- Data validation>>- complex SQL build queries>>- session handling>>- admin control>>- view caching>>- etc etc>>>>This means, if they wanted the site to cache, you would have to build a w=ebdna caching script. Even simple things like bringing results back on a pa=ge would have to change from this>>>>// CakePHP style controller>>$allAuctions =3D $this->Auction->find('all', array('limit'=3D>10, 'condit=ions'=3D>'auctionEnds<=3DNOW()'));>>>>// CakePHP style view>>foreach($allAuction as $auctionIndex=3D>$auctionItem){>> =A0 =A0 =A0 // user id outputted like this>> =A0 =A0 =A0 $auctionItem['User']['id'];>> =A0 =A0 =A0 // auction id outputted like this>> =A0 =A0 =A0 $auctionItem['Auction']['id']>>}>>>>to this>>>>[!][/!]>>[SQLConnect dbType=3DMySQL&host=3D192.168.1.1&database=3DSMSITest&uid=3Ds=a&pwd=3Dpass&conn_var=3Dconn1]>>[SQLExecute conn_ref=3Dconn1&result_var=3Drs1]>>select * from auctions AS Auction LEFT JOIN users AS User WHERE Auction.u=ser_id=3DUser.id AND auctionEnds<=3DNOW() limit 10;>>[/SQLExecute]>>[SQLResult result_ref=3Drs1]>> =A0 =A0 =A0 [founditems]>> =A0 =A0 =A0 [!][/!]>> =A0 =A0 =A0 [id]>> =A0 =A0 =A0 [!][/!]>> =A0 =A0 =A0 [id]>> =A0 =A0 =A0 [/founditems]>>[/SQLResult]>>>>And that was any easy example - sometimes cake joins 4 or 5 tables 'in th=e background'. As for trying to do this in traditional webdna, I'm not sure= how you would port over all the relational tables into a webdna style form=at. Anything's possible, I guess, just so long as you have the time.>>>>I guess the question no-one has asked yet is 'why'. Why are you trying to= port something from cakephp over to webdna? Surely either build an auction= site from scratch or host it in cakephp out of the box?>>>>Anyhow, I've just reread your question and it looks like the deadline has= passed anyway. I'll send it anyway, just in case. Good luck, and if you ha=ve any questions, don't hesitate to ask.>>>>>>>>TC>>>>>>On 1 Feb 2010, at 16:36, Dan Strong wrote:>>>>> Any takers? I need to get an estimate out to this potential php to WebD=NA convert by today or tomorrow.>>>>>> -Dan Strong>>> http://www.DanStrong.com>>>>>>>>> On 1/31/2010 10:30 AM, Dan Strong wrote:>>>> I currently have a request for this... anybody have a WebDNA auction s=ite written or willing to build one? Please contact off-list. Thanks.>>>>>>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list .>>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us>>> old archives: http://dev.webdna.us/TalkListArchive/>>> Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&categor=y=3D288>>>
Associated Messages, from the most recent to the oldest:
Perhaps a WebDNA framework should be created? The shopping site isprobably the place to start. Lots of things to borrow from otherframeworks.We could set up a public github and contribute/fork from there.BillOn Wed, Feb 3, 2010 at 5:30 AM, Dan Strong wrote:> Already walked away :)>> Toby Cox wrote:>>>Dan>>>>I think this would be difficult.>>>>We're an agency that does both webdna and cakephp, and from my experience= with both, I would have to say that the project sounds nasty. Possibly bes=t to walk away from it. Let me explain:>>>>CakePHP is what they call a rapid development framework, which means a lo=t of things are done by the framework itself.>>>>- Data validation>>- complex SQL build queries>>- session handling>>- admin control>>- view caching>>- etc etc>>>>This means, if they wanted the site to cache, you would have to build a w=ebdna caching script. Even simple things like bringing results back on a pa=ge would have to change from this>>>>// CakePHP style controller>>$allAuctions =3D $this->Auction->find('all', array('limit'=3D>10, 'condit=ions'=3D>'auctionEnds<=3DNOW()'));>>>>// CakePHP style view>>foreach($allAuction as $auctionIndex=3D>$auctionItem){>> =A0 =A0 =A0 // user id outputted like this>> =A0 =A0 =A0 $auctionItem['User']['id'];>> =A0 =A0 =A0 // auction id outputted like this>> =A0 =A0 =A0 $auctionItem['Auction']['id']>>}>>>>to this>>>>[!][/!]>>[SQLConnect dbType=3DMySQL&host=3D192.168.1.1&database=3DSMSITest&uid=3Ds=a&pwd=3Dpass&conn_var=3Dconn1]>>[SQLExecute conn_ref=3Dconn1&result_var=3Drs1]>>select * from auctions AS Auction LEFT JOIN users AS User WHERE Auction.u=ser_id=3DUser.id AND auctionEnds<=3DNOW() limit 10;>>[/SQLExecute]>>[SQLResult result_ref=3Drs1]>> =A0 =A0 =A0 [founditems]>> =A0 =A0 =A0 [!][/!]>> =A0 =A0 =A0 [id]>> =A0 =A0 =A0 [!][/!]>> =A0 =A0 =A0 [id]>> =A0 =A0 =A0 [/founditems]>>[/SQLResult]>>>>And that was any easy example - sometimes cake joins 4 or 5 tables 'in th=e background'. As for trying to do this in traditional webdna, I'm not sure= how you would port over all the relational tables into a webdna style form=at. Anything's possible, I guess, just so long as you have the time.>>>>I guess the question no-one has asked yet is 'why'. Why are you trying to= port something from cakephp over to webdna? Surely either build an auction= site from scratch or host it in cakephp out of the box?>>>>Anyhow, I've just reread your question and it looks like the deadline has= passed anyway. I'll send it anyway, just in case. Good luck, and if you ha=ve any questions, don't hesitate to ask.>>>>>>>>TC>>>>>>On 1 Feb 2010, at 16:36, Dan Strong wrote:>>>>> Any takers? I need to get an estimate out to this potential php to WebD=NA convert by today or tomorrow.>>>>>> -Dan Strong>>> http://www.DanStrong.com>>>>>>>>> On 1/31/2010 10:30 AM, Dan Strong wrote:>>>> I currently have a request for this... anybody have a WebDNA auction s=ite written or willing to build one? Please contact off-list. Thanks.>>>>>>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list .>>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us>>> old archives: http://dev.webdna.us/TalkListArchive/>>> Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&categor=y=3D288>>>
William DeVaul
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
access denied problem (1997)
autosensing lanague selection (1997)
Mozilla/4. and Browser Info.txt (1997)
math a various prices (1997)
Email Spam a bit of Hell (2004)
Associative lookup style? + bit more (1997)
SmithMicro Help! -- Can't access WebCatalog Admin! (2001)
Nested tags count question (1997)
[append] problem (1997)
WebCat/CyberStudio Compatibility (1998)
Add to a field (1998)
How to Display text in empty fields (1997)
Pull Down Search (2000)
HomePage Caution (1997)
Cookies (1999)
foriegn characters and webcatalog (1997)
Handy Browser Counter Tip (1997)
Re1000001: Setting up shop (1997)
Requiring that certain fields be completed (1997)
'page impression' techniques for banner ads (1999)