Re: .htaccess by default of cake? looping on xampp - Request exceeded the limit of 10 internal redirects due to probable configuration error.

2007-03-09 Thread Louie Miranda
Does anybody encountered this problem? hmm. On 3/8/07, Louie Miranda <[EMAIL PROTECTED]> wrote: > > I have this rewrite rule on my server (live) > >RewriteEngine on >RewriteRule^$ app/webroot/[L] >RewriteRule(.*) app/webroot/$1 [L] > > > and everything works fine. when i

Re: For every model every database table also?

2007-03-09 Thread Louie Miranda
BTW, the views/pages/about works fine though, but if i wanted to be able to do domain/about then i need to use the controller? On 3/10/07, Louie Miranda <[EMAIL PROTECTED]> wrote: > > How would i do that here? > > about_controller.php > > class AboutController extends AppController > { > var

CakePHP trademark fair usage - Thanks to gwoo

2007-03-09 Thread Dr. Tarique Sani
In another thread gwoo wrote "I am working on an official trademark policy that will be posted in the next few days on the Cake Software Foundation website." I would sincerely like to thank gwoo and CSF for initiating this - this would indeed help. Thanks once again. Cheers Tarique P.S. We tr

Re: SelectTag + Unicode (hebrew) UTF-8 not displaying

2007-03-09 Thread jteran
Hi Michael nope, In the controller first I call generatelist() method, to create the array.. On 9 mar, 18:37, "Michael Rubanov" <[EMAIL PROTECTED]> wrote: > Are you generating dropdown's from database ? > > On 3/9/07, jteran <[EMAIL PROTECTED]> wrote: > > > > > Hi, I'm using $html->selecttag to

Re: Flame On! DB recommendations

2007-03-09 Thread Chris Hartjes
On 3/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm in the planning stage of what will hopefully become my first non- > trivial web app. I'm trying to minimize future pain resulting from > poor planning, and have been reading up on DB trivia. > > If I use MySQL, how do I choose betwee

Re: New Cake FAQ

2007-03-09 Thread Samuel DeVore
Also as people are pointed to articles in the bakery they should get a 'faq' tag that can also be linked too (perhaps sorted by rating and views) like http://bakery.cakephp.org/tags/view/faq Sam D On 3/9/07, Mech7 <[EMAIL PROTECTED]> wrote: > > I think it should also cover cake sessions, how to

RE: Cake Recipes cancelled

2007-03-09 Thread Mariano Iglesias
> It seems to me that a few individuals are mis-understanding > our words and have a general mis-understanding of trademark policy. That was exactly my point, and I think such a document would help others avoid confusion. Confusion so high that some people even thought CSF lawyers were going to h

RE: Cake Recipes cancelled

2007-03-09 Thread Mariano Iglesias
Sounds too bushy ;) -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje origin

Re: New Cake FAQ

2007-03-09 Thread Mech7
I think it should also cover cake sessions, how to handle cake session user validation acl etc.. --~--~-~--~~~---~--~~ 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@google

Access Helper Object from Element in PHP4

2007-03-09 Thread miggs
Perhaps I am going about this wrong and/or I do not understand the correct syntax, but I had this working in php5 and then when I transferred to a php4 box, it no longer functions. In a nutshell this is what I'm trying to do. I have a helper: test_helper.php Class TestHelperHelper extends Help

Re: New Cake FAQ

2007-03-09 Thread Sam Sherlock
> > 1: Make a Hello World Application. Yep and perhaps the title should be "We knew you were coming so we baked a cake!" then links to documentation, faq's furthermore how about An example app could be a included with the download ready to copy to an app directory and sql to insert with ph

Re: SelectTag + Unicode (hebrew) UTF-8 not displaying

2007-03-09 Thread Michael Rubanov
Are you generating dropdown's from database ? On 3/9/07, jteran <[EMAIL PROTECTED]> wrote: > > > Hi, I'm using $html->selecttag to create a menu in different > languages, according to a session variable. When I choose Hebrew, it > just display fixed html instead of hebrew chars. Any way to bypass

Re: Security->requireAuth funktionality broken? (cake 1.2)

