Re: Bugs with DBO_Postgres ?

2006-09-14 Thread James Healy
> SELECT "Resp"."id" AS "Resp__id", "Resp"."first_name" AS > "Resp__first_name", "Resp"."last_name" AS "Resp__last_name", > "Resp"."company_id" AS "Resp__company_id", "Resp"."created" AS > "Resp__created", "Resp"."modified" AS "Resp__modified" FROM "workers" > AS "Resp" WHERE "Resp"."id" = DEFAULT

Re: passing url var to static page.

2006-09-14 Thread John Zimmerman
The extra parameters on the pages controller is being interpreted os subdirectories.  What you are seeing is the message stating that it couldn't find the page requested.So according to the pages controller. http://example.com/pages/aboutmaps to /app/views/pages/about.thtmland http://example.co

Re: Web Application authentication

2006-09-14 Thread Eric C Blount
First post!   Okay, what about this: Make a key file on the client server with an expiration date encoded in the key. Have your program check the key's expiration date every time it runs When the key expires, call a page on your site to get a new key with a new expiration date. That way, their site

Re: what's the matter of include?

2006-09-14 Thread JitZhang
but some page is html ,no all is thtml! http://etrade.webcrew.cn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

Re: what's the matter of include?

2006-09-14 Thread JitZhang
but some page is html ,no all is thtml! http://etrade.webcrew.cn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

Re: what's the matter of include?

2006-09-14 Thread JitZhang
but some page is html ,no all is thtml! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Relato de la nueva gran batalla de Fidel Por Miguel Bonasso

2006-09-14 Thread crow
http://www.pagina12.com.ar/diario/elpais/1-72984-2006-09-14.html Por Miguel Bonasso Desde La Habana Me había preparado para verlo, pero la realidad fue mucho más fuerte. Incluso le llevaba de regalo un ordenador de viaje. Es decir una suerte de cartuchera de cuero argentino, que en su interior t

Re: Access model/controler data without requestAction

2006-09-14 Thread Sebastian Macias
Thanks for the excellent comments Troy and AD7six. I think I was actually "trying to be too politically correct" and I didn't want to use others models inside my controllers so I was using requestAction to get data from other models but also to avoid having duplicated views as AD7six mentioned;

Re: Apache crashing on debug from PHP IDE

2006-09-14 Thread Chris Lamb
On Thu, 14 Sep 2006 09:55:09 -, Walter wrote: > > If anyone's interested, I found a solution: Karma to Walter for posting the solution - I find it annoying to Google something and only find other people asking the question. :) --lamby -- Chris Lamb, Cambs, UK WWW

Re: pages_controller

2006-09-14 Thread Chris Lamb
Evening. On Thu, 14 Sep 2006 14:43:17 -0700, [EMAIL PROTECTED] wrote: > I have added my own function to the pages_controller: > > function test() { > $this->set('abc', 'something'); > } > The controller does load the correct view! (test.thtml) But the $abc > var is Undefined! What's h

Re: Pear (Re: wiki parser)

2006-09-14 Thread John Zimmerman
Actually for some reason many of the PEAR libraries will not load properly if you try to use them via vendors.QuickForm is one of these.  It has been a while since I was having problems, but basically it had to do with the order in which things were being included and constants that were trying to

Re: Pear (Re: wiki parser)

2006-09-14 Thread codecowboy
Anyways!!! lol --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For mo

pages_controller

2006-09-14 Thread [EMAIL PROTECTED]
I have added my own function to the pages_controller: function test() { $this->set('abc', 'something'); } The controller does load the correct view! (test.thtml) But the $abc var is Undefined! I tried everyting, and can't figure out what is wrong! It works perfect if I put the function i

Re: ADMIN route and password-protection with http authentification

2006-09-14 Thread nate
If it is true, that's an awefully poor way of doing it. The Cake 1.2 Security component (which you can grab form here: https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/controller/components/security.php - just drop it in app/controllers/components to replace the Cake 1.1 version) has a

Re: Browse by category

2006-09-14 Thread Hanzgroove
One more thing you might know off the top pf your head. Does cake provide a mechanism for examining the url? For example: /browse/computers/web/programming/php If I could get everything after browse into an array I would be able to walk through the results from findAllThreaded() to find the spe

Re: Browse by category

