You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(92) |
Dec
(142) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(33) |
Feb
(65) |
Mar
(76) |
Apr
(172) |
May
(124) |
Jun
(45) |
Jul
(76) |
Aug
(78) |
Sep
(1) |
Oct
(20) |
Nov
(6) |
Dec
(2) |
2007 |
Jan
(12) |
Feb
(7) |
Mar
(17) |
Apr
(3) |
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: Andrew T. <ajt...@hi...> - 2006-05-03 01:50:43
|
On 5/2/06, Miles Beck <mil...@gm...> wrote: > On 5/2/06, Andrew Turner <ajt...@hi...> wrote: > > Also, I believe at this point we should advise that no one run HEAD > > (ok, so TRUNK now :) ) as their live/used version. > > I was doing this so we can have some testing done early and not have a > lot of bugs at the end of the development process. That said, let me > know when things have stabilzed and then I can look at it again. :) Your help is definitely appreciated. And I agree that catching bugs earlier rather than later is better. I wasn't thinking of you as a typical "user" :) I just don't want someone to walk in to FoFRedux and go "ooh, let me grab from the repo" and bash themselves in some way. Personally, I have about 10 copies of FoFredux at various releases pointing to 6 sets of tables in a DB. :) Andrew -- Andrew Turner ajt...@hi... 42.4266N x 83.4931W http://highearthorbit.com Northville, Michigan, USA |
From: Miles B. <mil...@gm...> - 2006-05-02 23:40:22
|
On 5/2/06, Andrew Turner <ajt...@hi...> wrote: > Also, I believe at this point we should advise that no one run HEAD > (ok, so TRUNK now :) ) as their live/used version. I was doing this so we can have some testing done early and not have a lot of bugs at the end of the development process. That said, let me know when things have stabilzed and then I can look at it again. :) -Miles |
From: Andrew T. <ajt...@hi...> - 2006-05-02 23:27:53
|
Scratch most of below - Katie *just* verified the same thing - I've seen problems like this before, where the $result is used and was never checked if a valid result was returned. We need to add error handling of empty/invalid DB results. Also, I believe at this point we should advise that no one run HEAD (ok, so TRUNK now :) ) as their live/used version. So, what is the plan on the Model/Controller (or DB) side to get things pulled apart? TRUNK will have to be very broken for awhile as very core View->Controller funcs like "fof_get_items( lots, of, things)" needs to be either yanked and/or formed into something a little cleaner. While testing along the way is good to make sure we don't go backwards (too far), we also don't want to have to support every repo rev. Andrew -- Problems -- Clean uninstall & reinstall on a db, checked out from SVN head. 1 feed added (http://highearthorbit.com), 10 items read, clicked on the "10 new items" Fatal error: Call to a member function RecordCount() on a non-object in /home/.parable/highearth/code.highearthorbit.com/public/fofredux/fofredu= x_svn/view.php on line 83 I think this is b/c the options were empty by default, Options were empty, not loaded from default? -- Andrew Turner ajt...@hi... 42.4266N x 83.4931W http://highearthorbit.com Northville, Michigan, USA |
From: Miles B. <mil...@gm...> - 2006-05-02 23:26:39
|
On 5/2/06, Katie Bechtold <ka...@ho...> wrote: > On Tue, May 02, 2006 at 03:35:09PM -0700, Miles Beck wrote: > > I got it from /fofredux/trunk/lib/actions. I just checked the file and > > do not see a version number in there. But I did download version 401. > > With subversion, the entire tree gets a version number. When you do > a 'svn update', it should tell you what version you've got. I was not able to get svn to work thru the command line. So I browsed svn via the web and then downloaded the file. -Miles |
From: Katie B. <ka...@ho...> - 2006-05-02 23:19:22
|
On Tue, May 02, 2006 at 03:35:09PM -0700, Miles Beck wrote: > I got it from /fofredux/trunk/lib/actions. I just checked the file and > do not see a version number in there. But I did download version 401. With subversion, the entire tree gets a version number. When you do a 'svn update', it should tell you what version you've got. > What's the error you are getting? I got the same error you were getting: Fatal error: Call to a member function on a non-object in /var/www/fofredux-devel/view.php on line 83 The fr_config table is empty (unless I go to the options page and explicitly set values). This is after wiping out all the tables in the database and running install.php. After a quick perusal, it isn't clear to me where in the code those option values are supposed to be getting initialized. My web server's running PHP Version 4.4.2-1. -- Katie Bechtold http://hoteldetective.org/ Programming is an unnatural act. |
From: Miles B. <mil...@gm...> - 2006-05-02 22:35:12
|
On 5/2/06, Katie Bechtold <ka...@ho...> wrote: > Oddly, that doesn't seem to fix the problem for me. We're talking > about the trunk, revision 401? > > -- > Katie Bechtold http://hoteldetective.org/ I got it from /fofredux/trunk/lib/actions. I just checked the file and do not see a version number in there. But I did download version 401. What's the error you are getting? -Miles |
From: Katie B. <ka...@ho...> - 2006-05-02 22:28:18
|
On Tue, May 02, 2006 at 01:52:05PM -0700, Miles Beck wrote: > On 5/2/06, Evan Roth <eva...@gm...> wrote: > >Miles, can you confirm that you are working now on php 4? you'd need > >to grab the lib/actions/option.php from SVN. > Just grabbed the file and everything so far is working. Oddly, that doesn't seem to fix the problem for me. We're talking about the trunk, revision 401? -- Katie Bechtold http://hoteldetective.org/ |
From: Evan R. <eva...@gm...> - 2006-05-02 20:56:45
|
cool, be sure to thank Kev...he got to fixing my problems, while i was on the train home from work...the intraweb makes timezones obsolete. On 5/2/06, Miles Beck <mil...@gm...> wrote: > On 5/2/06, Evan Roth <eva...@gm...> wrote: > > > Kev, i see you've fixed my bad constructor. well, not bad for me, > > just backwards incompatible. i still want to change that set function > > to do updates where needed and not delete/inserts. seems like > > unnecessary trips to the db. (but at the same time, delusions of 5 or > > 6 extra trips for a few users is not going to do much harm) > > > > Miles, can you confirm that you are working now on php 4? you'd need > > to grab the lib/actions/option.php from SVN. > > Just grabbed the file and everything so far is working. > > -Miles > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Fofredux-devel mailing list > Fof...@li... > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > |
From: Miles B. <mil...@gm...> - 2006-05-02 20:52:15
|
On 5/2/06, Evan Roth <eva...@gm...> wrote: > Kev, i see you've fixed my bad constructor. well, not bad for me, > just backwards incompatible. i still want to change that set function > to do updates where needed and not delete/inserts. seems like > unnecessary trips to the db. (but at the same time, delusions of 5 or > 6 extra trips for a few users is not going to do much harm) > > Miles, can you confirm that you are working now on php 4? you'd need > to grab the lib/actions/option.php from SVN. Just grabbed the file and everything so far is working. -Miles |
From: Evan R. <eva...@gm...> - 2006-05-02 20:41:09
|
Kev, i see you've fixed my bad constructor. well, not bad for me, just backwards incompatible. i still want to change that set function to do updates where needed and not delete/inserts. seems like unnecessary trips to the db. (but at the same time, delusions of 5 or 6 extra trips for a few users is not going to do much harm) Miles, can you confirm that you are working now on php 4? you'd need to grab the lib/actions/option.php from SVN. if that's working then my programming is set aside for a few days.=20 hope to be able to jump back in on the weekend, but we'll see...in any case, it'd be nice to have a framework in place...if kev and dan are going to volunteer for that one...and we can start putting meat on the bones. until then, the old adage about too many cooks ruining the soup probably applies here, but i like where everything seems to be headed. /evan |
From: Kevin <ke...@dr...> - 2006-05-02 15:52:27
|
Evan said: > what could become more of an issue, is perhaps php4 vs php5, as we've > seen with the class structure and so on. if we want to do something > OO in php, we might want to think about moving completely to php5, > since 4 is not considered real OO. and it'd make our implementation a > bit easier to do once correctly. > but in doing so, we don't want to lose any users. i've been on php5 > for a long time now, but i can't talk for anyone else. would it be > possible to take this step, or is it too early for something like > that? I've done quite a bit of OO using php4. It's not as full featured as php5, but I wouldn't go as far to say it is "not real OO". For things it's doesn't do natively, there are decent workarounds. (ex: use a GLOBAL in place of a static member, etc) php4 is still widely used, and I think we should support it if it's not a burden. --=20 Kevin |
From: Dan T. <da...@an...> - 2006-05-02 14:57:06
|
> In Dan's implementation, the view page is loaded/executed from a method > on the controller. It has access to _$this_ as the controller object, > so it can retrieve parameters or run methods on the controller. I > would prefer a little more separation here, but it's okay for now. > We'll just have to keep an eye on the view and make sure they're not > doing anything they're not supposed to do. As it is php you always can do everything you want in the view... Anyway Im doing the view implementation a bit different where it should be a bit more incapsulated... :) |
From: Evan R. <eva...@gm...> - 2006-05-02 14:07:56
|
hey guys, i get the feeling we are going in the right direction here...perhaps even a bit over-doinging it, but if it's good, then why not. Personally, i'm not a fan of the url rewrite style...but i know i'm in the minority there, so if you guys go for it, then i can play along.=20 i prefer my querystring with a few items that are changeable...whereas we really don't have so much....and if you are still going to be working in the frameset (which it looks like is included in our UI redo), you won't really see the url much anyway...so it's ok for the user. but i really don't care...it's not a battle worth fighting for me. what could become more of an issue, is perhaps php4 vs php5, as we've seen with the class structure and so on. if we want to do something OO in php, we might want to think about moving completely to php5, since 4 is not considered real OO. and it'd make our implementation a bit easier to do once correctly. but in doing so, we don't want to lose any users. i've been on php5 for a long time now, but i can't talk for anyone else. would it be possible to take this step, or is it too early for something like that? in other news, i'll try to fix that bug in my php4 incompatible options class tonight, but then i'll need to take some time off. i've got some urgent issues to take care of outside of the project.=20 hopefully i can be back up and running in a week, in time to start implementing khaled's design. but i still am available to mail, since i can do that from work. /evan On 5/2/06, Kevin <ke...@dr...> wrote: > Dan Thrue wrote: > > Hi Kevin, > > > > I have put some examples up on rendering other views, executing other > > action, and howto redirect... Its in an updated tarball on the same > > location /vc.tar :) > > > > Regarding routing it was to control parameters and url layout... In > > rails you do something like: > > > > map.connect 'profiles/:username', :controller =3D> 'profile', :action > > =3D> 'view' > > > > I could easily implement something similar, as I've said in my two > > earlier posts, this is just coded as proof-of-concept but it should be > > fairly easy to make it fully usable... > > > Thanks. I also found this URL which covered it pretty well. > http://manuals.rubyonrails.com/read/chapter/65 > > Routes look pretty cool, but I don't think we need them right now. We > should be able to cover all of our actions/views by using the default > '<controller>/<action>/<paremeters>' URI format. > > The redirect examples were helpful. It just goes to show how easy it is > to extend. You added one method to the base controller, and now > there's a simple/flexible way of redirecting between pages. > > I like it. It's simple and easy to follow, yet pretty powerful. It's > based on rails, which a few of you already have experience with. I'll > try and converting one of our pages to it and see how it goes. > > -Kevin > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Fofredux-devel mailing list > Fof...@li... > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > |
From: Kevin <ke...@dr...> - 2006-05-02 14:01:29
|
Andrew Turner wrote: > I had thought about the possibilities of a Rails-style PHP. I've > actually been doing a lot of rails programming recently (in addition > to this project :) > > We don't need a full ORM, too much effort for something we don't > really need. I think the idea of routes is very interesting. Being > able to do fofredux/feeds/ajturner/new or something instead of the > nasty view.php?.. &... & .. & .. & > that we currently have. Though how are are we passing around these > view variables? Via a session? It is pretty ugly, isn't it? view.php?feed=&what=new&when=&howmany=&how=&category=2&tag=&view=normal&order=asc&search= With as many parameters as we use, some of them being mutually exclusive. I have a hard time seeing how routes can fill this need. I think our options are either session variables, or stick with query parameters. With session variables the URI does not contain all the context needed to generate the view. That breaks external linking, if anyone should want to do that. So we fall back to query parameters. It's ugly, It's not RESTful, but it works. > And I think the views will be very similar to the rhtml files of Ruby. > Simple calls in the HTML to PHP commands. In Dan's implementation, the view page is loaded/executed from a method on the controller. It has access to _$this_ as the controller object, so it can retrieve parameters or run methods on the controller. I would prefer a little more separation here, but it's okay for now. We'll just have to keep an eye on the view and make sure they're not doing anything they're not supposed to do. -Kevin |
From: Dan T. <da...@an...> - 2006-05-02 13:56:44
|
Hi Andrew, I dont know if you looked at my example... > that we currently have. Though how are are we passing around these > view variables? Via a session? But in my example each controller (and view) has the variables in a $this->get['id'] like the params[:id] or params['id'] in rails... :) For /:controller/:action/:id its working allready... Is it something I should take a shot at finishing for a simple integration for this project? Out of interest how many is reading this list? :) I have seen that not that many different people interact in the discussions. :) Regards, Dan On 5/2/06, Andrew Turner <ajt...@hi...> wrote: > I had thought about the possibilities of a Rails-style PHP. I've > actually been doing a lot of rails programming recently (in addition > to this project :) > > We don't need a full ORM, too much effort for something we don't > really need. I think the idea of routes is very interesting. Being > able to do fofredux/feeds/ajturner/new or something instead of the > nasty view.php?.. &... & .. & .. & > that we currently have. Though how are are we passing around these > view variables? Via a session? > > And I think the views will be very similar to the rhtml files of Ruby. > Simple calls in the HTML to PHP commands. > > Andrew > > On 5/1/06, Kevin <ke...@dr...> wrote: > > > > > This is just proof of concept... So no routing etc have been > > > implemented... > > > > > > http://v.rummanddan.dk/article/view/12344 > > > > > > You can get the source at... > > > > > > http://v.rummanddan.dk/vc.tar > > > > > > I would happily contribute to this project, so let me know if its > > > something you would go for... I didnt implement an ORM (ActiveRecord > > > in rails) thats a whole lot of work itself, but I read you are > > > discussing to do that yourself anyway :) > > > > Thanks, > > > > Just a few quick comments after peeking at the code: > > > > I like the REST style URI handling of the dispatcher. It makes it clea= n > > and pretty easy to follow. > > > > I'm not clear on what you mean by routing. Is that like forwarding fro= m > > one controller to another? (ex: redirecting to a login screen, etc) I= f > > you could provide an example on how that is used, it would help. > > > > We have a fair amount of code around accessing the database. I don't w= ant > > to try and convert it to an ORM package. It'd be too much work with lit= tle > > benefit. > > > > -- > > Kevin > > > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, securit= y? > > Get stuff done quickly with pre-integrated technology to make your job = easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > > _______________________________________________ > > Fofredux-devel mailing list > > Fof...@li... > > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > > > > > -- > Andrew Turner > ajt...@hi... 42.4266N x 83.4931W > http://highearthorbit.com Northville, Michigan, USA > |
From: Kevin <ke...@dr...> - 2006-05-02 13:35:21
|
Dan Thrue wrote: > Hi Kevin, > > I have put some examples up on rendering other views, executing other > action, and howto redirect... Its in an updated tarball on the same > location /vc.tar :) > > Regarding routing it was to control parameters and url layout... In > rails you do something like: > > map.connect 'profiles/:username', :controller => 'profile', :action > => 'view' > > I could easily implement something similar, as I've said in my two > earlier posts, this is just coded as proof-of-concept but it should be > fairly easy to make it fully usable... > Thanks. I also found this URL which covered it pretty well. http://manuals.rubyonrails.com/read/chapter/65 Routes look pretty cool, but I don't think we need them right now. We should be able to cover all of our actions/views by using the default '<controller>/<action>/<paremeters>' URI format. The redirect examples were helpful. It just goes to show how easy it is to extend. You added one method to the base controller, and now there's a simple/flexible way of redirecting between pages. I like it. It's simple and easy to follow, yet pretty powerful. It's based on rails, which a few of you already have experience with. I'll try and converting one of our pages to it and see how it goes. -Kevin |
From: Katie B. <ka...@ho...> - 2006-05-02 13:05:39
|
I just wanted to confirm for anyone who was wondering that I'm still here. :) I was out of town this past weekend (and without 'net access), so I've just been catching up on the flurry of activity that has been going on. So far I, with PHP4, have been experiencing exactly the same errors Miles has been reporting. And so far I agree with the consensus here that the PHP code is (or was) in need of refactoring but that a full-scale web framework would probably be overkill. I'm not very experienced with web app architecture (including MVC), so I'm watching what Kevin's doing with an eye to contribute where I can. -- Katie Bechtold http://hoteldetective.org/ |
From: Andrew T. <ajt...@hi...> - 2006-05-02 12:58:27
|
I had thought about the possibilities of a Rails-style PHP. I've actually been doing a lot of rails programming recently (in addition to this project :) We don't need a full ORM, too much effort for something we don't really need. I think the idea of routes is very interesting. Being able to do fofredux/feeds/ajturner/new or something instead of the nasty view.php?.. &... & .. & .. & that we currently have. Though how are are we passing around these view variables? Via a session? And I think the views will be very similar to the rhtml files of Ruby. Simple calls in the HTML to PHP commands. Andrew On 5/1/06, Kevin <ke...@dr...> wrote: > > > This is just proof of concept... So no routing etc have been > > implemented... > > > > http://v.rummanddan.dk/article/view/12344 > > > > You can get the source at... > > > > http://v.rummanddan.dk/vc.tar > > > > I would happily contribute to this project, so let me know if its > > something you would go for... I didnt implement an ORM (ActiveRecord > > in rails) thats a whole lot of work itself, but I read you are > > discussing to do that yourself anyway :) > > Thanks, > > Just a few quick comments after peeking at the code: > > I like the REST style URI handling of the dispatcher. It makes it clean > and pretty easy to follow. > > I'm not clear on what you mean by routing. Is that like forwarding from > one controller to another? (ex: redirecting to a login screen, etc) If > you could provide an example on how that is used, it would help. > > We have a fair amount of code around accessing the database. I don't wan= t > to try and convert it to an ORM package. It'd be too much work with littl= e > benefit. > > -- > Kevin > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Fofredux-devel mailing list > Fof...@li... > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > -- Andrew Turner ajt...@hi... 42.4266N x 83.4931W http://highearthorbit.com Northville, Michigan, USA |
From: Andrew T. <ajt...@hi...> - 2006-05-02 12:55:42
|
Confirmed - make it very pretty and compliant. We'll then hack it "to death" :) to hook it into FoFRedux. On 5/2/06, khaled Abou Alfa <bro...@gm...> wrote: > Just to confirm I'm going to mock up an html file with accompanying css f= ile > that brings everything together (how I think that is). You guys can then > move forward and hack it to death then I'll come back at the end once the > dust has settled and do a final cleanup of the css. > > Shouldn't be too difficult to deal with and I'll put a deadline for the e= nd > of the week (if I get it to you guys sooner then that'll be a bonus :) ). > > Re.Reboot Thanks Andrew, much appreciated, just need to updated the proje= ct > page so that there's more attention heading FOFR's way. > > > On 5/1/06, Andrew Turner <ajt...@hi...> wrote: > > > Kevin, you're correct that a lot of what you're doing is the Model. > Model interface is the CRUD stuff (for those who don't know - Create, > Read, Update Delete). The controller is any of the business-logic (as > Kevin mentioned). > > Evan - I don't expect someone to sit and rewrite all of FoFRedux - > though I did all the refactoring of FoF on the original fork (or > 'reduxing' :) since FoF was even worse about not DRY (Don't Repeat > Yourself). But if you subscribe to the Brooks 'Mythical Man-Month' > theory, then projects should have 1 architect and lots of monkeys. :) > I'm not prescribing that, but thought it a good idea to have 1 person > rip through and lay out functions and then as you mentioned, everyone > fill those functions in. > > The alternative is what has happened, which is some init.php functions > have HTML in them, some don't, some have diff't params, etc. > > So Kevin - don't worry too much about getting everything, but if it's > ok - just put out what functions and parameter interfaces there is to > the Model code (the db-side, which you are the expert at :) > > Khaled - I thought you were going to just create a "from-scratch" > HTML/CSS layout and then we would fill in the actual PHP code? (Btw - > nice reboot ;) > > Andrew > > On 5/1/06, Kevin <ke...@dr...> wrote: > > Kevin wrote: > > > Evan Roth wrote: > > > ... > > > > > >> in any case, in regards to my 2 points above: > > >> 1. i see that Kev began laying the foundation for this yesterday. > > >> i'm going to simply jump in and help out there, whenever i need a > > >> function, i'll simply add it to a class. this will eventually tone > > >> down init.php over time. if someone has a better idea on how to > > >> systematically chop at this let me know. in any case, i'd start in = on > > >> the options and users, since that's what i had on the table for the > > >> next step towards multi-user. > > >> [note: Kev, i'd recommend you rename actions/entities to > > >> controllers/models respectively, since that is more standard > > >> terminology] > > >> > > > I am by no means an expert at this sort of stuff, so I started with > > > the easiest. I created a class for each noun in the system. Most of > > > them conveniently map to db tables. I think of them as just simple > > > data objects with little/no behavior of their own. It should be the > > > job of something else to store/retrieve/alter them in the database. > > > (maybe that's the model) I didn't want them to be weighed down with > > > lots of methods. > > > > > > I pictured the actions directory as containing both the model stuff > > > and controller stuff. Essentially everything that is in init.php > > > right now. There will be classes for CRUD operations for persisting > > > and retrieving the entities from the database. Then there would be > > > other classes for higher level operations like updating feeds, > > > tagging/marking items, performing searches, and filtering/reformattin= g > > > the contents of items. > > > > > > Now that I think more about it, I can see where the entity > > > persistence related operations (model) really don't belong in with th= e > > > actions/controller. > > > > > > > I needed to refresh my memory on MVC. Here are a few good websites I > found. > > > > http://codesnipers.com/?q=3Dnode/247 > > > http://www.phppatterns.com/docs/design/archive/model_view_controller_patt= ern > > http://www.onlamp.com/pub/a/php/2005/09/15/mvc_intro.html > > > > So, I now realize, all of my thoughts/plans/ideas thus far have been > > devoted completely to the *model*. Essentially reorganizing the data > > access and other "business logic layer" activities. > > > > -Kevin > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, securit= y? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > _______________________________________________ > > Fofredux-devel mailing list > > Fof...@li... > > > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > > > > > -- > Andrew Turner > ajt...@hi... 42.4266N x 83.4931W > http://highearthorbit.com Northville, Michigan, USA > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Fofredux-devel mailing list > Fof...@li... > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > > > -- Andrew Turner ajt...@hi... 42.4266N x 83.4931W http://highearthorbit.com Northville, Michigan, USA |
From: khaled A. A. <bro...@gm...> - 2006-05-02 12:48:31
|
Good to have you on board Dan. It's a damn good group of peeps on this list= . On 5/1/06, Dan Thrue <rum...@gm...> wrote: > > Hi Guys, > > Been using FOFR since Khaled wrote about it the first time on his > site... And have since been reading this mailing-list... > > I love the MVC implementation in Rails and have implemented a > Rails-inspired proof-of-concept View-Controller in php 4 (old class > layout), its a while back I did it, and it was just for seing how > "less" code it was making it work as light as possible... > > To give a small hint of the implementation: > > <?php > > class ArticleController extends ApplicationController > { > function view() > { > // business logic > } > } > > ?> > > after wards the file > > ./views/article/view.php > > is included and "evaluated"... > > I could put up a small example where you could browse the source as > well... > > Best regards, > Dan (A happy user) > > PS. Good work on this project... > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Fofredux-devel mailing list > Fof...@li... > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > |
From: khaled A. A. <bro...@gm...> - 2006-05-02 12:47:31
|
Just to confirm I'm going to mock up an html file with accompanying css fil= e that brings everything together (how I think that is). You guys can then move forward and hack it to death then I'll come back at the end once the dust has settled and do a final cleanup of the css. Shouldn't be too difficult to deal with and I'll put a deadline for the end of the week (if I get it to you guys sooner then that'll be a bonus :) ). Re.Reboot Thanks Andrew, much appreciated, just need to updated the project page so that there's more attention heading FOFR's way. On 5/1/06, Andrew Turner <ajt...@hi...> wrote: > > Kevin, you're correct that a lot of what you're doing is the Model. > Model interface is the CRUD stuff (for those who don't know - Create, > Read, Update Delete). The controller is any of the business-logic (as > Kevin mentioned). > > Evan - I don't expect someone to sit and rewrite all of FoFRedux - > though I did all the refactoring of FoF on the original fork (or > 'reduxing' :) since FoF was even worse about not DRY (Don't Repeat > Yourself). But if you subscribe to the Brooks 'Mythical Man-Month' > theory, then projects should have 1 architect and lots of monkeys. :) > I'm not prescribing that, but thought it a good idea to have 1 person > rip through and lay out functions and then as you mentioned, everyone > fill those functions in. > > The alternative is what has happened, which is some init.php functions > have HTML in them, some don't, some have diff't params, etc. > > So Kevin - don't worry too much about getting everything, but if it's > ok - just put out what functions and parameter interfaces there is to > the Model code (the db-side, which you are the expert at :) > > Khaled - I thought you were going to just create a "from-scratch" > HTML/CSS layout and then we would fill in the actual PHP code? (Btw - > nice reboot ;) > > Andrew > > On 5/1/06, Kevin <ke...@dr...> wrote: > > Kevin wrote: > > > Evan Roth wrote: > > > ... > > > > > >> in any case, in regards to my 2 points above: > > >> 1. i see that Kev began laying the foundation for this yesterday. > > >> i'm going to simply jump in and help out there, whenever i need a > > >> function, i'll simply add it to a class. this will eventually tone > > >> down init.php over time. if someone has a better idea on how to > > >> systematically chop at this let me know. in any case, i'd start in > on > > >> the options and users, since that's what i had on the table for the > > >> next step towards multi-user. > > >> [note: Kev, i'd recommend you rename actions/entities to > > >> controllers/models respectively, since that is more standard > > >> terminology] > > >> > > > I am by no means an expert at this sort of stuff, so I started with > > > the easiest. I created a class for each noun in the system. Most of > > > them conveniently map to db tables. I think of them as just simple > > > data objects with little/no behavior of their own. It should be the > > > job of something else to store/retrieve/alter them in the database. > > > (maybe that's the model) I didn't want them to be weighed down with > > > lots of methods. > > > > > > I pictured the actions directory as containing both the model stuff > > > and controller stuff. Essentially everything that is in init.php > > > right now. There will be classes for CRUD operations for persisting > > > and retrieving the entities from the database. Then there would be > > > other classes for higher level operations like updating feeds, > > > tagging/marking items, performing searches, and filtering/reformattin= g > > > the contents of items. > > > > > > Now that I think more about it, I can see where the entity > > > persistence related operations (model) really don't belong in with th= e > > > actions/controller. > > > > > > > I needed to refresh my memory on MVC. Here are a few good websites I > found. > > > > http://codesnipers.com/?q=3Dnode/247 > > > http://www.phppatterns.com/docs/design/archive/model_view_controller_patt= ern > > http://www.onlamp.com/pub/a/php/2005/09/15/mvc_intro.html > > > > So, I now realize, all of my thoughts/plans/ideas thus far have been > > devoted completely to the *model*. Essentially reorganizing the data > > access and other "business logic layer" activities. > > > > -Kevin > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > _______________________________________________ > > Fofredux-devel mailing list > > Fof...@li... > > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > > > > > -- > Andrew Turner > ajt...@hi... 42.4266N x 83.4931W > http://highearthorbit.com Northville, Michigan, USA > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Fofredux-devel mailing list > Fof...@li... > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > |
From: Evan R. <eva...@gm...> - 2006-05-02 08:51:24
|
hey miles, i'd suggest flipping back to your last working version. i desperately need to install php4, in order to test the compatibility. On 5/2/06, Miles Beck <mil...@gm...> wrote: > On 5/1/06, Evan Roth <eva...@gm...> wrote: > > nothing has changed there...so it's strange. i'm assuming that > > fof_get_feeds is not coming back, which leads me to believe that the > > options are not being pulled out correctly. probably more > > non-php4-compliant code on my parts or a default value which was > > missing is causing something to break. > > > > - go to /options.php and see if the options fields are filled in with > > any values? any stored values will be populated. > > I'm not seeing any values stored in /options.php for the snapshot. I > tried adding some values but am not sure I did it in the right place. > > -Miles > |
From: Dan T. <da...@an...> - 2006-05-02 08:05:36
|
Hi Kevin, I have put some examples up on rendering other views, executing other action, and howto redirect... Its in an updated tarball on the same location /vc.tar :) Regarding routing it was to control parameters and url layout... In rails you do something like: map.connect 'profiles/:username', :controller =3D> 'profile', :action =3D= > 'view' I could easily implement something similar, as I've said in my two earlier posts, this is just coded as proof-of-concept but it should be fairly easy to make it fully usable... Here goes examples for redirection as you requested... Sorry for the long copy paste following: function red_string() { $this->redirect('/article/view/14231'); } function red_array() { $this->redirect( array( 'controller' =3D> 'article', 'action' =3D> 'view', 'id' =3D> '43223' ) ); } function view_render() { $this->some_var =3D "some var from other businness logic, id=3D" . $this->get['id']; $this->someitems =3D array( 'test other 1', 'test other 2', 'test other 3', 'test other 4' ); $this->render('/article/view'); } function view_action_render() { $this->view(); $this->render('/article/view'); } I would implement filters like in rails for a thing like Login screen, when I have some sparetime here at work I will do that... a before_filter is a method called return true or false wether or not a action and view should be processed :) /Dan On 5/2/06, Kevin <ke...@dr...> wrote: > > > This is just proof of concept... So no routing etc have been > > implemented... > > > > http://v.rummanddan.dk/article/view/12344 > > > > You can get the source at... > > > > http://v.rummanddan.dk/vc.tar > > > > I would happily contribute to this project, so let me know if its > > something you would go for... I didnt implement an ORM (ActiveRecord > > in rails) thats a whole lot of work itself, but I read you are > > discussing to do that yourself anyway :) > > Thanks, > > Just a few quick comments after peeking at the code: > > I like the REST style URI handling of the dispatcher. It makes it clean > and pretty easy to follow. > > I'm not clear on what you mean by routing. Is that like forwarding from > one controller to another? (ex: redirecting to a login screen, etc) If > you could provide an example on how that is used, it would help. > > We have a fair amount of code around accessing the database. I don't wan= t > to try and convert it to an ORM package. It'd be too much work with littl= e > benefit. > > -- > Kevin > > |
From: Kevin <ke...@dr...> - 2006-05-01 23:42:17
|
> This is just proof of concept... So no routing etc have been > implemented... > > http://v.rummanddan.dk/article/view/12344 > > You can get the source at... > > http://v.rummanddan.dk/vc.tar > > I would happily contribute to this project, so let me know if its > something you would go for... I didnt implement an ORM (ActiveRecord > in rails) thats a whole lot of work itself, but I read you are > discussing to do that yourself anyway :) Thanks, Just a few quick comments after peeking at the code: I like the REST style URI handling of the dispatcher. It makes it clean and pretty easy to follow. I'm not clear on what you mean by routing. Is that like forwarding from one controller to another? (ex: redirecting to a login screen, etc) If you could provide an example on how that is used, it would help. We have a fair amount of code around accessing the database. I don't wan= t to try and convert it to an ORM package. It'd be too much work with littl= e benefit. --=20 Kevin |
From: Dan T. <da...@an...> - 2006-05-01 23:06:15
|
This is just proof of concept... So no routing etc have been implemented... http://v.rummanddan.dk/article/view/12344 You can get the source at... http://v.rummanddan.dk/vc.tar I would happily contribute to this project, so let me know if its something you would go for... I didnt implement an ORM (ActiveRecord in rails) thats a whole lot of work itself, but I read you are discussing to do that yourself anyway :) /Dan On 5/1/06, Kevin <ke...@dr...> wrote: > > Hi Dan, > Welcome! I am definitely interested in seeing an example of your work. > I haven't tried rails yet, but hear really good things about it. > > > > Hi Guys, > > > > Been using FOFR since Khaled wrote about it the first time on his > > site... And have since been reading this mailing-list... > > > > I love the MVC implementation in Rails and have implemented a > > Rails-inspired proof-of-concept View-Controller in php 4 (old class > > layout), its a while back I did it, and it was just for seing how > > "less" code it was making it work as light as possible... > > > > To give a small hint of the implementation: > > > > <?php > > > > class ArticleController extends ApplicationController > > { > > function view() > > { > > // business logic > > } > > } > > > > ?> > > > > after wards the file > > > > ./views/article/view.php > > > > is included and "evaluated"... > > > > I could put up a small example where you could browse the source as > > well... > > > > Best regards, > > Dan (A happy user) > > > > PS. Good work on this project... > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, securit= y? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=120709&bid&3057&dat=12164= 2 > > _______________________________________________ > > Fofredux-devel mailing list > > Fof...@li... > > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > > > > > -- > Kevin > > |