Cake best practices for mobile browser development

2008-05-08 Thread David
Hey folks, I'm very new to Cake and couldn't find this satisfactorily addressed elsewhere: I'm developing an application for both mobile and desktop browsers. On the user end, I'd like this to be seamless, so no "/mobile" etc. Just curious as to be best practice for accomplishing this. First, I

Re: find('all') combine problem

2008-05-08 Thread Grant Cox
$teams = $this->Team->find('all', array('fields' => array('Team.id','Team.firstName','Team.lastName'))); $team_list = Set::combine($teams, '{n}.Team.id', array('%s %s', '{n}.Team.firstName', '{n}.Team.lastName')); On May 8, 3:48 pm, jwerd <[EMAIL PROTECTED]> wrote: > I always follow the CakePHP

Re: find('all') combine problem

2008-05-08 Thread grigri
Here ya go: $teams = $this->Team->find('all', array( 'fields' => array('id', 'firstName', 'lastName'), 'recursive' => -1 )); $result = Set::combine( $teams, '{n}.Team.id', array('%s %s', '{n}.Team.firstName', '{n}.Team.lastName') ); See http://groups.google.com/group/cake-php/browse_t

Re: Cake best practices for mobile browser development

2008-05-08 Thread Marcin Domanski
Hey > I'm developing an application for both mobile and desktop browsers. On > the user end, I'd like this to be seamless, so no "/mobile" etc. Just > curious as to be best practice for accomplishing this. thats always the best option although i see additionally many ppl using m.example.com ,

Re: Open Flash Charts in Cake

2008-05-08 Thread Marcin Domanski
i always used libchart [1] - quick, easy , nicely written [1] http://naku.dohcrew.com/libchart/pages/introduction/ On Thu, May 8, 2008 at 7:13 AM, Elmo <[EMAIL PROTECTED]> wrote: > > Also check out this blog entry about App::import(): > > http://cakebaker.42dh.com/2008/03/26/loading-vendor-fil

Re: Cake best practices for mobile browser development

