Re: #sql_3e3a_0 for COUNT() queries

2007-01-31 Thread oPless
Apologies for top posting, not sure if this group is top - or bottom posting :-) I can confirm that this happens, and can be rather random (from memory it used to return a table name of "0" rather than #sql_hex_0) I suggest replacing the 'derived' string with the number '0' to be backwardly (forw

Re: Putting Cake under pressure

2007-01-31 Thread Dr. Tarique Sani
On 2/1/07, mariano.iglesias <[EMAIL PROTECTED]> wrote: > > Can you share with us your website URL? Thanks for your input. +1 on that request and also some insight on server setup. Are any accelerators being used is caching being used and which type Thanks in advance Tarique -- ===

Re: Putting Cake under pressure

2007-01-31 Thread mariano.iglesias
Can you share with us your website URL? Thanks for your input. -MI On 31 ene, 19:09, "Hanzgroove" <[EMAIL PROTECTED]> wrote: > We use cake on our website and we get about a million hits a day. I > haven't noticed any issue with performance and if there are any > issues, its usually on the server

Re: Can i setup beforeFilter() to work on certain actions but not others?

2007-01-31 Thread Jon Bennett
> I need to bypass beforeFilter() on certain actions in my controller > but leave it in place for the rest. Is there a simple way to do this? you could check the name of the action in the beforeFilter I think like so: function beforeFilter () { if ($this->action == 'my_action_name' || $

Re: Putting Cake under pressure

2007-01-31 Thread Hanzgroove
We use cake on our website and we get about a million hits a day. I haven't noticed any issue with performance and if there are any issues, its usually on the server end. I'm hoping it continues to perform well as traffic grows. I'm sure it won't be a problem since the Mozilla addons page probabl

Re: requestAction issue when using a plugin

2007-01-31 Thread Doug
On Jan 31, 2:20 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > Go ahead hack the CakePHP core to make it work - create a patch and > post a ticket in the Trac with your patch attached - someone from the > dev team will apply the patch or suggest alternatives. Thanks for your advice. I opene

Re: rule of thumb - when to use cake vs. off the shelf open source

2007-01-31 Thread Chris Hartjes
On 1/31/07, keymaster <[EMAIL PROTECTED]> wrote: > > Trying to formulate some general (ie. broadbrush) rules of thumb which > will help decide when to build a client's site from scratch with cake, > versus using an off the shelf open source product. > > My thinking on this issue is that it's tota

rule of thumb - when to use cake vs. off the shelf open source

2007-01-31 Thread keymaster
Trying to formulate some general (ie. broadbrush) rules of thumb which will help decide when to build a client's site from scratch with cake, versus using an off the shelf open source product. Obviously, the two extremes are: 1. if the client needs a forum, CMS, gallery, CRM, Store, and his requ

Strange Session->write() problem ...

2007-01-31 Thread [EMAIL PROTECTED]
Hello all! I discovered a rather strange error the other day when one of the app's I'm developping in CakePHP stopped working ... The thing happend was that logging in, didn't write any of the session variables at all ... The original code was like this: function cdlogin() {

Can i setup beforeFilter() to work on certain actions but not others?

2007-01-31 Thread quincy
Greetings one and all, I need to bypass beforeFilter() on certain actions in my controller but leave it in place for the rest. Is there a simple way to do this? Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Search

2007-01-31 Thread Mikee Freedom
morning mate, I would have said your function would have to be something more like : function search($conditions=NULL) { if (empty($this->data)) { $this->render(); } else { $conditions =array(); $search_term = $this->data['Test']['identifia

advice on database structure

2007-01-31 Thread lukemack
Hi all, I'm looking for some help regarding a new cake project. I'm new to cake but not to php and am planning on using it for a project I'm working on in the hope that it will allow me to develop it reasonably quickly. What I'm after is some advice. I have attached a database diagram with some

Route wildcards

2007-01-31 Thread Dave Rogers
In the system that I am putting together, I would like to be able to drop plugins into the system and they just work. If I use scaffolding, this works. I would like to, however, allow the use of URLs created by the administrator of the system, such as: /aboutus /aboutus/contacts /community /comm

Re: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-01-31 Thread Dr. Tarique Sani
On 1/31/07, lukemack <[EMAIL PROTECTED]> wrote: > > What would be the point of having cake within a joomla component? isnt > the point of cake that its a rapid development framework for rolling > your own web application? Because some people need it :-) Tarique -- =

Re: CSS doesn't work, how to use cake for manage templates only?

2007-01-31 Thread bbuchs
$html->css('default') outputs a LINK to the default.css file; it doesn't INCLUDE the css in your template --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-p

Re: How to use the new Cake PHP i18N and l10N

2007-01-31 Thread palPalani
Hi, Checkout the link, http://groups.google.com/group/cake-php/browse_thread/thread/2f9d4367bfd43f38/?lnk=igtc# On Jan 10, 12:05 am, "Sebastian Macias" <[EMAIL PROTECTED]> wrote: > Can anybody post a short example of this new feature usage? > > I found this in the bakery: > > "Its mostly automag

How to use i18n with database in CakePHP 1.2

2007-01-31 Thread palPalani
hi, I have found solution for implementing multilingual static content in CakePHP 1.2. I want to know, how to use database based multilingual content. please help me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: using findall criteria in a HABTM setup

2007-01-31 Thread miggs
so the problem was remedied. I got help from AD7six on the IRC, but i figured I'd post my results in case someone else ran into the same problem. I needed to add this again after I ran the first query for the pagination. $this->Story- >bindModel(array('hasOne'=>array('AudiencesStory'=>array()))

Re: How to use NOT IN with findAll()

2007-01-31 Thread AD7six
On Jan 31, 4:37 pm, Gonçalo Marrafa <[EMAIL PROTECTED]> wrote: > Any thoughts? Use "AND NOT" as the array key or upgrade. Ref: https://trac.cakephp.org/ticket/1793 HTH, AD7six Please note: The manual/bakery is a good place to start any quest for info. You may get your answer quicker by asking

Re: How to use NOT IN with findAll()

2007-01-31 Thread Gonçalo Marrafa
On Wed, 31 Jan 2007 15:05:09 - "nate" <[EMAIL PROTECTED]> wrote: > $this->Model->findAll(array("not" => array("field" => "value"))); Sorry, not working! I can make it work for OR and AND but not for NOT. It generates a normal condition as if: $this->Model->findAll(array("field" => "value"

Re: using findall criteria in a HABTM setup

2007-01-31 Thread miggs
Thanks for the responses. I think what I'm looking for is explained in the link from AD7six. And I think I've almost got it working based on reading it. I think that the pagination setup that I'm using might be breaking it. The SQL output I get is when I set debug to 2: 7 SELECT COUNT(*) AS

Re: CSS doesn't work, how to use cake for manage templates only?

2007-01-31 Thread anselm
> i've create a app/webroot/css/default.css file and i've included it > with: > > css('default');?> > > and the browser output is: > > > > but no css is display! > This looks correct to me - is the problem that the browser doesn't load the CSS or that your CSS rules don't work as expected ? Try

Re: How to use NOT IN with findAll()

2007-01-31 Thread nate
$this->Model->findAll(array("not" => array("field" => "value"))); On Jan 31, 9:50 am, Gonçalo Marrafa <[EMAIL PROTECTED]> wrote: > Hi. > > I've read in the manual how i can use IN conditions in findAll() (i just > supply an array as the value for that field). Is there a way to do the > opposite,

How to use NOT IN with findAll()

2007-01-31 Thread Gonçalo Marrafa
Hi. I've read in the manual how i can use IN conditions in findAll() (i just supply an array as the value for that field). Is there a way to do the opposite, i.e., NOT IN? I've searched through the manual and the group but found no results. Thanks in advance. -- Gonçalo Marrafa <[EMAIL PROTEC

Re: CSS doesn't work, how to use cake for manage templates only?

2007-01-31 Thread D.Pape
"no css is display"? what do you mean? i think the output is ok. Assoluto schrieb: > Hi, > > this is my first post, i'm new in cake and in Freamworking too. > I've read all the manual but I've not found anything about using cake > as a simple template manager! > > I'm building a simple site th

CSS doesn't work, how to use cake for manage templates only?

2007-01-31 Thread Assoluto
Hi, this is my first post, i'm new in cake and in Freamworking too. I've read all the manual but I've not found anything about using cake as a simple template manager! I'm building a simple site that in the next months i upgrade with some extra. For now it's simple xHtml and Css. I'd like to hav

Search

2007-01-31 Thread Mani
Hi World, I met a problem and I can not resolve it. I created an intranet and I want to integrate a "search" form (from databases). I put this code in the controller, but I have a message on my computer, "Warning: Invalid argument supplied for foreach()...". Would you help me? function searc

Re: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-01-31 Thread lukemack
What would be the point of having cake within a joomla component? isnt the point of cake that its a rapid development framework for rolling your own web application? On 31 Jan, 11:53, "Max" <[EMAIL PROTECTED]> wrote: > Yes, you are right Then the component might be more practical to > use. >

Re: Authentication with version 1.1

2007-01-31 Thread Samuel DeVore
in your controller you should be able to get the referer for a particular page by $this->referer($default); // see then you can put that in a session $this->Session->write('referer', $this->referer()); to use late

Re: Authentication with version 1.1

2007-01-31 Thread [EMAIL PROTECTED]
usually the referrer is stored in the session, so after the login is complete, you can retrieve it from the session and do the redirect On Jan 31, 12:19 pm, "Devraj Mukherjee" <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I am trying to create a authentication system for my application. I > have

Re: hasone/belongsto with nonstandard keys

2007-01-31 Thread floepi
Ups sorry got a mistake in there. Should be like this $whichKey = empty($assocData['associatedKey']) ? $model->primaryKey : $assocData['associatedKey']; $sql .= ' = ' . $model->escapeField($whichKey); in dbSource. Does anyone know if that could cause problems when i do not use $this- >name ??

Re: Order, OrderLine style design problem

2007-01-31 Thread Devraj Mukherjee
Thanks will try a $hasMany relationship On 1/31/07, Grant Cox <[EMAIL PROTECTED]> wrote: > > Well, change your table / field names to match the Cake conventions > ( http://manual.cakephp.org/appendix/conventions ), build your models, > add the associations you think you need ( http://manual.cakep

Authentication with version 1.1

2007-01-31 Thread Devraj Mukherjee
Hi Everyone, I am trying to create a authentication system for my application. I have managed to create a method in the app_controller.php file that allows me to check if a user is logged in. I am using session variables. However I wish to be able to re-direct the user back to the URL their orig

Re: hasone/belongsto with nonstandard keys

2007-01-31 Thread floepi
Hi there, i actually had the same problem and fixed it by created my own hasOne function. You need to change some stuff in the dbo_source file and the model_php5 file. on line 873 in dbo_source you can put this code in there $associatedKey = trim($this

chmod like croup based ACL

2007-01-31 Thread [EMAIL PROTECTED]
hi, I'm thinking about doing universal authentication system for my new project (and afterward projects) based on good old unix style chmod (like 0777 aso) read, write, execute but it's not always useful to develop a new bicycle so anyone have done this allready or have any ideas for best practi

Re: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-01-31 Thread Max
Yes, you are right Then the component might be more practical to use. I'm gonna try it in a few days... On Jan 30, 1:07 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 1/30/07, Max <[EMAIL PROTECTED]> wrote: > > > Do you mean all the cake files inside the component directory ?? > > I

Re: passing 0 in url

2007-01-31 Thread cwsTrummer
i found the error router.php line 188 $out['pass'] = array_filter(explode('/', $found)); array_filter deletes all value which are 0, null or false i think 0 should be left in the array!!! On 31 Jan., 11:38, "cwsTrummer" <[EMAIL PROTECTED]> wrote: > hi there > > ok i pass vars in my url lik > in

Re: testsuite, some examples.

2007-01-31 Thread Davide
Davide said: > The main problem is that I don't know how to use the testsuite, so I don't > know if I have to manually load each component (controller and model) or > it should be handled manually by the suite. Actually I've solved in this way[1] and seems to work. I would like to know if this is

Re: View caching problem with

2007-01-31 Thread Langdon Stevenson
Hi AD7six I can see that my previous post wasn't clear :-) I get the following performance: No cache, no requestAction: 6 seconds Cache, no requestAction: 1 second Cache, with requestAction: 3 seconds The action called by requestAction is pretty light weight, so while it steals about

passing 0 in url

2007-01-31 Thread cwsTrummer
hi there ok i pass vars in my url lik index.php/mycontroller/myaction/myparam1/myparam2/myparam3 function myaction($param1, $param2, $param3) { } works fine but when one param is int "0" for exmaple the second param then the third param is the second param for example myaction/test/0/9 param1

Re: multilingual

2007-01-31 Thread Kathrin
Thanks a lot! Its working!!! Thanks!! Kathrin On Jan 31, 11:29 am, "D.Pape" <[EMAIL PROTECTED]> wrote: > Hi kathrin. > > there is a topic about l18n: > > http://groups.google.com/group/cake-php/browse_thread/thread/63e58993... > > i think you need something like this: > > $language = 'deu'; > $t

Re: session id is changing

2007-01-31 Thread cwsTrummer
yeah that was right i set it to medium and it works the referer.id was wrong because of the proxy On 24 Jan., 16:21, "TommyO" <[EMAIL PROTECTED]> wrote: > When security is set to high, cake generates a new session id on every > call to greatly minimize the risk of session hijacking. This should

Re: multilingual

2007-01-31 Thread D.Pape
Hi kathrin. there is a topic about l18n: http://groups.google.com/group/cake-php/browse_thread/thread/63e589937b1d545a?hl=en i think you need something like this: $language = 'deu'; $this->Session->write('Config.language', $language); or this: $language = 'deu'; Configure::write('Config.lang

Re: Style switcher / font resizer

2007-01-31 Thread AD7six
On Jan 31, 10:58 am, "lukemack" <[EMAIL PROTECTED]> wrote: > The reason is that the client wants it and the target audience is not > internet savvy. A nice obvious set of buttons on the page is what they > want. The original question was really how do I do this in cake in a > nice simple way? Coul

Re: View caching problem with

2007-01-31 Thread AD7six
On Jan 31, 10:38 am, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > Hi AD7six > > I hadn't thought about using data stored in a session. That would be > useful. > > I have just used the suggestion in this thread to use requestAction(). > I put it in the view rather than in an element and it works

Re: Style switcher / font resizer

2007-01-31 Thread lukemack
The reason is that the client wants it and the target audience is not internet savvy. A nice obvious set of buttons on the page is what they want. The original question was really how do I do this in cake in a nice simple way? Could I put it in default.thtml? On 31 Jan, 08:28, "AD7six" <[EMAIL PR

multilingual

2007-01-31 Thread Kathrin
Hi, ich work with cakephp 1.2 dev. I use in my project the multilingualism and everything is OK. Now I want to implement a Button for user to change the language. I have found the class L10n::__setLanguage ( $language = null) and the in __bindTextDomain ($domain, $directory=null) in I18n

Re: web app development

2007-01-31 Thread ianh
Hi, Second that - don't do one database per user. However you can have one model use different tables for each account. By way of example, I am nearly finished a (cake-based) app that allows users to put custom fields in their forms. Of the various approaches, I chose to set up a new table for ea

Re: View caching problem with

2007-01-31 Thread Langdon Stevenson
Hi AD7six I hadn't thought about using data stored in a session. That would be useful. I have just used the suggestion in this thread to use requestAction(). I put it in the view rather than in an element and it works fine. The page request time is about half what it would be without caching

Re: requestAction issue when using a plugin

2007-01-31 Thread Dr. Tarique Sani
On 1/31/07, Doug <[EMAIL PROTECTED]> wrote: > I downloaded the nightly build ( 1.2.x.x_30.01.2007.zip ), which I > think is the newest I can get. And it looks different from your diff. Yes, presume it would be different from the diff (the diff is not for 1.2) but the problem appears to be simil

Re: requestAction issue when using a plugin

2007-01-31 Thread Doug
On Jan 31, 12:59 am, "Dr. Tarique Sani" <[EMAIL PROTECTED] > There was a bug in v1.1 which prevented more than one requestAction > calls on the same page to the same plugin and it was fixed - search > the Trac for it, I had reported and submitted a patch - perhaps it is > a similar issue raising i

Re: i18n 1.2

2007-01-31 Thread Ámon Tamás
Larry E. Masters aka PhpNut wrote: > > $language = 'deu'; > Configure::write('Config.language', $language); > > > You can also use: > > $language = 'deu'; > $this->Session->write('Config.language', $language); > Thanks, bud I have a lot of other question about it: 1. I like the url'

Re: View caching problem with

2007-01-31 Thread AD7six
On Jan 29, 10:33 pm, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > Thanks for both of your input. However what I am looking for is a > definitive answer to the question: > >Does the example in the manual work? The manual makes no hint as to where $newProducts comes from (that example?), i

Re: Style switcher / font resizer

2007-01-31 Thread AD7six
Hi All, Although not particularly a Cakey question.. On Jan 29, 3:59 am, Kaste <[EMAIL PROTECTED]> wrote: > define css: > body{font-size: 14px} // = that's your "original"-"100%"-size That is potentially not a very good idea, and it's interesting that it's mentioned as part of an accessibility

Re: using findall criteria in a HABTM setup

2007-01-31 Thread AD7six
Hi Miggs, http://groups.google.com/group/cake-php/tree/browse_frm/thread/f23b1825050ad543/0e1deb52d028b5d5?rnum=1&q=HABTM+filtering&_done=%2Fgroup%2Fcake-php%2Fbrowse_frm%2Fthread%2Ff23b1825050ad543%2F014092749592de70%3Flnk%3Dgst%26q%3DHABTM%2Bfiltering%26rnum%3D1%26#doc_e793267f42fa77fd If goog