Re: [Phphtmllib-devel] postgresql
Status: Beta
Brought to you by:
hemna
From: Walter A. B. I. <wab...@3g...> - 2004-03-07 03:01:27
|
>=20 > ok :) You get to use X at work?!? That is pretty cool-- sounds like=20 > you have a lot of freedom where you work. What IDE do you develop in? ---yah I'm a linux guy full time. I run Gentoo linux on all of my machin= es now. =20 I use Visual Slick Edit as my IDE. Its a great environment for developin= g in linux. Unfortunatly its pretty expensive. I have been able to get my wo= rk to buy it for me :) > Birmingham to visit friends for 6 or 7 days then Philidelphia for a=20 > conference for my wife. More fun vacations out there but this is what=20 > we are doing... ---sounds like a fun trip! have a good time. =20 > Form wizard is going to take a while unfortunately. ---hehe its ok. It's been sitting there stale for a while as it is. :( = =20 =20 > > > > So you were playing with the PEARSQLDataListSource and using PEAR's= =20 > > Postgres > > driver and it didn't work? I usually don't use PEAR myself, so I=20 > > haven't played > > with it in ages. I usually use ADODB, as it is much more feature=20 > > rich, and is > > faster then PEAR. I'm a bit of a contributor to ADODB as well. > > >=20 > It didn't work-- It might have been specifics of the PEAR::DB object I=20 > was throwing at it-- I will make sure before I change anything. I will= =20 > also test mysql. >=20 > I would love to switch to ADODB but I have 700 or 800 files using=20 > PEAR::DB and at this point I don't want to use it *that* much :) ---heh yah. I hear ya. I am going through the process of converting a h= ome baked DB object to adodb at my job now. It's a daunting task, but one th= at will pay off in the long run. =20 > ok-- I didn't want to dive in and start changing too much without=20 > getting a sense of how much you wanted to be involved in my changes... ---thats kewl. I appreciate it. Just give me a heads up when you make t= he changes. I'll be soon updating the cvs repository on sourceforge to auto= email us when commits are made to the module. > I have been kind of looking for a project to contribute to. Everyone=20 > is so hot on template engines lately and they just don't do it for me--= =20 > phphtmllib is much more my style. I'd like to see it become more=20 > popular... eventually I want to write some more examples and tutorials=20 > which will hopefully make it more accessible to people. Get more=20 > people involved and that will mean more widgets. ----yah I hear ya. I've done template based apps before, but they are invariably a mess. A lot of folks say that templating gives you the sepe= ration of logic from presentation, but not really. The entire logic of any temp= late based app, spends all of its time populating replacement variables which = are specific to the presentation it wants. So I don't really buy into it. T= his is besides the overly ornate and complicated template parsers, which just do= esn't makes sense to me. The only way I'd ever go w/ a 'template' style is usi= ng include(). I've always been a big fan of OOP, and widgets for html seemed to make = sense to me at least. =20 =20 > One more question. I was tinkering with a DataList and I wanted to=20 > test the action column stuff. I tried this in user_setup() >=20 > $this->add_action_column('checkbox', 'FIRST', 'payment_id'); > $this->action_button('test', 'test'); >=20 > and the checkbox worked but the action button did not show up. What do= =20 > I have to do do get an action button? ---you almost have it. action_button() returns a button object that is p= laced in the actionbar. So the proper way to do it is to override the actionbar_cell() method and return the buttons you want to see there function actionbar_cell() { $c =3D container(); $c->add( $this->action_button('test', 'test'), _HTML_SPACE, $this->action_button('foo', 'bar_url.php?id=3D'.$_REQUEST['che= ckbox']) ); return $c; } =20 Walt |