2007-03-09 Thread jcsiegrist
this is why the params['form'] is empty: in dispatcher parseParams() starting line 416 the params['form'] ['data'] gets moved into params['data'] leaving params['form'] empty. if (isset($params['form']['data'])) { $params['data'] = $params['form']['data']; unset($params['form']['

Flame On! DB recommendations

2007-03-09 Thread [EMAIL PROTECTED]
I'm in the planning stage of what will hopefully become my first non- trivial web app. I'm trying to minimize future pain resulting from poor planning, and have been reading up on DB trivia. If I use MySQL, how do I choose between MyISAM and InnoDB? What are the trade-offs? It seems InnoDB is

SelectTag + Unicode (hebrew) UTF-8 not displaying

2007-03-09 Thread jteran
Hi, I'm using $html->selecttag to create a menu in different languages, according to a session variable. When I choose Hebrew, it just display fixed html instead of hebrew chars. Any way to bypass this? On the links I've got this same issue, but using parameter "escapeTitle" fixed the problem and

Re: New Cake FAQ

2007-03-09 Thread Samuel DeVore
As a foot note on the tutorial, I just ran through it again using a virgin install of http://mamp.info/ (Mac version of lamp) and it worked perfectly from what I could tell. I tried to do a screen cast of it but my copy of Snapz totally crapped out writing the file. Sam D On 3/9/07, haj <[EMAI

Security->requireAuth funktionality broken? (cake 1.2)

2007-03-09 Thread jcsiegrist
Hi, I'm trying out the requireAuth functionality for the Security component. I use requirePost and requireAuth as stated in the Manual. But even cutting out the token key it always passes through even though it shouldn't, the request should be blackholed. After adding some debug()s in the Securit

Re: cakePHP and Version control Poll

2007-03-09 Thread Samuel DeVore
Sonic have you thought of getting all these responses gathered up (and maybe seeking more details from people and drafting a Bakery Article? On 3/9/07, Sonic Baker <[EMAIL PROTECTED]> wrote: > Hi Martin, AD7six > > Thanks very much for your responses. Very much appreciated. > > Sonic > > > > >

Re: Security->requireAuth funktionality broken? (cake 1.2)

2007-03-09 Thread jcsiegrist
Hmm, even after deleting the !empty($controller->params['form'] check on line 165 and therefore entering the token check in the security component. And fixing the problem with my model to actually use the normal $form- >create() helper, which correctly outputs the token. I find that the token outp

Re: help with windows install needed - php\php.exe instead of cake ROOT[Scanned]

2007-03-09 Thread hydra12
If you find out what's wrong, please post it here so I can see what happened. I'll be away from my computer for about a week - it's spring break in Texas, and I'm taking my youth group on a trip - but I'll check it when I get a chance. hydra12 (Mark) On Mar 9, 1:20 pm, "jyrgen" <[EMAIL PROTECTE

Re: New Cake FAQ

2007-03-09 Thread haj
rtconner: I think the "blog tutorial" pretty much satisfies problem 1 and 2. Then it is a problem of the tutorial not getting big attention for the beginner... On Mar 9, 1:49 pm, "rtconner" <[EMAIL PROTECTED]> wrote: > I'm pretty much a noob. I just started on cakePHP 2 days ago. > > Biggest que

Re: Problem using $form->create() with a model having var $useTable = false (cake 1.2)

2007-03-09 Thread jcsiegrist
this works great! But I think the formHelper create() method should still be fixed. Or maybe not if there s a standard way for defining the metadata by hand. Actually I guess that could be very useful. The maybe one could even use something like a scaffold on db-less models? :jc On 9 Mrz., 18:30

Re: New Cake FAQ

2007-03-09 Thread haj
Q: What really is vendors and how do I use it? (benefits explanation in a big picture with simple damn example) Q: What really is components? (manual explanation doesn't clearly explain me what it is and why they exists) Q: How can split big controller files (or other type files) and manage? Q: So

Re: CakePHP/SWFObject/Multiple Files

2007-03-09 Thread Sam Sherlock
I would expect the base param to solve your issues. I have'nt had any and have always been setting the base param. I put my swf's inside a folder in webroot called 'flash' then I set a javascript variable with $this->webroot eg var strBase = 'webroot); ?>'; - S On 09/03/07, MrTufty <[EMAIL P

Re: help with windows install needed - php\php.exe instead of cake ROOT[Scanned]

2007-03-09 Thread jyrgen
Thanks Mark, i'll try out what you suggested. In the meantime i've put the app on a remote server and check it there. But i'm too curious about what might causing this, and i wouldn't be the first time that trace the code, my way of contribution to this fantastic framework. i'll let guys know.. j

Re: Cake Recipes cancelled

2007-03-09 Thread gwoo
Nate, you should stop watching V for Vendetta every night before bed. > As far as I know they can't stop anyone talking or mentioning CakePHP > as per the 'Fair Use' defense. > Checkhttp://en.wikipedia.org/wiki/Fair_use_%28US_trademark_law%29 Exactly. It seems to me that a few individuals are

Re: cakePHP and Version control Poll

2007-03-09 Thread Sonic Baker
Hi Martin, AD7six Thanks very much for your responses. Very much appreciated. Sonic --~--~-~--~~~---~--~~ 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

Re: Problem using $form->create() with a model having var $useTable = false (cake 1.2)

2007-03-09 Thread jcsiegrist
I tried something like that too, but couldn't get it to work. Your suggested patch also still throws the same warning. Right now I just avoided using the $form->create() and just set the form "by hand", which is fine also. Somehow all the checks on the status of $fields on line 98 of the formHelp

Re: Prevent double data in recursive find/findAll

2007-03-09 Thread Jon Bennett
> > My question is, is there a way to prevent that the same data is > > fetched (and added to the results array) several times, without > > lowering the recursion level? > > check out http://bakery.cakephp.org/articles/view/183 (or one of the > other variants). > > What I would do is: > > // set r

Re: Prevent double data in recursive find/findAll

2007-03-09 Thread Jon Bennett
> My question is, is there a way to prevent that the same data is > fetched (and added to the results array) several times, without > lowering the recursion level? check out http://bakery.cakephp.org/articles/view/183 (or one of the other variants). What I would do is: // set recursive level $t

Re: Cake Recipes cancelled

2007-03-09 Thread nate
Oh yes we can. If you write a book about Cake, mention Cake in your blog, record a conversation with a friend or family member in which Cake is mentioned, or make any pastries in the likeness of our logo, we will hunt you down and confiscate all your worldly posessions under the Digital Millenium

Re: New Cake FAQ

2007-03-09 Thread rtconner
I'm pretty much a noob. I just started on cakePHP 2 days ago. Biggest questions so far... Problem 1: Make a Hello World Application. I found nothing like this, just messed around with things and figuered it out eventually. Problem 2: Make a Hello World Application which connects to the database

Re: New Cake FAQ

2007-03-09 Thread Mech7
Also there should be in how to work with Ajax.. retrieving data, form validation, making it degradable, accesiable.. right now there is nothing about Ajax in the manuel :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: New Cake FAQ

2007-03-09 Thread anselm
Nate, we love you, stop complaining :) I think such a FAQ should have a section dedicated to associations ! Here's some : Q. Which model association should I use ? A. CakePHP offers the following associations to link models together : "has many", "has one", "belongs to", "ha

Re: New Cake FAQ

2007-03-09 Thread John David Anderson
On Mar 9, 2007, at 9:24 AM, Mariano Iglesias wrote: > > I've added some to the ticket. > > Should I also post them here? I'm not sure if you were following > the ticket > since no one seems to post on it, they are all writing on this > thread :) No need to duplicate the information. We'll m

Re: Cake Recipes cancelled

2007-03-09 Thread Mika
As far as I know they can't stop anyone talking or mentioning CakePHP as per the 'Fair Use' defense. Check http://en.wikipedia.org/wiki/Fair_use_%28US_trademark_law%29 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Parse Error on finderQuery

2007-03-09 Thread Mike Digital Egg
Hi, I am getting an error when adding {$__cakeID__$} variable to my finderQuery. If I replace that variable with a hard coded number then it works fine, any ideas what the problem could be? It has me a bit baffled. 'finderQuery' => "SELECT `product_attributes_products`.`value`, `ProductAt

RE: Problem using $form->create() with a model having var $useTable = false (cake 1.2)

2007-03-09 Thread Mariano Iglesias
Is this expected for all table-less models? If so implementing loadInfo() would fix the related issue I sent on this thread. And if that's the case, and before I submit an enhancement ticket, do you think something like the following may be useful: 1. For table-less models, define a $fields on y

Error validation textarea?

2007-03-09 Thread Mech7
I am trying to make a contact form but for some reason the textarea with the message does not give a warning when i put nothing in it? Does anybody know why? here is my code. Model contact.php: VALID_NOT_EMPTY, 'email' => VALID_EMAIL, 'subject' => VALID_NOT_EMPTY, 'messa

Re: Bake fatal error

2007-03-09 Thread rtconner
Would you like to create the views for admin routing? (y/n) [y] > n PHP Fatal error: Class 'Dispatcher' not found in C:\www\htdocs\cake \cake\libs\error.php on line 58 Fatal error: Class 'Dispatcher' not found in C:\www\htdocs\cake\cake \libs\error.php on line 58 --~--~-~--~~--

Prevent double data in recursive find/findAll

2007-03-09 Thread David Pärsson
Hi, I'm creating an application where i use a lot of belongsTo and hasMany relations. It's kind of like a school. A school has many classes and the classes belongs to the school. Every class has many students who belong to the school. Now when I in my application do a findAll on, let's say, a gr

Re: Bake fatal error

2007-03-09 Thread rtconner
A month later, I am getting the same error from both so called "stable" builds. A download of the nightly build fixed the problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this gr

RE: Problem using $form->create() with a model having var $useTable = false (cake 1.2)

2007-03-09 Thread Mariano Iglesias
This is related to: https://trac.cakephp.org/ticket/2200 Try this. Change this: $fields = $object->loadInfo(); $data = array( 'fields' => array_combine($fields->extract('{n}.name'), $fields- >extract('{n}.type')), 'key' => $object->primaryKey, 'validates' => (ife(empty($

Re: Date field SQL error

2007-03-09 Thread Matt Adams
miggs wrote: > Thanks a lot for the quick response. I really appreciate it > I tried to use beforeSave and it ended up getting rid of my sql error, > but it would not save any data. So I added > > if (empty($this->data['Story']['dateSend'])){ >unset($this->data['Story']['dateSend']); > }

Re: Problem using $form->create() with a model having var $useTable = false (cake 1.2)

2007-03-09 Thread nate
You either implement the loadInfo() method in your model so it returns descriptions consistent with the fields you are using in your form. Do pr($this->Model->loadInfo()); to get an idea of the format. On Mar 9, 11:28 am, "jcsiegrist" <[EMAIL PROTECTED]> wrote: > I'm trying to implement a simple

Re: Fetching rows one by one

2007-03-09 Thread MrTufty
Nope, they definitely don't mean stored procedures. Cookxyz's answer would seem to be the most appropriate for what you're trying to do, in this case. It's how I'd do it, and it does avoid having several thousand records in memory at once... it may not be the optimal way in this case but we don't

CakePHP/SWFObject/Multiple Files

2007-03-09 Thread MrTufty
Hi guys... I'm having a few issues, and I was hoping one of the more experienced/ knowledgeable people here could help me out. On the website I'm currently developing, we have a Flash-based location map showing all our clients sites. This Flash file is made up of multiple movies, which each get

RE: New Cake FAQ

2007-03-09 Thread Mariano Iglesias
I've added some to the ticket. Should I also post them here? I'm not sure if you were following the ticket since no one seems to post on it, they are all writing on this thread :) -MI --- Remember, smart coders answer ten

Problem using $form->create() with a model having var $useTable = false (cake 1.2)

2007-03-09 Thread jcsiegrist
I'm trying to implement a simple form to be used for emailing. I'm using a model with var $useTable = false to take advantage of the validation features. Generally it works, the data is passing fine, but I get the php warning: Warning: array_combine() [function.array-combine]: Both parameters sh

Re: Fetching rows one by one

2007-03-09 Thread Adrian Maier
On 3/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > As ad7six said, this should be handled in your db if at all possible. I guess that's what the two of you are thinking when you say "handle inside the db" are stored procedures, right? It's not possible because the database is MySql...

Re: Session ID changes

2007-03-09 Thread djiize
Some hints: - Is the temp folder defined in php.ini or in env is writeable (surely /tmp) ? - If in core.php you defined CAKE_SESSION_SAVE to 'cake', is app/tmp/ sessions is writeable? - If you have a subdomain with an underscore in it, IE has problem with sessions (strange behavior but it's real)

RE: help with windows install needed - php\php.exe instead of cake ROOT[Scanned]

2007-03-09 Thread Buckner, Mark
Not a problem. I've been known to get impatient a time or two myself. The cake group is normally really good/quick to respond to requests, but sometimes things slip through the cracks. My advice is, if you stick with cake for long, start answering posts to the group. That way, even if gwoo, nat

Re: Fetching rows one by one

2007-03-09 Thread [EMAIL PROTECTED]
As ad7six said, this should be handled in your db if at all possible. Assuming thats not possible, use limit and page arguments to work on a small subset of the data at one time. First execute a count to find out how many records your dealing with, then loop through each subset. Something like th

Re: Full Text Search

2007-03-09 Thread djiize
Hello For an old project, I did that: $this->Document->findAll("MATCH (`Document`.`name`) AGAINST ('{$search_term}' IN BOOLEAN MODE)") and it works as any other findAll. For multiple conditions, I can only say: try it ;) On 9 mar, 16:06, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Does Cak

RE: help with windows install needed - php\php.exe instead of cake ROOT[Scanned]

2007-03-09 Thread Buckner, Mark
Very strange (not that it worked on linux, but that it won't work on Windows). I have a couple of options/ideas that might work or at least help diagnose the problem. First, backup your current copy of cake and your app. Now download a fresh copy of cake (whichever version you are using), put i

RE: Cake Recipes cancelled

2007-03-09 Thread Mariano Iglesias
Fabio, After this email I seriously have a problem understanding you. As I told you before, I can sympathize with someone when they are feeling sad or hopeless (I have had my own share of sad moments), but your actions seem to be driven by a need of making us come to bad conclusions against the C

Re: Full Text Search

2007-03-09 Thread [EMAIL PROTECTED]
I think I figured out how to do it: $search = 'some words to find'; $conditions[] = array('Model.column2' => 'somevalue'); $conditions[] = "MATCH column1 AGAINST ('$search')"; The MATCH condition needs to be the last condition, otherwise it appears to be duplicated after every other condition.

RE: Cake Php + AJAX

2007-03-09 Thread Mariano Iglesias
I know I know, was just too damn tired to be nice :) Sorry shafi for the snap -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! bl

Full Text Search

2007-03-09 Thread [EMAIL PROTECTED]
Does Cake support full text search in the find and findAll methods? I'd like to add something like this as a condition: $search = 'some words to find'; $conditions[] = array("MATCH column1 AGAINST ('$search')"); $conditions[] = array('Model.column2' => 'somevalue'); Assume that there would be mu

Session ID changes

2007-03-09 Thread Mattijs
Though similar to some other problems, it seems I can't find a solution... when changing pages in my Cake application the Session ID changes, thus losing all stored session data. Is there a method of observing the session object or such? finding out why the session is reset? This also happens when

Re: Fetching rows one by one

2007-03-09 Thread Adrian Maier
On 3/9/07, Sergei <[EMAIL PROTECTED]> wrote: > > cant you just try it? > > -1 will fetch ONLY the fields of current model table, without any > associated data. Oh, I understand what you mean. We are speaking of different things : you are telling me how to get no data at all. While I want all t

[no subject]

2007-03-09 Thread Yuriy Veremeyenko
--~--~-~--~~~---~--~~ 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, visit

Re: Internal domain aliases yield 404 errors (cake thinks part of domain is a page/controller request?)

2007-03-09 Thread phrygius
I figured it out! It was Isapi_rewrite at fault here. I had "RewriteCond Host" conditions before my rewrite rules that looked like "domain(\.some \.more\.stuff)?", and it was capturing that bit in parentheses as part of the rewrite rules below. By changing the condition to "domain| domain\.some

Page not refreshed after $this->redirect

2007-03-09 Thread Adrian Maier
Hello again, When installing my application on a server I have problems with pages that are not refreshed after $this->redirect(). For example: a page displays several records, and each has a "Delete" link. The delete action deletes the records and then should re-generate the page: $this->redi

Re: Fetching rows one by one

2007-03-09 Thread Sergei
cant you just try it? -1 will fetch ONLY the fields of current model table, without any associated data. On 9 мар, 19:08, "Adrian Maier" <[EMAIL PROTECTED]> wrote: > > $this->Model->recursive=-1; > > > before your ->find query. > > -1 doesn't appear in the manual amongst the possible values of

Re: Fetching rows one by one

2007-03-09 Thread Adrian Maier
On 3/9/07, phirschybar <[EMAIL PROTECTED]> wrote: > > findAll($conditions = null, $fields = null, $order = null, $limit = > null, $page = 1, $recursive = null); > > You can specify the fields you want to return, along with conditions, > limits, just like any basic query. I am aware that i can sel

Re: Cake Recipes cancelled

2007-03-09 Thread The Mullet
Tarique is exactly right: >The term "CakePHP" is trademarked so you can be prevented from using >that for almost everything (including blog posts) *if* CSF wishes. >It is this ambiguity from CSF which I do not like. Now, unless CSF decides to set up a public license which allows for some basic u

Re: Cake Php + AJAX

2007-03-09 Thread Chris Hartjes
On 3/9/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > I'll answer if you answer me this question: > > How to drive a car? > > -MI > C'mon now Mariano, you know I'm the one who is supposed to giving out the rude answers... -- Chris Hartjes My motto for 2007: "Just build it, damnit!" ral

Re: Fetching rows one by one

2007-03-09 Thread Adrian Maier
On 3/9/07, phirschybar <[EMAIL PROTECTED]> wrote: > > Take a look at this article: > http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-for-breakfast/ > > Dealing with big fat arrays in Cake can be a struggle at first but > using the Set::extract method can pull out a set of the

Re: Fetching rows one by one

2007-03-09 Thread phirschybar
findAll($conditions = null, $fields = null, $order = null, $limit = null, $page = 1, $recursive = null); You can specify the fields you want to return, along with conditions, limits, just like any basic query. On Mar 9, 7:39 am, "Adrian Maier" <[EMAIL PROTECTED]> wrote: > On 3/9/07, phirschybar

Re: Strange result with findCount

2007-03-09 Thread szeta
Ha, I found the problem, "State" was a 'belongsTo' Relation. So I was not able to count them.. $this->RatEwp->unbindModel(array('belongsTo'=>array('Status'))); solved the problem! Thanks! On 9 Mrz., 13:26, "phirschybar" <[EMAIL PROTECTED]> wrote: > I don't have a definite answer but I 'think'

Best Practices: Toggle Item In Element

2007-03-09 Thread phirschybar
Ok so I have a bunch of views, called by different controllers that each reference the same element 'post'. Each controller passes a set of parameters to the element via the renderElement('post', $data) method. All the parameters are passed through $data and all is peachy. However, ONE of the vie

Re: New Cake FAQ

2007-03-09 Thread Martin Schapendonk
2007/3/8, nate <[EMAIL PROTECTED]>: > We're putting together an official CakePHP FAQ. So add your > recommended frequently asked questions (and answers) here: > https://trac.cakephp.org/ticket/1576 Q: Why does Cake mess up my website in browser XYZ? A: It's not Cake's fault - check your views a

Re: Best Practices: Toggle Item In Element

2007-03-09 Thread jitka
if (!empty($data['ticker'])) --~--~-~--~~~---~--~~ 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 PROT

Re: Strange result with findCount

2007-03-09 Thread phirschybar
I don't have a definite answer but I 'think' status is a reserved word in MySQL. I only say this because when I type it into the query box in my MySQL client, it gets highlighted as if it is reserved. Wanna try changing it to see? On Mar 9, 6:42 am, "szeta" <[EMAIL PROTECTED]> wrote: > Hm, > > fi

Re: Fetching rows one by one

2007-03-09 Thread AD7six
On Mar 9, 12:02 pm, "Adrian Maier" <[EMAIL PROTECTED]> wrote: > On 3/9/07, AD7six <[EMAIL PROTECTED]> wrote: > > > > > > Are there better ways to fetch the query result one by one ? > > > Why do you want to, what is the goal you want to achieve? > > In short: I'm reading the tuples from table T

Re: Cake Php + AJAX

2007-03-09 Thread Kjell Bublitz
well, first of all you can call prepend an /ajax/ to any URL in cake, which makes your pages uses the ajax-layout (layouts folder) instead of the default. Other way around is, that you force the ajax-layout in your controller action like so: var $layout = 'ajax'; Both works and depends on what yo

Re: Cake Recipes cancelled

2007-03-09 Thread h3raLd
I wasn't going to post anymore but I feel compelled to include a few more emails concerning that conversation. I emailed Larry back: Larry, I didn't mean to offend you or to piss you off and I hope you can accept my apologies: I really didn't mean to say that, and

RE: Cake Php + AJAX

2007-03-09 Thread Mariano Iglesias
I'll answer if you answer me this question: How to drive a car? -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www

Re: Cake Php + AJAX

2007-03-09 Thread Dr. Tarique Sani
On 3/9/07, shafi <[EMAIL PROTECTED]> wrote: > > How to implement AJAX in Cake Php > http://www.google.com/search?q=cakephp+ajax HTH Tarique -- = PHP for E-Biz: http://sanisoft.com Cheesecake-Photoblog: http://cheesecake-photoblog.org

Cake Php + AJAX

2007-03-09 Thread shafi
How to implement AJAX in Cake Php --~--~-~--~~~---~--~~ 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

Re: Cake Recipes cancelled

2007-03-09 Thread Dr. Tarique Sani
On 3/9/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > I think it is safe to say that you *can* use the term CakePHP as long as you > address the binding of its license. > Unfortunately it is not very clear and I have asked in the past and not got satisfactory replies. The term "CakePHP" is

Re: help with windows install needed - php\php.exe instead of cake ROOT

2007-03-09 Thread jyrgen
it worked on linux ;-) --~--~-~--~~~---~--~~ 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

Re: Fetching rows one by one

2007-03-09 Thread phirschybar
Take a look at this article: http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-for-breakfast/ Dealing with big fat arrays in Cake can be a struggle at first but using the Set::extract method can pull out a set of the data you need very elegantly. See how Felix also uses array_c

Re: Fetching rows one by one

2007-03-09 Thread Adrian Maier
On 3/9/07, Sergei <[EMAIL PROTECTED]> wrote: > > put > > $this->Model->recursive=-1; > > before your ->find query. -1 doesn't appear in the manual amongst the possible values of $recursive. What does it do exactly ? > On 9 мар, 17:20, "Adrian Maier" <[EMAIL PROTECTED]> wrote: > > Hello, > > > >

Re: help with windows install needed - php\php.exe instead of cake ROOT

2007-03-09 Thread jyrgen
thanks hydra, and sorry for my impatience. define('ROOT', 'e:'.DS.'programs'.DS.'apache'.DS.'htdocs'.DS.'cake'); didn't solve the problem. start page render flawlessly, links ($html- >link as well as $html->submit) are all wrong. (see above). as soon as i find the time, i'll dig into the cake

Re: Strange result with findCount

2007-03-09 Thread szeta
Hm, findCount('Install_Count',0) works fine findCount('Status',0) does not work (returns 0) Both Fields are in the same table and both are the same data-type (VARCHAR 255) Is this a bug in CakePHP? Is 'Status' a keyword? How can I use this as normal Table Field for findCount? I have searched th

Re: Fetching rows one by one

2007-03-09 Thread Adrian Maier
On 3/9/07, AD7six <[EMAIL PROTECTED]> wrote: > > > Are there better ways to fetch the query result one by one ? > > Why do you want to, what is the goal you want to achieve? In short: I'm reading the tuples from table T1, and for each tuple i'm searching for corresponding tuple in table T2 and ,

Re: cakePHP and Version control Poll

2007-03-09 Thread AD7six
On Mar 9, 11:40 am, "AD7six" <[EMAIL PROTECTED]> wrote: > On Mar 7, 9:00 pm, "Sonic Baker" <[EMAIL PROTECTED]> wrote: > > > > > On 3/5/07, AD7six <[EMAIL PROTECTED]> wrote: > > > > On Mar 5, 9:52 pm, "Sonic Baker" <[EMAIL PROTECTED]> wrote: > > > > Hi bakers, > > > > > I know this has been touch

Re: cakePHP and Version control Poll

2007-03-09 Thread AD7six
On Mar 7, 9:00 pm, "Sonic Baker" <[EMAIL PROTECTED]> wrote: > On 3/5/07, AD7six <[EMAIL PROTECTED]> wrote: > > > > > > > On Mar 5, 9:52 pm, "Sonic Baker" <[EMAIL PROTECTED]> wrote: > > > Hi bakers, > > > > I know this has been touched on before but I would like to pay a revisit > > if > > > you'

Re: New Cake FAQ

2007-03-09 Thread Mech7
Q: How to do HABTM with Conditions? (could only find this here) Q: How to select only the fields that you need from the database to cause less overhead? Q: How to do a sidewide (global) menu that does not break Cake when there is an error or when page controller is called? (Happens to me when i

Re: Fetching rows one by one

2007-03-09 Thread AD7six
On Mar 9, 10:20 am, "Adrian Maier" <[EMAIL PROTECTED]> wrote: > Hello, > > The Model->find method builds a big array that contains all the tuples. Is > it possible to fetch the records one by one , in order to avoid that big array > to be constructed ? > > One possible way would be to : get the

RE: Cake Recipes cancelled

2007-03-09 Thread Mariano Iglesias
I may be out of my way here, but I don't believe CSF members behave like dictators. This is an open source project released under the MIT license, and as such it is bound by those terms. I think it is safe to say that you *can* use the term CakePHP as long as you address the binding of its licen

Re: Fetching rows one by one

2007-03-09 Thread Sergei
put $this->Model->recursive=-1; before your ->find query. On 9 мар, 17:20, "Adrian Maier" <[EMAIL PROTECTED]> wrote: > Hello, > > The Model->find method builds a big array that contains all the tuples. Is > it possible to fetch the records one by one , in order to avoid that big array > to b

Re: Cake Recipes cancelled

2007-03-09 Thread gwoo
@Mullet This has been discussed in other threads. If you would like further clarification please contact legal [at] cakefoundation [dot] org. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

Re: Cake Recipes cancelled

2007-03-09 Thread Daniel Hofstetter
@The Mullet: There was some time ago a discussion about using the CakePHP trademark with statements from Larry and Gwoo, see http://groups.google.com/group/cake-php/browse_thread/thread/f2d9932d54dcb3d5/208047789ceee4d3?lnk=gst&q=trademark&rnum=1#208047789ceee4d3 -- Daniel Hofstetter http://cakeb

Re: Cake Recipes cancelled

2007-03-09 Thread The Mullet
On 9 Mrz., 06:56, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]> wrote: > > An allied question - Will an Unofficial book be allowed by CSF? > > If you mean will someone be able to use CakePHP in the title of a book > without permission, then I will say no. > CakePHP is trademark of the Cake Sof

RE: Cake Recipes cancelled

2007-03-09 Thread Mariano Iglesias
Fabio, > I realize the community will be sick of my behaviour at this point, > and I'll probably quit ranting, the community doesn't need this. I don't know about sick, and I can't speak for the whole community, but I know I don't need to witness an internal "power struggle." > I would just li

RE: Cake Recipes cancelled

2007-03-09 Thread Mariano Iglesias
And how do you know those details come from actual facts? And what about the other side of the story? Trust me, when you are not an insider in a "fight" (using quotes on purpose), then there's no way for you to actually know what happen, so we should clearly avoid judging what someone tells us so

Re: Cake Recipes cancelled

2007-03-09 Thread Dr. Tarique Sani
On 3/9/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > Or do you consider Alexander Graham Bell to be the inventor of the cell > phone? A more appropriate corollary would be - Is Rasmus still the creator of PHP? I personally appreciate the mail by Fabio, which I feel despite being emotional has

  1   2   >