2008-05-08 Thread David
Thanks for the response! The view in a desktop browser would be significantly more robust (i.e. complex), so it would not be able to display properly in most mobile browsers (except in the iphone's safari). By "switching," I meant maintaing one .ctp file for everything and having an isMobile in ea

Re: Cake best practices for mobile browser development

2008-05-08 Thread [EMAIL PROTECTED]
I am actually of the opposite opinion regarding /mobile and m.example.com. I remember seeing sites use: m.example.com, wap.example.com, mob.example.com, mobile.example.com The result for me is that I hardly ever bother trying to guess which one is used and thuss do not use the mobile verson of th

Re: Warning message infecting thumbnail images occasionally

2008-05-08 Thread acoustic_overdrive
Actually ignore that last one, I had the permissions set wrongly on this second server. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com T

Max number of save()'s in a loop

2008-05-08 Thread Kyle Decot
I have a loop that I am running a $this->Word->save() in, and I need to be able to do the maximum of loops possible but it gets through about 4000 loops and then just stops. I've instructed the loop to go until it reaches 50,000 so I'm not sure why it's doing this. Any ideas ? --~--~-~--~-

Re: Max number of save()'s in a loop

2008-05-08 Thread Dr. Tarique Sani
On Thu, May 8, 2008 at 2:48 PM, Kyle Decot <[EMAIL PROTECTED]> wrote: > > I have a loop that I am running a $this->Word->save() in, and I need > to be able to do the maximum of loops possible but it gets through > about 4000 loops and then just stops. I've instructed the loop to go > until it reac

Re: Warning message infecting thumbnail images occasionally

2008-05-08 Thread acoustic_overdrive
I thought permissions had fixed it but it was actually due to me setting debug to 0. If debug is > 0, I still get random warnings from the cache engine every so often which corrupt my thumbnails. They are always to do with that particular file: cache/persistent/cake_core_object_map I have tried

Re: Strange habtm problem - saving in other tables

2008-05-08 Thread largon
If I comment out other habtm relationships, leaving only var $hasAndBelongsToMany = array( 'HasAsFriend' => array( 'className' => 'User', 'joinTable' => 'friends', 'foreignKey' => 'user_id', 'as

Re: Cake best practices for mobile browser development

2008-05-08 Thread Marcin Domanski
On Thu, May 8, 2008 at 10:32 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I am actually of the opposite opinion regarding /mobile and > m.example.com. > I remember seeing sites use: m.example.com, wap.example.com, > mob.example.com, mobile.example.com > The result for me is that I h

Re: Strange habtm problem - saving in other tables

2008-05-08 Thread largon
I added some logging just to make sure the relationships are unbound: $this->User->unbindAll(array('hasAndBelongsToMany' => array('HasAsFriend'))); $this->log("current habtm: " . print_r($this->User- >hasAndBelongsToMany, true)); The error log reads: 2008-05-08 17:03:49

Re: Cake best practices for mobile browser development

2008-05-08 Thread David
Martin, would extension parsing be a way to avoid running the resource intensive browser check with every pageview? On May 8, 4:32 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I am actually of the opposite opinion regarding /mobile and > m.example.com. > I remember seeing sites use: m.exa

Re: Warning message infecting thumbnail images occasionally

2008-05-08 Thread acoustic_overdrive
I've just moved the site to another server and I'm getting the same problem - one or two of the thumbnails are getting corrupted at random - but this time the warning message is slightly different: Warning (2): fopen(/home/sites/xx.com/public_html/app/tmp/ cache/persistent/cake_core_o

Re: Cake best practices for mobile browser development

2008-05-08 Thread [EMAIL PROTECTED]
Absolutely, I agree with you on that note. You should always provide alternatives to detection. :) David: Yes it can. But like Marcin wrote, it is not a very expensive check (and extension parsing also cost execution-time). When checking each request you would gain the advantage that any "deep" l

Re: Max number of save()'s in a loop

2008-05-08 Thread Kyle Decot
I'm not sure how to do that. Any suggestions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email

saveAll with three levels

2008-05-08 Thread Jose Selesan
Hi all, does anybody know if I can save a model with a hasMany relation and each of the related models has a hasMany relation? Hi have a model called Trivia with a 'hasMany' relation to model Pregunta and model Pregunta has a 'hasMany' relation to model Opcion. But when I call $this->Trivia->saveA

Re: Strange habtm problem - saving in other tables

2008-05-08 Thread largon
For anybody who's following this thread, or had the same problem, or dived in during a google: This seems like a bug mentioned at https://trac.cakephp.org/ticket/4558 After adding a unset($newValues) as the ticket mentions the problem goes away. Thanks all! On May 8, 5:08 pm, largon <[EMAIL PRO

Re: saveAll with three levels

2008-05-08 Thread Dr. Tarique Sani
On Thu, May 8, 2008 at 4:50 PM, Jose Selesan <[EMAIL PROTECTED]> wrote: > Hi all, does anybody know if I can save a model with a hasMany relation > and each of the related models has a hasMany relation? > > Hi have a model called Trivia with a 'hasMany' relation to model Pregunta > and model Pregu

Re: Something on the top of CakePHP

2008-05-08 Thread Chris Hartjes
On Thu, May 8, 2008 at 12:01 AM, b logica <[EMAIL PROTECTED]> wrote: > > I'm not sure if you got that backward, but I'd think it'd always be > easier if you know the other person has a better idea than yourself. > *Knowing* and *accepting* are two different things. Computer programmers tend to b

Re: Open Flash Charts in Cake

2008-05-08 Thread dr. Hannibal Lecter
@Marcin: Thanks for sharing that one, very nice! On May 8, 10:20 am, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > i always used libchart [1] - quick, easy , nicely written > > [1]http://naku.dohcrew.com/libchart/pages/introduction/ > > On Thu, May 8, 2008 at 7:13 AM, Elmo <[EMAIL PROTECTED]> wr

Re: Cake best practices for mobile browser development

2008-05-08 Thread schneimi
I had the idea to handle this with an extra route to mobile actions in config/routes.php: $subdomain = substr(env("HTTP_HOST"), 0, strpos(env("HTTP_HOST"), ".")); if (strlen($subdomain) > 0 && ($subdomain == "m" || $subdomain == "mobile")) { Router::connect(':controller/:action/*', array('pref

Re: How to access Cake Session Variables from a Stand Alone PHP script

2008-05-08 Thread bharath kumar
Hi Sliv, In Login controller i have set the user details using this line. $this->Session->write('CURRENT_USER', $someone['User']); and in the php script, which is oustside the cake directory, i am trying to use the CURRENT_USER in the php script using $_SESSION. which i couldn access On Thu, May

hi guys

2008-05-08 Thread ID
I have a Centos5.1 box, loaded with php-5.1.6 httpd-2.2.3(apache) mysql-5.0.22 following this video http://cakephp.org/screencasts/view/3 and this tutor: http://manual.cakephp.org/view/326/the-cake-blog-tutorial i have checked out from svn repo svn co https://svn.cakephp.org/repo/trunk/cake/1.1

Session Lost In IE

2008-05-08 Thread bharath kumar
Hi All, I have got a strange problem in IE-6.0. we have built a browser plugin(Toolbar) for our application, which changes its contents dynamically after loggin in to our application. we have used Best toolbar studio to build a toolbar . what i am experiencing is, when i used the below java script

Cake integration with other app and session

2008-05-08 Thread Ziad
Hi everyone, I have an issue that I'd like people's comment(s) on. I am trying to integrate an existing app with Cake. We are planning to move the entire app over to Cake eventually but will have to do it in stages. So we are planning to write new parts of the app in Cake and slowly move old stuf

filling model data in select tag

2008-05-08 Thread sonu
hi all. i m using cakephp 1.1, n firstly i want to know "can we use form helper?" if yes then how? secondlyi have a form which contains a select control,whose items should come from one table and when user select one item and click submit it should save on another table.pls solve my problem as

blog tutor not working

2008-05-08 Thread ID
hi guys; (sorry revised the title) I have a Centos5.1 box, loaded with php-5.1.6 httpd-2.2.3(apache) mysql-5.0.22 following this video http://cakephp.org/screencasts/view/3 and this tutor: http://manual.cakephp.org/view/326/the-cake-blog-tutorial i have checked out from svn repo svn co https:/

Storing sessions in mysql memory tables

2008-05-08 Thread JulGaw
Dear developers and users of great CakePHP! I'm new in this community, I've started to learn Cake about 1 week ago and very excited by this product :) I'm trying to make one optimization trick and have questions about it. I've modified my session table (in mysql 5.0.xx) like this: CREATE TABLE

Re: Open Flash Charts in Cake

2008-05-08 Thread BrendonKoz
Since I've found Open Flash Charts I was planning on using the simple App::import() method, but then I came across a bakery article specifically about a (somewhat unfinished but still very much working) Helper for the Open Flash Charts for use with CakePHP v1.2. http://bakery.cakephp.org/articles

Re: Label with checkbox formhelper and CakePHP 1.2

2008-05-08 Thread grigri
The form helper's `input()` and `inputs()` methods generate labels, the individual control methods (`text()`, `checkbox()`) do not. This is 100% by design. > So.. how do i manage to properly label the checkbox? echo $form->input('dbDBName',array( 'label' => _('DB Database Name', 'type' => 'check

Re: Max number of save()'s in a loop

2008-05-08 Thread Samuel DeVore
http://us3.php.net/manual/en/function.set-time-limit.php reset it every n times through a really long loop if you think that is your issue, each time you set it it rolls the timer back to 0 Sam D On Thu, May 8, 2008 at 4:13 AM, Kyle Decot <[EMAIL PROTECTED]> wrote: > > I'm not sure how to do th

Label with checkbox formhelper and CakePHP 1.2

2008-05-08 Thread Deckard
Hi! To keep it short and simple echo $form->input('dbDBName',array( 'label' => _('DB Database Name'))); works flawless. It appears an input file with according label. echo $form->checkbox('dbCreate', array( 'label' =>_('Create database if not exists'))); ?> does not work. The label is not sh

using checkbox

2008-05-08 Thread sonu
hi all. i m using cakephp 1.1 and i have a form which contains 5 checkboxes. i want that corresponding value of the checkbox which is checked shuld enter in tha database table.it should be with the help of htmlhelper ,and at a time user should be able to check only on checkbox. pls solve my proble

Re: Something on the top of CakePHP

2008-05-08 Thread Sliv (Tim MacAleese)
An example further to Chris' point is a recent discussion I had with Nate - I ran into an issue where I passed an IP address through built- in IP validation then used ip2long to convert it so I could store it in a MySQL signed INT. I noticed that an IP written like 255.255.255.011 would pass vali

Re: Open Flash Charts in Cake

2008-05-08 Thread S. William Schulz
@Doc, I'm using OFC with Cake. Feel free to ping me if you're still looking for a solution down that route. S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to c

Re: Session Lost In IE

2008-05-08 Thread Marcin Domanski
Whats the session security in cake ? did you try to play with it ? On Thu, May 8, 2008 at 8:21 AM, bharath kumar <[EMAIL PROTECTED]> wrote: > Hi All, > > I have got a strange problem in IE-6.0. we have built a browser > plugin(Toolbar) for our application, which changes its contents dynamically

Re: Max number of save()'s in a loop

2008-05-08 Thread Kyle Decot
It's now getting anywhere from 2000-2400 loops into it and then I get: Warning (2): Invalid argument supplied for foreach() [CORE/cake/libs/ model/datasources/dbo_source.php, line 544] Warning (2): Invalid argument supplied for foreach() [CORE/cake/libs/ model/datasources/dbo_source.php, line 543

OT: Shitty Community

2008-05-08 Thread benjam
Seriously, why does everybody in the CakePHP community got their finger on the trigger to just rip any person that has a question a new one? I mean, I have seen some pretty stupid questions in my time, and the ones here are nowhere near as bad as the ones that I've seen elsewhere. The thing that

Re: Session Lost In IE

2008-05-08 Thread Esoteric
Try changing your security setting to medium, see if that fixes your problem. -Erik On May 8, 10:29 am, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > Whats the session security in cake ? did you try to play with it ? > > > > On Thu, May 8, 2008 at 8:21 AM, bharath kumar <[EMAIL PROTECTED]> wrot

Re: How to access Cake Session Variables from a Stand Alone PHP script

2008-05-08 Thread Esoteric
Well providing your are starting your session and using the same session id, then you should be able to access CURRENT_USER. I am not sure if this will work with database sessions. -Erik On May 8, 2:11 am, "bharath kumar" <[EMAIL PROTECTED]> wrote: > Hi Sliv, > > In Login controller i have set

Re: OT: Shitty Community

2008-05-08 Thread mariano.iglesias
How is calling the documentation horrendous polite? You have any idea the amount of hours people take to write that, not to mention that is a community effort? I tell you, with the likes of you, I don't doubt anyone would call you names, disrespecting other's people valuable time like that. On Ma

Re: blog tutor not working

2008-05-08 Thread seb
> http://localhost/ points to /var/www/html/blog > http://localhost/posts/ And what about localhost/blog/posts ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email t

Re: OT: Shitty Community

2008-05-08 Thread Chris Hartjes
On Thu, May 8, 2008 at 11:07 AM, benjam <[EMAIL PROTECTED]> wrote: > So get your head out of your 'Holier than thou' asses and lighten up. So...to sum up 1) there are no stupid questions, only stupid answers 2) every question, no matter how poorly researched or thought out, deserves a civilized

Re: OT: Shitty Community

2008-05-08 Thread John David Anderson
I think you're both right (except the part about horrendous documentation - it's actually pretty good at this point). Imho, the core team *and* the community has a lot to learn about being more polite. I think everyone is to the point where we feel justified in making each other mad. Some n

Re: OT: Shitty Community

2008-05-08 Thread AD7six
On May 8, 5:07 pm, benjam <[EMAIL PROTECTED]> wrote: > Seriously, why does everybody in the CakePHP community got their > finger on the trigger to just rip any person that has a question a new > one? > > I mean, I have seen some pretty stupid questions in my time, and the > ones here are nowhere

Re: OT: Shitty Community

2008-05-08 Thread seb
> I feel that if someone comes to the group with a question, EVEN IF > IT'S BEEN ASKED BEFORE, it deserves an answer, or at least a _polite_ > point in the direction of the answer Well, IMHO, if the guys are not up to browse the list thru Google Groups to find the answer, I think they should sto

Re: blog tutor not working

2008-05-08 Thread seb
seb wrote: >> http://localhost/ points to /var/www/html/blog > >> http://localhost/posts/ > > And what about localhost/blog/posts ? Ouch. Made a mistake. Forget it. Do you have a posts_controller.php file in your controllers folder ? --~--~-~--~~~---~--~~ You

Re: ARGHH - why is geneateList deprecated

2008-05-08 Thread NOSLOW
In case you didn't pick up on it, I thinks that's a reference to the "You are not a beautiful and unique snowflake" quote that Nate has used before on this list when appropriate. Unfortunately, it's appropriate around here all too often. On May 7, 7:48 pm, MikeK <[EMAIL PROTECTED]> wrote: > LOL,

Re: OT: Shitty Community

2008-05-08 Thread Gwoo
Benjam, I am not sure where you derive your hostility. Do you have examples that will serve to backup your assertion, so we may teach the "4th graders" how to behave? From what I have seen, the tone of the response often matches the tone of the original message. In general this is a community lis

Re: saveAll with three levels

2008-05-08 Thread John
On 8 Mag, 13:49, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On Thu, May 8, 2008 at 4:50 PM, Jose Selesan <[EMAIL PROTECTED]> wrote: > > Hi all, does anybody know if I can save a model with a hasMany relation > > and each of the related models has a hasMany relation? > > > Hi have a model call

Re: OT: Shitty Community

2008-05-08 Thread John David Anderson
On May 8, 2008, at 9:34 AM, AD7six wrote: >> > I'd like to build a forum. How can I do that with cake please? What needs to be said: - Don't ask vague questions - Try to work on a solution a bit before asking What they need: - Help getting started with CakePHP -

Re: Cake integration with other app and session

2008-05-08 Thread Esoteric
I second this, I was about to post something here, when I saw this one. I am basically looking to integrate another applications session system into my CakePHP application. The other application be vbulletin. I haven't really began to see what the best way to do this would be but comments from ot

Re: Cake integration with other app and session

2008-05-08 Thread Chris Hartjes
On Thu, May 8, 2008 at 6:55 AM, Ziad <[EMAIL PROTECTED]> wrote: > > The problem that I was having was with sessions. It seems that Cake > closes any existing session before doing anything with sessions within > Cake. Session data from my other app is available in Cake. But session > data that I sa

Re: OT: Shitty Community

2008-05-08 Thread Dr. Tarique Sani
On Thu, May 8, 2008 at 9:24 PM, John David Anderson < [EMAIL PROTECTED]> wrote: > > > On May 8, 2008, at 9:34 AM, AD7six wrote: > >> > > I'd like to build a forum. How can I do that with cake please? > > What needs to be said: >- Don't ask vague questions >- Try to work on a soluti

Re: OT: Shitty Community

2008-05-08 Thread [EMAIL PROTECTED]
Benjam does have a point. People can be needlessly mean sometimes and that can probably make people think twice about if they are evaluating. But it is not that bad when compared to other communities. People are always being ripped on in forums and irc. The documentations is far from perfect, sur

DB down, don't panic

2008-05-08 Thread sbeam
I have a cake app on a server on which the database (mysql) has been going down every couple weeks or so. I think I fixed that problem with mysql, but here is the small problem I have with cake: with Config.debug=0 cake seems to silently ignore the fact there is no database. This makes for some s

Re: Cake integration with other app and session

2008-05-08 Thread Ziad
Hi Chris, Thanks for your response, that certainly goes some way towards explaining why it happens. What about my question of do you see any issue/problem with commenting out this session recreation code? I guess there is the general issue of sharing session data between two applications, but if

Re: OT: Shitty Community

2008-05-08 Thread benjam
> How is calling the documentation horrendous polite? You have any idea > the amount of hours people take to write that, not to mention that is > a community effort? I tell you, with the likes of you, I don't doubt > anyone would call you names, disrespecting other's people valuable > time like th

Re: Hierarchical Tree Setup

2008-05-08 Thread benjam
Thanks for the reply, for some reason when I tried the 'empty' option it didn't work, hence my question here. And thanks for the beforeSave() hint. On May 7, 8:44 pm, Adam Royle <[EMAIL PROTECTED]> wrote: > I can't help you with the scaffolding - never used it, but it's > certainly possible to d

1.2 Documentation has made amazing progress

2008-05-08 Thread keymaster
I think it's time to change the initial knee-jerk reaction when speaking about cake's documentation. If I remember correctly, only 3-4 months ago there was something like 190 pages. Most of the new 1.2 features were either totally undocumented, or sparse at best. I just had a look today using a

Model recursion

2008-05-08 Thread MonkeyGirl
Hi. Sorry if this is obvious, but is it possible to set recursion to only go down (to things that belong to the model in question), and not up (to things that the model belongs to)? I've got a model that I've been recursing four levels deep, which has been working fine. Now, though, I've come to

Re: Model recursion

2008-05-08 Thread keymaster
http://bakery.cakephp.org/articles/view/bindable-behavior-control-your-model-bindings --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com T

Re: 1.2 Documentation has made amazing progress

2008-05-08 Thread Aaron Shafovaloff
I might disagree on the way the book is structured, but I'd have to agree that it has come a long way. I use it a lot now. Good job, guys. On May 8, 10:33 am, keymaster <[EMAIL PROTECTED]> wrote: > I think it's time to change the initial knee-jerk reaction when > speaking about cake's documentati

Re: 1.2 Documentation has made amazing progress

2008-05-08 Thread Sliv (Tim MacAleese)
Yes, indeed, I use it a lot too - maybe at some point there will be a way to mirror it to contributed servers so it doesn't get too slow due to the size and number of people using it :P --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: OT: Shitty Community

2008-05-08 Thread the_woodsman
I do find it interesting to compare Cake responses with, say, the JQuery group- where someone titles their post "it's not working" and still get loads of polite and helpful responses! I think that although the cook book is defnitely filling the gap in the documentation, the long period where Cake

Re: Label with checkbox formhelper and CakePHP 1.2

2008-05-08 Thread BrendonKoz
What field type creates a checkbox? I was looking for this earlier and was unable to find it. On May 8, 10:25 am, grigri <[EMAIL PROTECTED]> wrote: > The form helper's `input()` and `inputs()` methods generate labels, > the individual control methods (`text()`, `checkbox()`) do not. This > is 10

Re: 1.2 Documentation has made amazing progress

2008-05-08 Thread Aaron Shafovaloff
It's been sporadically unresponsive today. Perhaps they're not caching? On May 8, 11:04 am, "Sliv (Tim MacAleese)" <[EMAIL PROTECTED]> wrote: > Yes, indeed, I use it a lot too - maybe at some point there will be a > way to mirror it to contributed servers so it doesn't get too slow due > to the s

Re: OT: Shitty Community

2008-05-08 Thread Sliv (Tim MacAleese)
I have to agree with Gwoo, I haven't seen any replies that weren't appropriate to the post being replied to. If you write a post that shows you haven't read the welcome blurb posted on the group front page that tells you to search first before asking, and links to the wiki pages with a ton of inf

Re: OT: Shitty Community

2008-05-08 Thread John David Anderson
On May 8, 2008, at 11:22 AM, Sliv (Tim MacAleese) wrote: > > I have to agree with Gwoo, I haven't seen any replies that weren't > appropriate to the post being replied to. > > If you write a post that shows you haven't read the welcome blurb > posted on the group front page that tells you to sea

What kind of authentication script?, tutorial? do you use?

2008-05-08 Thread Louie Miranda
I am looking for a authentication script?, tutorial for my new app that will work on 1.2 I search on the bakery and found this results: http://bakery.cakephp.org/articles/search -- search string = auth Any suggestions? I got confused. -- Louie Miranda ([EMAIL PROTECTED]) http://www.axishift.com

Re: What kind of authentication script?, tutorial? do you use?

2008-05-08 Thread Mathew Nik Foscarini
I'm switching from the default auth component to the DarthAuth component. Looks like it has everything you could need without the overhead of ACLs. - Original Message From: Louie Miranda <[EMAIL PROTECTED]> To: cake-php@googlegroups.com Sent: Thursday, May 8, 2008 1:28:19 PM Subject: Wh

Re: OT: Shitty Community

2008-05-08 Thread Sliv (Tim MacAleese)
kumbayah. > > How about we try to be polite even if the other person isn't? That > goes for both sides. > > -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email t

Re: ARGHH - why is geneateList deprecated

2008-05-08 Thread nate
Trac has decided to be busted right now, so it's harder to figure that out. Anyway, seriously, your best bet is just to bite the bullet and update. There haven't been *that* many changes, and the deprecated stuff usually tells you exactly how to fix it. And a lot of annoying bugs have been fixe

Getting Cake build version?

2008-05-08 Thread Mathew Nik Foscarini
I hope this isn't a stupid question, but how can I check what version of Cake 1.2. is installed? I also need to update my Cake 1.2 install with the latest version. When copying files over top my existing install which files should not get modified? are there any I should worry about, or is

Re: Something on the top of CakePHP

2008-05-08 Thread mbavio
On May 8, 11:03 am, "Sliv (Tim MacAleese)" <[EMAIL PROTECTED]> wrote: > An example further to Chris' point is a recent discussion I had with > Nate - I ran into an issue where I passed an IP address through built- > in IP validation then used ip2long to convert it so I could store it > in a MySQL

Re: OT: Shitty Community

2008-05-08 Thread benjam
> I do find it interesting to compare Cake responses with, say, the > JQuery group- where someone titles their post "it's not working" and > still get loads of polite and helpful responses! Maybe I've just been around the jQuery group too long... --~--~-~--~~~---~--~-

Re: OT: Shitty Community

2008-05-08 Thread mbavio
I think this guy is just looking for 5 minutes of fame and fortune :P Cheers, mbavio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To

Re: What kind of authentication script?, tutorial? do you use?

2008-05-08 Thread mbavio
DarkAuth seems like a simpler solution to simple cases, but if you need the FULL power, you need to learn how to use Auth / ACL. Two months ago, I would tell you good luck with that, but nowadays there are plenty of docs, including the amazing CookBook. Cheers, mbavio On May 8, 2:31 pm, Mathew N

OT: JQuery Group > CakePHP Group

2008-05-08 Thread Sliv (Tim MacAleese)
... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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, vis

Re: What kind of authentication script?, tutorial? do you use?

2008-05-08 Thread [EMAIL PROTECTED]
i use and have been happy with othAuth; there's articles about it in (on?) the bakery; it works w/ 1.2 with a few modifications that can be found with a quick googling On May 8, 1:28 pm, "Louie Miranda" <[EMAIL PROTECTED]> wrote: > I am looking for a authentication script?, tutorial for my new ap

Re: What kind of authentication script?, tutorial? do you use?

2008-05-08 Thread Sliv (Tim MacAleese)
I started off a long time ago trying othAuth, obAuth, (can't remember all the different names, but I tried several). The problem I ran into is that you are then stuck if you upgrade your core and whatever script you chose happens to break because it used overrides or hacks or whatever. Or, the s

Re: Getting Cake build version?

2008-05-08 Thread Sliv (Tim MacAleese)
My personal thought is you should keep your app and your cake core separate - then you can just delete the core and replace it with a fresh update without touching your app. The http://book.cakephp.org installation section explains how to keep them separate. I'm not aware of a simple way to chec

hasMany relationship simply not working

2008-05-08 Thread rpupkin77
Hey, I have a hasMany relationship which when I bake the model, php picks up. I also have a corresponding belongsTo in teh other model. For some reason when I try to get this data, mysql throws an error saying that that table can't be found. To simplify, that hasMany relationship (in this case,

Model filter possible

2008-05-08 Thread jmmg77
My question is simple, but I haven't been able to find the answer. I'm using Cakephp1.2 which I'm really liking, but I can't seem to figure this one out. Is there a way to hard code conditions in the model itself. I'm not talking about associations just the model itself. An example would be if

Re: Getting Cake build version?

2008-05-08 Thread seb
Mathew Nik Foscarini wrote: > I hope this isn't a stupid question, but how can I check what version of > Cake 1.2. is installed? There's a version.txt file located in cake core files folder. > I also need to update my Cake 1.2 install with the latest version. When > copying files over top

How to catch errors / warnings from ConnectionManager::create

2008-05-08 Thread Deckard
Hi! I am just creating an installer for a cake application. It uses a tableless model and after the user input his DB connection details I test the connection to the new database using this code. $db = &ConnectionManager::create('test',array('driver' => $postdata['installation']['

IE7 Export XLS Problem

2008-05-08 Thread Christopher E. Franklin, Sr.
Hello wonderful group! I have written some code that in essence, takes a date range and serves up two different formats depending what button you click. Firstly, is the "View" button. So, for example, I select a date range and click view, I get a table on the same page with the information I ne

Re: OT: Shitty Community

2008-05-08 Thread benjam
> I think this guy is just looking for 5 minutes of fame and fortune :P yes please. everybody who has posted a response please send me $5. mbavio gets to send me $10. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: IE7 Export XLS Problem

2008-05-08 Thread Christopher E. Franklin, Sr.
Okay, I got it thanks to some guidance from _psychic_ thank you! So, the problem here was that the headers were all wrong. They went from: header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename= $file_name");

Re: OT: Shitty Community

2008-05-08 Thread mbavio
And your post is a bit ironic... Your are asking for polite manners, and the title of the post is "Shitty Community"... Lol, I just think that you are bored and you have nothing better to do than fudd a little. Calm down, it will be worse if anybody answers any question. Cheers, mbavio On May 8,

Re: Model filter possible

2008-05-08 Thread mbavio
When you define the model associations, you can add a "conditions" key to the array. Check the CookBook and you will understand what I mean. Wait, let me give you an example: var $hasMany = array('Book' => array('conditions' => array('Book.price' => '!= 0'))); Hope this can help you. Cheers, mb

Re: DB down, don't panic

2008-05-08 Thread Dardo Sordi Bogado
All you need is in the view file for the default home page that cake creates for you. On Thu, May 8, 2008 at 1:13 PM, sbeam <[EMAIL PROTECTED]> wrote: > > I have a cake app on a server on which the database (mysql) has been > going down every couple weeks or so. I think I fixed that problem with

Re: Model filter possible

2008-05-08 Thread jmmg77
Thank you for your help. Is this example model something other than book? What I am trying to do is not typical associations between models. It would be like this, I have a table called books. I would like to create two different models that behave as if there are two completely different tabl

Re: Model filter possible

2008-05-08 Thread mbavio
Model Category on my app: var $hasMany = array('Article', 'ChildCategory' => array( 'className' => 'Category',

Re: hi guys

2008-05-08 Thread MonkeyGirl
Hi! > but when i point the browser to;http://localhost/posts/ > > it shows: The requested URL /posts was not found on this server. > > any ideas what i could be doing wrong? It sounds like you have debugging set to 0 (off). If you edit app/ config/core.php, you can change it to 1 or 2 in order t

Re: Model filter possible

2008-05-08 Thread jmmg77
Thank You On May 8, 3:20 pm, mbavio <[EMAIL PROTECTED]> wrote: > Model Category on my app: > > var $hasMany = array('Article', 'ChildCategory' => array( > > 'className' => 'Category', >

Re: hi guys

2008-05-08 Thread jonknee
> but when i point the browser to;http://localhost/posts/ > it shows: The requested URL /posts was not found on this server. > any ideas what i could be doing wrong? Is the error generated from CakePHP or Apache? If it's Apache you have a problem with your.htaccess file (perhaps Apache is not loo

  1   2   >