2006-09-14 Thread Hanzgroove
Thanks AD7... Worked like a charm. I appreciate the help. Here are the results: http://www.six-twentyone.com/cake/findAllThreaded.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to th

Copying a db record

2006-09-14 Thread [EMAIL PROTECTED]
Let me apologize in advance - I'm very new to Cake and this simple problem is driving me crazy... I've looked all through the Wiki and tutorials looking for an example like this. I'd like to read a record from my database, change one or two of the fields, and then save it back as a *new* record (

Re: Re: Pear (Re: wiki parser)

2006-09-14 Thread Samuel DeVore
like a vendor, (precede with pear/ On 9/14/06, John David Anderson (_psychic_) <[EMAIL PROTECTED]> wrote: > > > On Sep 14, 2006, at 2:36 PM, Brian French wrote: > > > > > Actually, an extended questions to his... > > > > How could you use PEAR in cakephp? (no, im lazy ad didnt do even a > > bas

Re: Pear (Re: wiki parser)

2006-09-14 Thread John David Anderson (_psychic_)
On Sep 14, 2006, at 2:36 PM, Brian French wrote: > > Actually, an extended questions to his... > > How could you use PEAR in cakephp? (no, im lazy ad didnt do even a > basic > search) Let us know how that search turns out. ;o) Hint: vendors(). -- John > > codecowboy wrote: >> I am looking

Pear (Re: wiki parser)

2006-09-14 Thread Brian French
Actually, an extended questions to his... How could you use PEAR in cakephp? (no, im lazy ad didnt do even a basic search) codecowboy wrote: > I am looking to give site users the ability to input wiki syntax into > form fields. I have been looking for a good wiki text parser and I > have only

wiki parser

2006-09-14 Thread codecowboy
I am looking to give site users the ability to input wiki syntax into form fields. I have been looking for a good wiki text parser and I have only found a few. The ones that I have found were all from PEAR. My requirements are that the parser must be extensible. Our site will have some special

Re: Midwest Cake Bakers

2006-09-14 Thread codecowboy
Hi Walker, We are certainly still working on our project. We are also still looking to add some team members. Please shoot me an email with your resume and/or any urls to relevant work that you have done: guy dot jacks at lifeagora dot com Or you can just responde to this post with your email

Re: Re: Dreaded Paypal

2006-09-14 Thread Samuel DeVore
I have a similar issue with an internal payment gateway and created the payment as a model with not backing store. And some simplified methods On 9/14/06, Jon Bennett <[EMAIL PROTECTED]> wrote: > > > http://clients.thephotoedge.com It is called peGallery. It is online sales > > solution for >

Re: Browse by category

2006-09-14 Thread AD7six
Have you tried the method findAllThreaded? HTH, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this grou

Re: Midwest Cake Bakers

2006-09-14 Thread SignalFade
Code Cowboy, You wrote an email on Aug. 11th regarding putting together a team to build a website. Are you still working on that? Still putting together the team? I would be interested on learning more about the project and possibly being on the team myself. Thanks Walker On 8/11/06, codecowboy

Browse by category

2006-09-14 Thread Hanzgroove
Hi guys, I've been wrestling with recursion for a few days now and its driving me nuts. Maybe someone can shed some light on how to accomplish what I'm trying to do. I have a table called "categories" that is setup to handle the hierarchy of categories for my project. For example: categories --

Re: Web Application authentication

2006-09-14 Thread nate
The serial number verification seems like a good idea, as long as you can ensure that buyers and friends-of-buyers aren't inclined to hack it. However, I've always been more a fan of a business model that invloves (a) some or all of the software being hosted and/or (b) keeping customers dependent

Re: Autocomplete

2006-09-14 Thread nate
http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter Try 'afterUpdateElement'. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegrou

Re: Routes with multiple levels

2006-09-14 Thread DaiBach
Nice Nate, 1.2 is starting to sound like some seriously tasty bit of Cake. Might go and have a butchers at it since I'm just developing the site to try out Cake. Cheers for the info and help. --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: what's the matter of include?

2006-09-14 Thread nate
Well, SSI includes are a bad idea in general. Instead, use: However, if you're doing the include within Cake, there is probably a better, more specialized function available. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Dreaded Paypal

2006-09-14 Thread Jon Bennett
> http://clients.thephotoedge.com It is called peGallery. It is online sales > solution for > photographers to own. There is already MANY hosted solutions and some do an > excellent job (collages.net). I mainly want to sell to people that > like to own their own program and like the ability to

Re: passing url var to static page.

2006-09-14 Thread John David Anderson (_psychic_)
On Sep 14, 2006, at 12:44 PM, [EMAIL PROTECTED] wrote: > > I am trying to pass a variable to a static page through the > pages_controller like this: /pages/about_us/1 but that gives this > error: > > aboutus1.thtml for action aboutus1 in controller Pages could not be > found. > > If I remove the

passing url var to static page.

2006-09-14 Thread [EMAIL PROTECTED]
I am trying to pass a variable to a static page through the pages_controller like this: /pages/about_us/1 but that gives this error: aboutus1.thtml for action aboutus1 in controller Pages could not be found. If I remove the /1 the page displays fine. Best regards. Asbjørn Morell. --~--~--

Re: Dreaded Paypal

2006-09-14 Thread [EMAIL PROTECTED]
http://clients.thephotoedge.com It is called peGallery. It is online sales solution for photographers to own. There is already MANY hosted solutions and some do an excellent job (collages.net). I mainly want to sell to people that like to own their own program and like the ability to have it c

Re: Routes with multiple levels

2006-09-14 Thread nate
jitka: to be quite honest, I have no idea. I didn't implement the plugins feature, and it's pretty much the only part of the framework that I haven't worked on much, but maybe PhpNut could weigh in here. However, the admin stuff should still work with it by default, no other changes necessary. S

Re: Help needed with implementing a datagrid

2006-09-14 Thread [EMAIL PROTECTED]
http://encytemedia.com/event-selectors/ Here is an example of clicking on a row and it creates a new row. What you would do is first make the HTML code to make it work. Make a link that would create the number of rows you want based on the link. So, maybe it is a URL passed parameter. Then, af

Re: Dreaded Paypal

2006-09-14 Thread Jon Bennett
> I know that in order to use cURL it has to be installed on the server > right? That is why I am not choosing to use it. fputs and fgets > should work on most PHP servers? Or at least on more than cURL is > installed on. At least that is the assumption I am working on since my > application i

Re: display enum values in dropdown

2006-09-14 Thread [EMAIL PROTECTED]
http://cakeforge.org/snippet/download.php?type=snippet&id=210 Perhaps try this code here. Looks like it might be a little more robust. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to t

Re: what's the matter of include?

2006-09-14 Thread [EMAIL PROTECTED]
If that is a header you need to instead make it CakePHP and put it in the views/layout/default.thtml that is used by all methods to make output. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To p

Re: Dreaded Paypal

2006-09-14 Thread [EMAIL PROTECTED]
I know that in order to use cURL it has to be installed on the server right? That is why I am not choosing to use it. fputs and fgets should work on most PHP servers? Or at least on more than cURL is installed on. At least that is the assumption I am working on since my application is distribu

Re: Web Application authentication

2006-09-14 Thread [EMAIL PROTECTED]
No I am not Zend Guarding it. But the people that I am installing this application for don't understand HTML much less PHP and CakePHP at that. It is just that I need some method to ensure that they don't change passwords to their FTP server on me and stop paying and are allowed to keep using th

Help needed with implementing a datagrid

2006-09-14 Thread green-mamba
Hi, I will REALLY appreciate some help and guidance on this. I need to (well, want to, at any rate) implement a 1 to many data entry form, with the 1 record info at the top of the screen and the 'many' potential records below - in a grid format. Luckily (?) we are just talking data entry at this

display enum values in dropdown

2006-09-14 Thread TWIOF
I Know this has been posted before. I've been using an example from an earlier post but it only produces one of my 5 my options. This is in the model: function generateRatingList() { foreach($this->_tableInfo->value AS $field) { if($field['name'] == 'rating

what's the matter of include?

2006-09-14 Thread JitZhang
USE BUG: Fatal error: Cannot redeclare loadmodels() (previously declared in /home/wcsh/www/etrade.webcrew.cn/cake/basics.php:53) in /home/wcsh/www/etrade.webcrew.cn/cake/basics.php on line 80 How Can I do it? --~--~-~--~~~---~--~~ You received this message b

Autocomplete

2006-09-14 Thread [EMAIL PROTECTED]
Hi, i need to trigger a particular js function after one of the autocomplete results has been selected to populate other formfields depending on the result being selected. Any hints on how to hook in there or alternative ideas? Cheers, Nikolas --~--~-~--~~~---~--~-

ADMIN route and password-protection with http authentification

2006-09-14 Thread purepear
Hi, there was a post that says: "One, as far as I know, undocumented advantage with admin routes is that you can easily password-protect them with http authentification. If you set up .htaccess to password-protect a directory called 'admin' in your root directory (so alongside 'cake' and 'app')

Re: Re: Pages indexed by Google with CAKE_SESSION_COOKIE parameter on querystring

2006-09-14 Thread Samuel DeVore
I have found that sometimes the session id can show up in the urls when there is a trailing eol (end of line char) in a helper or component Sam D On 9/14/06, nate <[EMAIL PROTECTED]> wrote: > > In order to completely disable it, I put the following in my > app/config/bootstrap.php (note that you

Re: Dreaded Paypal

2006-09-14 Thread Marcelo de Moraes Serpa
>I know some people out there hate Paypal,I never had any problems with PayPal and I find it to be really useful and convenient. I really like it.On 9/14/06, Jon Bennett <[EMAIL PROTECTED]> wrote: > And you are using the complete method to save all pertinent Paypal> returned values into a table.ac

Re: Routes with multiple levels

2006-09-14 Thread jitka
Sorry for OT: > $Route->connect("/:team/news/*", array("controller" => "news", "action" => > "index")); How looks similar route for plugin's controller, please? I mean: not for 'main' (named as plugin) controller only, for another plugin's controllers also.. ;-) Is there possibility to combine

Re: Web Application authentication

2006-09-14 Thread Darian Anthony Patrick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > I have this brilliant idea and wanted to confirm it's brilliance. In > looking at the Paypal IPN I notice they use fgets and fputs to send > HTML posts. I had forgotten about this since starting CakePHP, but am > renewed b

Re: Major help on multiple lists and HATBM

2006-09-14 Thread [EMAIL PROTECTED]
Absolutely YES! I love Cake...I've (and currently I'm) developed an entire (and very complex) Intranet application...but this "issue" in saving HATBM relations; if only it was possible to save them as easily as you can do with, for example, belongsTo relations. --~--~-~--~~--

