Re: findall on 3 models chained with belongsto

2007-11-05 Thread Martin Schapendonk
On 11/5/07, Claudia <[EMAIL PROTECTED]> wrote: > b) The query is really inefficient: Example: If the first query > returns 10 results we need 21 queries for in total (the join query and > then 10 queries each for model2 and model3). We could get the same > result by having only one query which use

Re: HTTP 411 Error on XMLHttpRequest

2007-11-05 Thread carstep
Sorry Extjs 1.1, do I use regards On nov. 5, 20:33, carstep <[EMAIL PROTECTED]> wrote: > Hi, yes I do, I use Extjx 1.1 > > Bye > Alex > > On Nov 5, 7:33 pm, "Pablo Viojo" <[EMAIL PROTECTED]> wrote: > > > Are you using an ajax library? which? > > > Regards, > > > -- > > Pablo Viojo > > [EMAIL PROT

Re: querying across models with multiple databases and useDbConfig

2007-11-05 Thread Martin Wood-Mitrovski
Grant Cox wrote: > Except that your original post suggested that you wanted to use the > "User.id" as a condition in your WHERE clause, for a join between > Users and Documents. Which is simply not possible when you have two > databases with different permissions, regardless of the framework (o

Re: findall on 3 models chained with belongsto

2007-11-05 Thread [EMAIL PROTECTED]
As for first part of question, look at very nice behavior http://www.thinkingphp.org/2007/06/14/containable-20-beta/ . A solution for pagination in the comments. ;-) But as for the second part, I don't know any solution to reduce a number of queries :-( Very dirty hack to reduce amount of querie

Re: querying across models with multiple databases and useDbConfig

2007-11-05 Thread Grant Cox
Except that your original post suggested that you wanted to use the "User.id" as a condition in your WHERE clause, for a join between Users and Documents. Which is simply not possible when you have two databases with different permissions, regardless of the framework (or lack thereof) - it just i

Re: Beginner: Why is $_SESSION empty when I access it from a non cakephp php file?

2007-11-05 Thread BobDev
I was not specifying the correct session_name! D'oh - it really was a beginner question. Thanks, Bob --~--~-~--~~~---~--~~ 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

Creating data with two different models

2007-11-05 Thread ArthurGeek
Hi all! I'm creating a form with data from two different models. (Team and Coach). The save is working fine, except for displaying error data for the Player model. Here goes my code: ## Controller function add() { if (empty($this->data)) { $this->render

Re: ACL Aro multiple parents Cake 1.2

2007-11-05 Thread seacloud9
Check out dauth but you will want to view the cached google infomation first the page was moved.. http://64.233.167.104/search?q=cache:nO61TuOudjAJ:bakery.cakephp.org/articles/view/introduction-to-dauth-v0-3+dauth+cakephp&hl=en&ct=clnk&cd=1&gl=us&client=firefox-a http://www.ad7six.com/Demos htt

Beginner: Why is $_SESSION empty when I access it from a non cakephp php file?

2007-11-05 Thread BobDev
I have my cakePHP application running it can access the database and everything. I want a simple non-table based login. So I have a simple non-cake form to accept a username/password. After I check the u/p for validity, I want to add it to the $_SESSION. However, when I do a var_dump($_SESSION) o

Re: HTTP 411 Error on XMLHttpRequest

2007-11-05 Thread carstep
Hi, yes I do, I use Extjx 1.1 Bye Alex On Nov 5, 7:33 pm, "Pablo Viojo" <[EMAIL PROTECTED]> wrote: > Are you using an ajax library? which? > > Regards, > > -- > Pablo Viojo > [EMAIL PROTECTED]://pviojo.net > > On 11/5/07, carstep <[EMAIL PROTECTED]> wrote: > > > > > FYI: I go further and realize

Re: HTTP 411 Error on XMLHttpRequest

2007-11-05 Thread Pablo Viojo
Are you using an ajax library? which? Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 11/5/07, carstep <[EMAIL PROTECTED]> wrote: > > > FYI: I go further and realized that this happens only in FF 2.0.0.9, > but in IE6 it works perfectly! > > Bye Alex > > On nov. 5, 16:34, carste

Re: ordering a model through related model order

2007-11-05 Thread David Spreekmeester
Thanks a bunch Grigri, I guess dynamic binding was the clue I needed. The cookie methaphore I used was of course meant for the sake of simplicity, I can see you don't see more sense in using hasMany relations, but in my real world situation I do need HABTM relations, since it's a pretty complex st

Re: HTTP 411 Error on XMLHttpRequest

2007-11-05 Thread carstep
FYI: I go further and realized that this happens only in FF 2.0.0.9, but in IE6 it works perfectly! Bye Alex On nov. 5, 16:34, carstep <[EMAIL PROTECTED]> wrote: > Menawhile I've find out that I can give header information in the view > section. But the problem still exists, but a new informatio

Re: Javascript Error

2007-11-05 Thread schneimi
You have a typo in your php code, projrct.basic should be project.basic, maybe that's the problem. On 5 Nov., 08:51, Raul <[EMAIL PROTECTED]> wrote: > Javascript error.. > > I have included my js files that resides in webroot/js folder in the > default layout (default.thtml) as > > link('proj

Re: HTTP 411 Error on XMLHttpRequest

2007-11-05 Thread carstep
Menawhile I've find out that I can give header information in the view section. But the problem still exists, but a new information I've got is that the user uses only http 1.0 communications. But now I really don't have any idea what has been going wrong?!!! By Alex On nov. 5, 14:52, carstep <[

findall on 3 models chained with belongsto

2007-11-05 Thread Claudia
Hi there I have three models that are chained with belongsTo in one direction and hasMany in the other direction: Model1 belongsTo Model2 belongsTo Model3 and Model3 hasMany Model2 hasMany Model1 Now I need to query model1 and also get the related data from model2 and model3 which can be easily

Re: controller's main model's associated model instance variable

2007-11-05 Thread [EMAIL PROTECTED]
I have modeA HABTM modelB On Nov 5, 2:11 pm, francky06l <[EMAIL PROTECTED]> wrote: > Do you have modelB belongsTo ModelA in your relations ? > cheers > Franck > > On Nov 5, 12:03 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > well I thought the model instance was already loaded but I

Re: ACL Aro multiple parents Cake 1.2

2007-11-05 Thread BravoFoxtrot
I'd love to see an example of this also. I've been combing the web trying to find a good example. --~--~-~--~~~---~--~~ 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@goo

Re: CRM o CMS in CakePHP

2007-11-05 Thread Mikee Freedom
Mambo? On 05/11/2007, Pisinho <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > recently i find a CRM o CMS make with cakephp, is not 'new Drupal' , but i > don't save a link. > > > > Can I help me ? Do you have a link ? > > > > Thanks in advance. > > > --~--~-~--~~~---~-

Re: New guy needs some help

2007-11-05 Thread Chris Thompson
Thanks a ton John. I guess I missed this piece of the manual. The next thing that I am trying to figure out I think is called routing. I need to know how to get images in views to have the correct paths. --~--~-~--~~~---~--~~ You received this message because y

Re: xml parsing

2007-11-05 Thread cronet
Hi, I'm also running SimpleXML. It looked easier than the Cake XML Class. As Langdon Stevenson said, try it, if it fits your need, use it ;) Greetings On 2 Nov., 21:02, moesian <[EMAIL PROTECTED]> wrote: > Hi, > > I want to parse a few xml feeds and stick their contents into a > database. Wh

HTTP 411 Error on XMLHttpRequest

2007-11-05 Thread carstep
Hi All, I've just set up our CP application to a Linux server and it seems that several XMLHttpRequest won't fire correctly. I get in the subject meant Errors, and I don't know why. When I get the site not using an XMLHttpRequest it fires as expected, but with XMLHttpRequest is fails, I get only

Re: SimplePie View

2007-11-05 Thread seacloud9
Has anyone else run into the same problem? On Nov 4, 9:24 pm, seacloud9 <[EMAIL PROTECTED]> wrote: > I am having issues with my simplepie view. I can get a feed but I can > not display the feed. > > I am trying to follow this > example:http://cakeforge.org/snippet/download.php?type=snippet&id=3

how to store checkbox value

2007-11-05 Thread ritu
I am trying to select the checkboxes which value is directly goes to another table with id of checkbox. I search some results which has checkbox on right side and which result i like that i want to save in my table. Plz help me. --~--~-~--~~~---~--~~ You receive

Re: Unknown internal server error

2007-11-05 Thread Andreas
Ah, ok thanks. I'll talk with my host! On 5 Nov, 11:39, AD7six <[EMAIL PROTECTED]> wrote: > On Nov 5, 8:23 am, Andreas <[EMAIL PROTECTED]> wrote: > > > Hmm, yea, I'll try that. But shouldn't cakephp work even if the zend > > optimizer is enabled? > > Not if the zend optimizer has a bug in it. > >

Re: Component Repository or cake ?

2007-11-05 Thread Chris Hartjes
On 11/5/07, julian <[EMAIL PROTECTED]> wrote: > > Is there a component repository for cake? One where we can get > standard bits of functionality, like menus, password changes, what > ever ? Well, the Bakery (http://bakery.cakephp.org) contains lots of code examples so you might want to start t

Re: controller's main model's associated model instance variable

2007-11-05 Thread francky06l
Do you have modelB belongsTo ModelA in your relations ? cheers Franck On Nov 5, 12:03 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > well I thought the model instance was already loaded but I can't > explain why the behaviour is not the same if I access the model A > instance. > > I mean :

Re: Clean Cake 1.1 sigfaults apache2

2007-11-05 Thread Felix Geisendörfer
Hey MaxDao, what PHP version are you on? -- Felix -- Blogger: http://www.thinkingphp.org/ Entrepreneur: http://www.posttask.com/ /-- currently in private beta, ask me for invite / password/ Freelancer: http://www.fg-webdesign.de/ AIM:theundefined87 Skype: TimeFor23

Re: Sanitize::clean() appears not to do anything....

2007-11-05 Thread DGPhoebus
A correction to my mistype: $cleaner -> clean($this->data,array('connection' => 'default','odd_spaces' => true,'encode' => true,'escape' => true,'backslash' => true)); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Sanitize::clean() appears not to do anything....

2007-11-05 Thread DGPhoebus
A while back I asked for some help on the options for the new Sanitize. I got some great help from Joachim stating that these were the options. 00190 'connection' => 'default', 00191 'odd_spaces' => true, 00192 'encode' => true, 00193 'dollar' => t

Component Repository or cake ?

2007-11-05 Thread julian
Is there a component repository for cake? One where we can get standard bits of functionality, like menus, password changes, what ever ? Julian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. T

Clean Cake 1.1 sigfaults apache2

2007-11-05 Thread MaxDao
Hello, In my installation of cake I have created model class. And access page cake cases "[Mon Nov 05 14:09:10 2007] [notice] child pid 10406 exit signal Segmentation fault (11)" If i put $var useTable = false; to my model class it works well. Can anyone help me debugging this issue? I have t

Re: querying across models with multiple databases and useDbConfig

2007-11-05 Thread Martin Wood-Mitrovski
Grant Cox wrote: > 1. It is just not possible to do this, unless the one mysql > connection has permission to access both databases (ie same database > server, same user/pass). unfortunately in this case they are seperate databases with seperate permissions, although they are within the same

CRM o CMS in CakePHP

2007-11-05 Thread Pisinho
Hi, recently i find a CRM o CMS make with cakephp, is not 'new Drupal' , but i don't save a link. Can I help me ? Do you have a link ? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: Need clarification on $options = array()

2007-11-05 Thread DGPhoebus
Joachim thanks man. That helps a ton. Take care. Daniel On Oct 25, 2:08 pm, "J. Eckert" <[EMAIL PROTECTED]> wrote: > At the momentary state of documentation you have to go through the > source at some points to find your answers (especially on the option > arrays). > > But in general the

Re: controller's main model's associated model instance variable

2007-11-05 Thread [EMAIL PROTECTED]
well I thought the model instance was already loaded but I can't explain why the behaviour is not the same if I access the model A instance. I mean : in my action A : there seems to be a instance of model A in my action B (called in action A) : a different instance of model A that is what I ded

Re: Unknown internal server error

2007-11-05 Thread AD7six
On Nov 5, 8:23 am, Andreas <[EMAIL PROTECTED]> wrote: > Hmm, yea, I'll try that. But shouldn't cakephp work even if the zend > optimizer is enabled? Not if the zend optimizer has a bug in it. http://groups.google.com/group/cake-php/search?group=cake-php&q=+internalerror&qt_g=Search+this+group

Re: layout control with default pages controller.

2007-11-05 Thread Frank
If you however want to switch layouts with a parameter you could do it like this class PagesController extends AppController { function info($layout = null) { switch($layout) { case 'spring' :

Re: Strange "caching" in cakephp

2007-11-05 Thread Jan Koprowski
I solve my problem with $_SESSIONS in Opera by adding session_start() of begin of index.php file... Cache is present only in FF 2.0.8 - Opera don't cache anything. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

Re: Google Checkout / Paypal integration?

2007-11-05 Thread Frank
The code can be found here: http://cakegchk.googlecode.com/svn/trunk/google_checkout.php On Nov 5, 3:18 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > http://xerophyte.net looks good. > Thanks friend! you are a lifesaver. > > cakegchk did not provide any downloads, probably the code needs

Re: Unknown internal server error

2007-11-05 Thread Andreas
Hmm, yea, I'll try that. But shouldn't cakephp work even if the zend optimizer is enabled? On Nov 5, 12:16 am, francky06l <[EMAIL PROTECTED]> wrote: > Ask your provider, maybe it's possible ..I had similar on share > hosting and I did ask them proposing a "special CGI" and it works > > On Nov 4,

Re: Strange "caching" in cakephp

2007-11-05 Thread Jan Koprowski
On 4 Lis, 19:59, "Pablo Viojo" <[EMAIL PROTECTED]> wrote: > I think is a behavior related with your browser cache. Try deleting it > before going back to the list > > -- > Pablo Viojo > [EMAIL PROTECTED]://pviojo.net Thanks for response. I look at opera and FF and I get something: FF - has cac