Re: MySQL server versions

2008-09-05 Thread David C. Zentgraf
What version of Cake are you using? The find('all', ...) syntax is somewhat of a recent development. It certainly wasn't in Cake 1.1. Seems to me you are using a version of Cake that expects the first find() parameter to be the condition, hence it puts whatever you put in there right after

Re: Going crazy trying to get my CakeAMF installation working

2008-09-05 Thread Bobby
Thanks for all of your help getting my setup working. Btw, I had to change the cake-amf tutorial code to get the single request button working to: private function onResult(result:*):void { for (var i:int=0; i < result.Users.length; i++) { d

Re: Validation Issue - Multiple rows / multiple models, One form

2008-09-05 Thread Leonardo
I have the same problem. Any idea? sorry my english. On Aug 17, 5:22 pm, Donius <[EMAIL PROTECTED]> wrote: > Thank you, but sadly not quite what i'm looking for.  I can get the > validation to accept and reject successfully without issue.  My > problem is that theformelements on the front end a

Trace the functions invoked between page request and output

2008-09-05 Thread RamyaK_CS
Hi all, I want to trace all functions invoked in cake php code between a page request e.g. http://localhost/index.php and the output. Is there some way to trace all the files and functions invoked for gathering the output . I am using apache server2.2, mysql database, php5.2.6. Regards, Ramya

Re: MySQL server versions

2008-09-05 Thread Ryan
Darrell: That's not my query, it's what CakePHP generated for me. I do believe backticks are ok though. David: Here is my posts_controller.php model (I took it verbatim from http://book.cakephp.org/view/335/Create-a-Posts-Controller): set('posts', $this->Post->find('all')); } } ?> Thanks!

Re: Suggestion: Custom paginate() method ...in a Behavior

2008-09-05 Thread Jaime
Another workaround for this: class AppModel extends Model { function paginate($params) { return $this->Behaviors->Mybehaviour->paginate($this, $params); } function paginateCount($conditions) { return $this->Behaviors->Mybehaviour->paginateCount($this, $conditions); } } I don't

sbcglobal.net strangeness

2008-09-05 Thread Baxter
I'm not sure if this should be a ticket, or if I missed something. I just received a very confused email from someone who was trying to register for a user account with her [EMAIL PROTECTED] email address. Her address, although unquestionably valid, could not get through CakePHP's email validator

Re: MySQL server versions

2008-09-05 Thread David C. Zentgraf
Seems to me you're using the wrong syntax in your $this->Model- >find(***) call. Can you paste it in here? On 6 Sep 2008, at 07:02, Ryan wrote: > > I am just getting started with Cake. Impressed so far! Trying out the > blog tutorial from the Cookbook (http://book.cakephp.org/view/219/ > Blog)

[SOLVED] - AD7six Upload Behaviour

2008-09-05 Thread Josoroma
After almost 7 days of debuggin is done! The problem was the fullpath of the convert command, i just modified by hand the file image_upload.php, in the line 508 i added the path to convert: $command = "/usr/local/bin/convert $input $params $output"; My model is: array(

Re: retrieving an ARO list that have access to an ACO

2008-09-05 Thread Stinkbug
Yea, that's what I was thinking I would have to do, but wanted to make sure there wasn't another solution. The problem is that I have a few hundred ARO's that's going to have to be set on a form submission. I can up my time out, but it's going to take a while. Anyone have any solutions on how t

Re: reverse routing won't work

2008-09-05 Thread Dardo Sordi Bogado
Use: echo $form->create(NULL, array('url' => array('controller' => 'requests', 'action' => 'edit', 'band', $id))); On Fri, Sep 5, 2008 at 12:26 PM, cronet <[EMAIL PROTECTED]> wrote: > > Hi Jaime. > > I Found my mistake. I missed the generic pages route, hidden between > comments. The router catc

Re: Allowing entire controllers with Auth component

2008-09-05 Thread jbarbede
This solution works only in this special case, for pages_controller. For another controllers, it doesn't work. I explain my situation: I added in my app_controller the Auth component and configure it to allow 'display' (I suppose you've the same tekomp): //Set application wide actions which d

Re: MySQL server versions

2008-09-05 Thread Darrell
Remove the backticks ( ` ), you can replace it with a single parenthesis ( ' ) if necessary, but it should only be necessary if a field name is two words like 'book title'. Ryan wrote: > I am just getting started with Cake. Impressed so far! Trying out the > blog tutorial from the Cookbook

Re: pass info from controller methodA to methodB

2008-09-05 Thread Mona
Yes true, I do not expect CakePHP to add any data to session for me...I guess I thought that if I do a $this->set() or $this->data, it will be automatically saved for me and accessible in other requests...now I know it is a wrong assumption (: Thanks for the $this->Sessison->write() tip. Thanks

MySQL server versions

2008-09-05 Thread Ryan
I am just getting started with Cake. Impressed so far! Trying out the blog tutorial from the Cookbook (http://book.cakephp.org/view/219/ Blog) and getting this error. Query: SELECT `Post`.`id`, `Post`.`title`, `Post`.`body`, `Post`.`created`, `Post`.`modified` FROM `posts` AS `Post` WHERE all LIM

Re: retrieving an ARO list that have access to an ACO

2008-09-05 Thread Kappa
I have been working with AROs and ACOs in the last period, and i think the the main problem of your question relies on the fact that both AROs and ACOs are organized as trees (MPTT), so since in general there is no explicit 1-1 association between ARO and ACO, but each rule it's tipically express

Re: Haml and Sass for CakePHP

2008-09-05 Thread Ryan
Thanks for the link. I'd come across it in my early search. Yeah, seems old (Haml has been updated significantly over the last year) and no Sass. Has anyone worked with it before on an RoR project? I love it so much I shudder to think about going without. On Sep 5, 6:56 am, "Marcin Domanski" <[E

Re: AuthComponent using, allowing free access to home.ctp

2008-09-05 Thread BrendonKoz
This took me what seemed like forever to find - and to which some people thought to be a simple problem. I probably should have added it to "The Book" but never thought of it. Oops. It's the "pages" controller, "display" action. You'd want to explicitly allow it. I figured that all of my rend

Re: AD7six Upload Behaviour - Getting close

2008-09-05 Thread Josoroma
Im using cakephp 1.2 and the behaviors: http://trac.assembla.com/cake-base/browser/branches/sample_app/app/models/behaviors/upload.php http://trac.assembla.com/cake-base/browser/branches/sample_app/app/models/behaviors/image_upload.php And im trying to upload and save the image without using the

Re: Routes question (what if second pass variable is set)

2008-09-05 Thread villalvilla
look at this file in your installation: cake/tests/cases/libs/ router.test.php hope this helps... On 5 sep, 20:41, Fahad <[EMAIL PROTECTED]> wrote: > hi, > > i m developing my own blog application using cakephp and need some > help with routes. > > for example, i have 3 categories: cakephp, jquer

Cakephp sessions -> Set::extract implementation of xpath issues

2008-09-05 Thread villalvilla
Hi all! I'm working on an tool that puts cakephp, red5 streaming server and oracle together. It all works ok, but the problem are the shared sessions between cake and red5. I've configured all the parameters to have the database ready to work with cake sessions, and i can see the contents of the c

Re: Cake 1.1.19 stable

2008-09-05 Thread teknoid
No worries, build stuff in 1.1... When 1.2 becomes stable charge them lost of $$$ to convert to 1.2 Put this in a contract, since once 1.2 is stable 1.1 is obsolete and will require immediate upgrade ;) On Sep 5, 3:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I know all this, believe

Re: Cake 1.1.19 stable

2008-09-05 Thread mark_story
On Sep 5, 3:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I know all this, believe me > > My client decides because they are corporate and have people who said > they could not have 'not stable' software used for their sites, which > is I agree is the position of people who don"t really

Re: Cake 1.1.19 stable

2008-09-05 Thread [EMAIL PROTECTED]
I know all this, believe me My client decides because they are corporate and have people who said they could not have 'not stable' software used for their sites, which is I agree is the position of people who don"t really know what software is about, they don"t even have the skills to judge whet

Re: validation

2008-09-05 Thread Donkeybob
All you have to do is go through the tutorials and you'll pick it up. Sorry to hear about your deadline but you might want to keep it simple for your project. On Sep 5, 2:39 pm, Ranju <[EMAIL PROTECTED]> wrote: > Hello > > I think u r right. this is my first project with cakephp and tomorrow > de

Re: pass info from controller methodA to methodB

2008-09-05 Thread teknoid
$this->Session->write() You certainly would not expect cake to add any data to session for you? On Sep 5, 1:51 pm, Mona <[EMAIL PROTECTED]> wrote: > Hi everyone: > > I guess I thought CakePHP will have an easy way to store data between > client requests for the same controller class, but it soun

Routes question (what if second pass variable is set)

2008-09-05 Thread Fahad
hi, i m developing my own blog application using cakephp and need some help with routes. for example, i have 3 categories: cakephp, jquery, and css. and i have one article (post) associated to each of those categories. i want the urls to be like this: 1. http://mysite.com/archives/{category}/

Re: validation

2008-09-05 Thread Ranju
Hello I think u r right. this is my first project with cakephp and tomorrow deadmin of my project. so i have not tims for more R & D that time . no other option instead ask to another person. On Sep 5, 11:05 pm, Donkeybob <[EMAIL PROTECTED]> wrote: > Listen Ranju . . .you have to read the manu

Re: templete

2008-09-05 Thread DaveMahon
You need to be much more specific. For now, read section 3.9.2 (Layouts) from the manual to get started. On Sep 5, 1:37 pm, Ranju <[EMAIL PROTECTED]> wrote: > I want set own templete with cakephp. pls help me. > > thanks --~--~-~--~~~---~--~~ You received this mess

Re: validation

2008-09-05 Thread Donkeybob
Listen Ranju . . .you have to read the manual and just search in this group to find your answers. It doesn't sound like you're doing that. All of your questions can easily be found by reading the manual and searching blogs. As a developer, you can't expect everything to be handed to you unless you

Re: AuthComponent using, allowing free access to home.ctp

2008-09-05 Thread Sam Sherlock
Give this a go http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/ Where is the controller for this page, > if any ? look in cake/libs/controller look at pages_controller.php 2008/9/5 ojonam <[EMAIL PROTECTED]> > > Hello, > > I am starting to use the Auth Component, and have, in

Re: pass info from controller methodA to methodB

2008-09-05 Thread Mona
Hi everyone: I guess I thought CakePHP will have an easy way to store data between client requests for the same controller class, but it sounds like there isn't a built-in way (via $this->set or $this->data) and I have to store the info into the session myself... Is this conclusion correct? tha

AuthComponent using, allowing free access to home.ctp

2008-09-05 Thread ojonam
Hello, I am starting to use the Auth Component, and have, in my app_controller.php, defined the following beforeFilter method : function beforeFilter(){ if(isset($this->Auth)){ $this->Auth->loginAction = array('admin' => false, 'controller' => 'users', 'action' => 'login

Re: pass info from controller methodA to methodB

2008-09-05 Thread Mona
Hi Mark: I tried to store it in various ways, this $this->set, via a class variable, via a static variable...but nothing worked... Mona --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to th

Re: Older CakePHP Release Question...

2008-09-05 Thread taokodr
Thanks a lot! I'll give it a try. I believe I've read some of your articles in the past while learning CakePHP. Thanks for being so helpful. Regards, Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

validation

2008-09-05 Thread Ranju
I wnat validation with my fields and set with and heiht of text boxes and other control Pls. help me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@goog

templete

2008-09-05 Thread Ranju
I want set own templete with cakephp. pls help me. thanks --~--~-~--~~~---~--~~ 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

user session management

2008-09-05 Thread Ranju
Hello I want session user id after login .and save user id in other table . which type I do that. pls help me. Thnaks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send ema

mail

2008-09-05 Thread bartez
Hello, I'm having issues with mail() in cake. I'm working on a localhost so i wasn't actually expecting the emails to work (not using simplemail) but they did! But now they are not working again. I haven't touched anything and occasionally one email will go through. For a period, i was sending

Re: testing bootstrap functions

2008-09-05 Thread cronet
Ok. Now i know that i can test the bootstrap functions everywhere. But where is the best place? To do that? Regards, Alexander On 5 Sep., 17:19, cronet <[EMAIL PROTECTED]> wrote: > Hi, > > i have a function defined in bootstrap. I putted it to bootstrap, > because I need the same function in Mo

retrieving an ARO list that have access to an ACO

2008-09-05 Thread Stinkbug
I'm having a some trouble finding practical examples on how to do this. I would like to take an ACO and find a list of ARO's that have access to it. And visversa, an ARO and find what ACO's that Aro has access to. Is there something built into cake that will do that. I've looked at the AclNode

Re: Suggestion: Custom paginate() method ...in a Behavior

2008-09-05 Thread Jaime
Of course I can but, shouldn't be this in the core? --~--~-~--~~~---~--~~ 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

Re: HELP starting Cakephp

2008-09-05 Thread fr3nch13
http://book.cakephp.org/ I agree, the blog tutorial in the book would be your best place to start as a simple 'hello world' wont show you all of the advantages and options available to you in this framework. IMO, use version 1.2, not 1.1 --~--~-~--~~~---~--~~ You

Re: Newlines with the Email component

2008-09-05 Thread Arak Tai'Roth
I believe I said I had tried that in my above explanation. On Sep 3, 6:03 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > try > $data .= 'Business: ' . $this->data['Contact']['business'] . "\n" > -- > Marcin Domanskihttp://kabturek.info > > On Wed, Sep 3, 2008 at 9:17 PM, Arak Tai'Roth <[EMAIL

Re: Cake 1.1.19 stable

2008-09-05 Thread fr3nch13
IMO the RC2 is kind of a misnomer as this is the most stable release candidate of any software i've ever worked with. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email

Re: AD7six Upload Behaviour

2008-09-05 Thread José Pablo Orozco Marín
Why is so hard to share an example? I have 7 days trying to upload, resize and save an image in a single field named logo, I tried everything. This list is to help people who knows how to ask for help, and i think i asked nice for help, posting my code, trying to read the api, searching in goolge

Re: reverse routing won't work

2008-09-05 Thread cronet
Hi Jaime. I Found my mistake. I missed the generic pages route, hidden between comments. The router catches the first matching route, which was too generic. Switching the place in the source code does the trick. Specials first, generic last. Now I have another problem (indirect with routing): e

Re: Suggestion: Custom paginate() method ...in a Behavior

2008-09-05 Thread fr3nch13
Overwrite the method in any class (controller or even appcontroller/ appmodel) that inherits the library's class (controller/model) On Sep 5, 6:52 am, Jaime <[EMAIL PROTECTED]> wrote: > It is possible to define custom paginate() and paginateCount() methods > in a model. > > But sometimes many mod

testing bootstrap functions

2008-09-05 Thread cronet
Hi, i have a function defined in bootstrap. I putted it to bootstrap, because I need the same function in Models, Controllers and Views. According the DRY principle i think the bootstrap is the best place. Now i would like to write a testcase for this function. Is there a way to do this? Regard

Re: three level deep belongsTo

2008-09-05 Thread [EMAIL PROTECTED]
sorry, I wasn't clear, I tried his solution forward and backward, changing relationships as he suggested, and it never worked, I always get sql errors, so I thought maybe I could re-state my problem. On Aug 27, 4:30 am, RichardAtHome <[EMAIL PROTECTED]> wrote: > @wisecounselor > > > never mind, s

Re: Can I set custom HTTP headers in Cake?

2008-09-05 Thread teknoid
See RequestHandlerComponent::respondAs() On Sep 5, 8:15 am, Kocmat <[EMAIL PROTECTED]> wrote: > Hi, > How can I set custom HTTP header? I need: Content-type: text/plain; > charset=UTF-8 > > Any help will be appreciated. --~--~-~--~~~---~--~~ You received this messa

AW: SQL Error: 1054: Unknown column 'conditions' in 'where clause'

2008-09-05 Thread Liebermann, Anja Carolin
Thanks a lot! Finally I am understanding the syntax! I thought I could leave 'first' out since it is the default. But obviously it has to be there, when other arguments are following. Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von

AW: Problem on database config

2008-09-05 Thread Liebermann, Anja Carolin
Since your models reflect the db structure your chances are not good when you want to get help. I see no harm in seeing this database, you can still prohibit that he can see other dbs on your dbserver. Or populate the db with testdata as long as he helps you. Greetings Anja -Ursprünglic

Can I set custom HTTP headers in Cake?

2008-09-05 Thread Kocmat
Hi, How can I set custom HTTP header? I need: Content-type: text/plain; charset=UTF-8 Any help will be appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email

Re: Cakephp 1.2 RC2 update

2008-09-05 Thread mark_story
You can remove all your components temporarily, that removes them from the equation. After controllers are constructed, private actions are checked, components are initialized, beforeFilter() is fired, components get startup()'d. Then missing action is checked and finally the action is fired.

Re: Cake 1.1.19 stable

2008-09-05 Thread mark_story
On Sep 5, 2:45 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello there, > > I have a client that won't let me use 1.2 because 1.1.19 is tagged as > stable whereas 1.2 is RC2... > > I tried and tried to explain to him the many reasons why it would be > better and more efficient and more se

Suggestion: Custom paginate() method ...in a Behavior

2008-09-05 Thread Jaime
It is possible to define custom paginate() and paginateCount() methods in a model. But sometimes many models can share that same pagination methods, and therefore they could be defined in a single behavior. However, the core paginate() method in Cake's core (default) controller only calls the cu

Re: Memory leakage

2008-09-05 Thread mark_story
On Sep 5, 12:56 am, Dianne van Dulken <[EMAIL PROTECTED]> wrote: > And continuing on on my own thing. > > I've now put some code in the core cake information, within libs\model > \datasources\dbo\dbo_mysql.php > > function _execute($sql) { > mysql_free_result(); // just to m

Re: Putting models in subdirectories?

2008-09-05 Thread Rick
Well that is just awesome! Who would have suspected it. Thanks. On Sep 4, 12:01 pm, Daniel Hofstetter <[EMAIL PROTECTED]> wrote: > Hi Rick, > > > Does anyone know how to use models in subdirectories?  For example, > > say I have two models: > > > app/models/inventory/stock_model.php > > > app

Re: HELP starting Cakephp

2008-09-05 Thread Donkeybob
The blog tutorial will get you started along with reading the manual. On Sep 5, 2:33 am, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > Theres a book or two on amazon. > > Also read book.cakephp.org > > the only good > > > looking information I can find is on the IBM site and on the cakephp > > AFAI

Re: SQL Error: 1054: Unknown column 'conditions' in 'where clause'

2008-09-05 Thread David C. Zentgraf
> It seems my syntax for find isn't ok, but as far as I can see I follow > correctly Nope, look again. The first argument either is "string $type" ('all', 'count' etc) or the conditions array. It is not, however, an array containing the conditions array. Just change that to $hotelmaster = $t

Re: Complex association of 3 models...or is it?

2008-09-05 Thread Adrian Cardenas
Thanks guys, the articles did help and I think I have a starting point now. On Thu, Sep 4, 2008 at 11:01 PM, teknoid <[EMAIL PROTECTED]> wrote: > > Yes, you'd need a join table for your HABTM with id, user_id, game_id > *and* role_id > > I briefly explain how cake deals with the join table/model

Problem on database config

2008-09-05 Thread [EMAIL PROTECTED]
Hi I have a particular situation. I have my application with his DB. Now I have some external collaborator that use CakePHP that helps me to complete the application. I would that these collaborator can't see the structure of my DB but they can help me to deply the CAKPHP App? How can I resolve th

SQL Error: 1054: Unknown column 'conditions' in 'where clause'

2008-09-05 Thread Liebermann, Anja Carolin
Dear all, I have a function in a controller: function getHotelmaster($id) { $params = array( 'conditions' => array('Hotelmaster.id' => $id), //array of conditions 'recursive' => -1 //int ); $h

$form->input() date select strange data posted

2008-09-05 Thread Eth
Hi everyone, I am having a strange problem where what is selected in the date field does not actually arrive on the next page. I have the following code for the date fields in my view: input('Search.date_from', array('type'=>'date', 'dateFormat' => 'YMD', 'label' => __('lb_date_from',true), 'cl

Netbeans support for CakePHP

2008-09-05 Thread Jacob
The developers of PHP for Netbeans are planning on building support for different Frameworks. I've been using it since early release, and while there are still some issues, I love it as an IDE. I moved from Eclipse to Netbeans about 2 months or so ago, and have never gone back. If you do use Net

Error: C:/xampp2/htdocs/test/cake/console\config\ not found

2008-09-05 Thread toby78
icon.gif copied to c:\xampp2\htdocs\test\webroot\img\cake.icon.gif C:\xampp2\htdocs\test\cake\console\libs\templates\skel\webroot\img \cake. power.gif copied to c:\xampp2\htdocs\test\webroot\img\cake.power.gif C:\xampp2\htdocs\test\cake\console\libs\templates\skel\webroot \index.php copied to c:\

RE: Cake 1.1.19 stable

2008-09-05 Thread James Chua
I have different problem as my customer want to wait for 1.3 > Date: Thu, 4 Sep 2008 23:45:07 -0700 > Subject: Cake 1.1.19 stable > From: [EMAIL PROTECTED] > To: cake-php@googlegroups.com > > > Hello there, > > I have a client that won't let me use 1.2 because 1.1.19 is tagged as > stable wher

Re: Haml and Sass for CakePHP

2008-09-05 Thread Marcin Domanski
http://bakery.cakephp.org/articles/view/haml-markup-haiku its old but you get a general idea. i dont know about sass. i dont think phphaml has support for it. HTH, -- Marcin Domanski http://kabturek.info On Fri, Sep 5, 2008 at 5:57 AM, Ryan <[EMAIL PROTECTED]> wrote: > > Hello all, > > I am wor

Re: Cakephp 1.2 RC2 update

2008-09-05 Thread RLR
Thomas, thanks for the help. Unfortunatly this is not the case. What code could be causing the redirects after the __construct method in app_controller? If I call up a bogus url I see the browser redirecting to / then to the url I entered. I was using the auth system called "CakeAuthComponent (YA

Re: Knowing in model's beforeSave if model is saving or updating

2008-09-05 Thread grigri
> Check $this->id Well, it is possible to set the id of a new record before saving, so this won't be 100% bulletproof. This would be better: if (!empty($this->id) && !$this->exists()) { // Create } else { // Update } --~--~-~--~~~---~--~~ You received this mes