Re: Dreaded Paypal

2006-09-14 Thread Jon Bennett
> And you are using the complete method to save all pertinent Paypal > returned values into a table. actually, no, I'm not saving ALL data from PP in the table, only what I need, which yes is handled by the 'complete' method. I do however save everything that PP sends me as a text file on the ser

Re: Dreaded Paypal

2006-09-14 Thread Jon Bennett
> See I don't have HTTPS so I cannot use the cURL. I am using fgets and > fputs, but your example does still help. I don't have https but cURL has worked fine, at least in sandbox mode. > And you are using the complete method to save all pertinent Paypal > returned values into a table. Are you

Re: Major help on multiple lists and HATBM

2006-09-14 Thread [EMAIL PROTECTED]
It still makes the developers life easier. And there is a mechanism to save HABTM relationships. But the way you are wanting to save them probably isn't using that mechanism so you are left to your own devices. Keep in mind these devices of running custom SQL (what you wrote a whole four custom

Re: Routes with multiple levels

2006-09-14 Thread DaiBach
nate wrote: > Forgot to add this one: > > $Route->connect("/:team/:group/news/*, array("controller" => "news", > "action" => "index")); > > Again, the group name would be accessible in the controller as > $this->params["group"]. Great idea, it'll certainly get the job done. Just tried it out an

Re: Routes with multiple levels

2006-09-14 Thread [EMAIL PROTECTED]
Man you know what. I really love the : thing about routes. When did that make it's way in? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegrou

Web Application authentication

2006-09-14 Thread [EMAIL PROTECTED]
I have this brilliant idea and wanted to confirm it's brilliance. In looking at the Paypal IPN I notice they use fgets and fputs to send HTML posts. I had forgotten about this since starting CakePHP, but am renewed by the possibilities. What I am thinking is that each time I install my applicat

Re: Major help on multiple lists and HATBM

2006-09-14 Thread [EMAIL PROTECTED]
Well, I've made some custom SQL too (also to avoid while editing the inserting of already-existant records) but I don't see the point; CakePHP is made to make developer life easier...if we have to write custom SQL I think it's not soo good. Maybe there's a more elegant way and I didn't found it...

Re: Dreaded Paypal

2006-09-14 Thread [EMAIL PROTECTED]
See I don't have HTTPS so I cannot use the cURL. I am using fgets and fputs, but your example does still help. And you are using the complete method to save all pertinent Paypal returned values into a table. Are you doing any checking of the txn_id or verifying amounts? --~--~-~--~---

Re: Routes with multiple levels

2006-09-14 Thread nate
Forgot to add this one: $Route->connect("/:team/:group/news/*, array("controller" => "news", "action" => "index")); Again, the group name would be accessible in the controller as $this->params["group"]. --~--~-~--~~~---~--~~ You received this message because you

Re: Routes with multiple levels

2006-09-14 Thread nate
Easier than checking if the first part is a team would be to check if the second part is "news". If this is a consistent pattern that would not appear in any other URL, you can do the following in app/config/routes.php: $Route->connect("/:team/news/*", array("controller" => "news", "action" => "

Re: Dreaded Paypal

2006-09-14 Thread Jon Bennett
> I have, I used cURL to confirm it, and made a component that should really read: I have, I created a component that used cURL to comfirm ;) jb -- jon bennett t: +44 (0) 1225 341 039 w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~--

Re: Dreaded Paypal

2006-09-14 Thread Jon Bennett
> I know some people out there hate Paypal, but I happen to like them. I > am looking at using the IPN with my CakePHP application to confirm > order payment. What I am wanting to know is if anyone has done this in > a CakePHP way yet? Or am I building the car starting with the frame? > > Would

Re: Pages indexed by Google with CAKE_SESSION_COOKIE parameter on querystring

2006-09-14 Thread nate
In order to completely disable it, I put the following in my app/config/bootstrap.php (note that you can also make the corresponding changes in php.ini): ini_set('session.use_trans_sid', 0); ini_set('url_rewriter.tags', ''); --~--~-~--~~~---~--~~ You received thi

Re: Apache crashing on debug from PHP IDE

2006-09-14 Thread nate
It has to do with the fact that each release of the Zend Debugger is only fully compatible with a particular build of PHP (it'll usually say which one). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gro

Dreaded Paypal

2006-09-14 Thread [EMAIL PROTECTED]
I know some people out there hate Paypal, but I happen to like them. I am looking at using the IPN with my CakePHP application to confirm order payment. What I am wanting to know is if anyone has done this in a CakePHP way yet? Or am I building the car starting with the frame? Would you sugges

Re: Major help on multiple lists and HATBM

2006-09-14 Thread [EMAIL PROTECTED]
I had a similiar problem of needing to save coupons to orders. It is a HABTM relationship, but the order is saved well before the user tries to enter coupons. I ended up writing custom SQL to update the join table of the HABTM relationship. So, in this manner it is much like a belongsTo or hasM

Re: Pages indexed by Google with CAKE_SESSION_COOKIE parameter on querystring

2006-09-14 Thread [EMAIL PROTECTED]
This is a PHP setting not a Cake setting. It is one that when sessions can't do cookies it attaches as part of the URL. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

Re: populating model data

2006-09-14 Thread [EMAIL PROTECTED]
Think about once you set a variable in your controller. Then, look at your view code. If you have a complex view suddenly you are relying on your naming conventions to keep things straight. $user['id'] $role['id']. Also, then you would have to remember whether it is an association or not so so

Re: Access model/controler data without requestAction

2006-09-14 Thread [EMAIL PROTECTED]
A good place I use requestaction is for subtotal of shopping cart. This way I can place the subtotal of the shopping cart on as many views as I want just by calling the requestaction. I could have just as easily made it a method of the model, but then I would have to set variable for use in the v

Re: Pagination

2006-09-14 Thread Gregory Stewart
I mean to say, I went with option 0, doh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Pagination

2006-09-14 Thread Gregory Stewart
Naturally I would use option #1, but I my form has a dozen or so fields, potentially increasing. Maybe it is just me, but I think that would make things kind of complicated. Anyways, I went with option one. This is what I did: function index($conditions=NULL) { if ((!isset($conditions)) OR ($co

Routes with multiple levels

2006-09-14 Thread DaiBach
Hi, Can't figure out how to get this working in Cake so I thought this'd be the best place to ask. I'm after having URL's like... /news/ So all the news for the whole site /team1/news/ Show news from team1 and it's groups /team1/group1/news Show only group1 news /team2/news/ Show team2 news An

Re: Save function executes before it should

2006-09-14 Thread zipman
AD7six war right. What i get in the log is 06-09-14 14:32:47 Error: Package_credits: 1 06-09-14 14:32:47 Error: Old_credits: 0 06-09-14 14:32:47 Error: New_credits: 1 06-09-14 14:32:48 Error: Package_credits: 1 06-09-14 14:32:48 Error: Old_credits: 1 06-09-14 14:32:48 Error: New_credits: 2 for j

Re: populating model data

2006-09-14 Thread AD7six
I shouldn´t have pressed return before thinking a fraction of a second more: And, what if your model has a field with the same name as a related model? User id = 1 name = "Bob" Comment = "great chap" User hasMany Comment This is likely to change in 1.2 according to other posts but: 1

Pages indexed by Google with CAKE_SESSION_COOKIE parameter on querystring

2006-09-14 Thread [EMAIL PROTECTED]
For example: www.penistone-advertiser.co.uk/help/about?CAKEPHP=92853e155fe2fa284bea8b27a1ff8197 i realise that when google crawls a site, it doesn't have cookies enabled resulting in the CAKE_SESSION_COOKIE parameter (ie CAKEPHP=) being added to the querystring, but how do i prevent this? I do

Re: Session->Write() problems

2006-09-14 Thread [EMAIL PROTECTED]
Hi, Now all works fine, I think the problem was caused to say No to the "use sessions" question when baked anothers MVC and visit these pages after authentication. Thanks to all faemino --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: populating model data

2006-09-14 Thread AD7six
How's that going to work if there are more than one result (i.e. the result of a findAll)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups

populating model data

2006-09-14 Thread Evan
is it just me or is the way the model data array is being populated too confusing? for example: for the User model it's defined this way: $this->User->data['User']['id'] = 1; $this->User->data['User']['name'] = 'my name'; for the Role model with associated User model (hasMany): $this->Role->d

Major help on multiple lists and HATBM

2006-09-14 Thread [EMAIL PROTECTED]
Hi all! I've already searched for this topic around the Net and this newsgroup and I didn't found anything; anyway, here's the issue: I've a review that can be submitted by some groups so in the "add" view I've a multiple list with the groups. To here, no problems at all. The big one comes when

audio file upload to database

2006-09-14 Thread warrenchua
hi im trying to upload an audio file to the database. but when i download from the database, i get broken sounds. before i have problem with uploading images. as a solution, i just add addslash function, and it worked out fine. but now, im doing the same procedure with audio sounds such as mp3.

Re: Access model/controler data without requestAction

2006-09-14 Thread [EMAIL PROTECTED]
> /app/views/elements/blog.thtml > blog stuff > foreach ($data['Comment'] as $comment) { > echo $this->renderElement ("comment",Array("data"=>$comment)); // > probably need to rearrange the comment array a bit, writing from > memory. > } for a more accurate description of this rearrang

Re: Apache crashing on debug from PHP IDE

2006-09-14 Thread Walter
If anyone's interested, I found a solution: Copy php3apache2.dll, php5apache.dll and php5ts.dll from ZendPlatform\bin to apache\bin. This seems to bring the PHP version down to 5.0.5 but enables debugging. w. Walter wrote: > I just started playing with Cake and there must be something wrong > g

Re: Displaying full name in (almost) every view

2006-09-14 Thread Martin Schapendonk
Thanks for all your suggestions. I will definitely look into othAuth. -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email t

Re: Access model/controler data without requestAction

2006-09-14 Thread AD7six
Hi Sebastian, I think that requestAction is often considered/used when a method that should be in a model is located in a controller - if you are only retreiving data from a model, possibly after manipulating it a bit, consider moving the logic that is in your controller to the model and then sim

Re: helper and model in every page

2006-09-14 Thread AD7six
On second thoughts, I would do this: function __construct( ) { parent::__construct(); if (!in_array('Category', $this->uses)) { $this->uses[] = 'Category'; $this->Category = new Category; } } Otherwise, for controllers that don't have a value d

Re: helper and model in every page

2006-09-14 Thread AD7six
Yes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options,

Re: Pagination

2006-09-14 Thread AD7six
Hi Greg, There are a number of possibilities, and I didn't want to clutter the wiki with superfluous info. 0) If the parameters can be passed by the url, and you specify "url" in the 3rd parameter to pass to the component, this url will be used as the "base" for all links. 1) If you use PRG (Po