Re: parameter 0 in requestAction do not work

2008-08-22 Thread Klaus Schwarzkopf
Hi mark_story, thank you for fixing my ticket 5299. Klaus mark_story wrote: Klaus, If you could open a ticket on trac.cakephp.org and provide a way that we can reproduce the error or provide a test case, then we can fix this issue. As for using array urls for requestAction, this will

User Model and its associations in AuthComponent

2008-08-22 Thread phpcurious
Hi guys, Let's say, I have User model and it belongsTo a Group Model... I use AuthComponent to authenticate users like in user login. but when I dump the $_SESSION the user object in Session doesn't have its association to the Group Model. what is the proper way to associate my user in active

Re: Should I be using a custom query?

2008-08-22 Thread RichardAtHome
$contacts = $this-Contact-find('first', array( 'conditions' = array('Contact.jobType' = 'main) ) ); Note the 'first' parameter. On Aug 22, 12:40 am, eagle [EMAIL PROTECTED] wrote:

Re: how to do multiple hasmany

2008-08-22 Thread RichardAtHome
You need to combine them both into 1 hasMany array: var $hasMany = array( 'Childclass1' = array( 'className' = 'Childclass1' ), 'Childclass2' = array( 'className' = 'Childclass2' ) ); On Aug 22, 12:43 am, robert123 [EMAIL PROTECTED] wrote: i have parent model, it has two

Can render() work in this way???

2008-08-22 Thread vibhor
Hello all, I want to generate a dynamic table using ajax inside a view page of my application. Th url of my view page is like this: http:/.../projects/view/16 I want to know, since I am on the view page now, so should the render function in my action be like this?? $this-render('view/16',

Re: CakePHP without database access. Webservices only

2008-08-22 Thread chovy
On Aug 13, 8:49 am, Bob Mattax [EMAIL PROTECTED] wrote: I am working on a current application that doesn't have any direct access to the database. The powers that be have limited all data requests and updates through a series of webservices. No big deal. The only problem I have is trying

Re: HABTM woes (cake_1.2.0.7296-rc2)

2008-08-22 Thread eleven10
Hi, Ok, first thing is I think it might be a good idea to not have duplicate association names, you Currently have Bid belongsTo User,BidSession BidSession hasMany Bid BidSession hasAndBelongsToMany User User hasMany Bid User hasAndBelongsToMany BidSession I really think you'd be

Re: CakePHP without database access. Webservices only

2008-08-22 Thread clemos
I guess they want no tables ($useTable), but also no database at all... Because even if you don't use tables at all, you'll need a database connection to make Cake work... Maybe a dummy datasource / db driver would be possible... +++ Clément On Fri, Aug 22, 2008 at 7:51 AM, chovy [EMAIL

Re: Should I be using a custom query?

2008-08-22 Thread eagle
Thanks Richard, I had tried that already, and it works fine when viewing contacts but not for retrieving just the 'main' contact when viewing the venues. The venue page is not reading the conditions set in the contacts_controller. It is basically a SELECT * FROM contacts not a SELECT * FROM

Re: CakePHP without database access. Webservices only

2008-08-22 Thread Dr. Tarique Sani
On Fri, Aug 22, 2008 at 2:49 PM, clemos [EMAIL PROTECTED] wrote: I guess they want no tables ($useTable), but also no database at all... Because even if you don't use tables at all, you'll need a database connection to make Cake work... Maybe a dummy datasource / db driver would be

Re: HABTM woes (cake_1.2.0.7296-rc2)

2008-08-22 Thread Jon Bennett
Hi amitava, Ok, first thing is I think it might be a good idea to not have duplicate association names, you Currently have Bid belongsTo User,BidSession BidSession hasMany Bid BidSession hasAndBelongsToMany User User hasMany Bid User hasAndBelongsToMany BidSession I really think you'd

Using one login function on 2 different controllers

2008-08-22 Thread seanislegend
Hi, I have a user admin section. I'm using the Auth component and in this section I have a login action which, as you may guess, handles the login. I also have a login form on my home page. What I need to do is to be able to have the form on the home page be able to post to the login action on

To write my database records in Excel

2008-08-22 Thread Fredy
In servlets we hav the option of writing into a Excel / word file straight away usin contentype() method Is there any similair way to write my mysql database records into Excel sheet using php or else is there some other way ... I need to Generate Reports from my database ... dynamic

Re: HABTM woes (cake_1.2.0.7296-rc2)

2008-08-22 Thread eleven10
Hi Jon, I really appreciate your help. Thanks to you, I hope my cake will turn out good :). that wasn't really my point, from your model setup something struck me as odd, though looking at it now I can't see it, so perhaps it's fine! Generally gut reactions are true, so if you ever recall

Re: Using one login function on 2 different controllers

2008-08-22 Thread Dr. Tarique Sani
On Fri, Aug 22, 2008 at 4:18 PM, seanislegend [EMAIL PROTECTED] wrote: What I need to do is to be able to have the form on the home page be able to post to the login action on the users controller so I can also login from there. Set the action of the form of the home page with something like

unit test password login

2008-08-22 Thread JuergenRiemer
HI, I am unit testing a login function with testAction like so: function testValidLogin(){ $data = array( 'User' = array( 'username' = 'usrname', 'balfoomuh' = 'apassword123'

calling view element through ajax

2008-08-22 Thread f1codz
dear all, im using $ajax-link() method, is it then possible that i directly load a view element (that is app/views/elements/myElement.ctp) through the $ajax-link() method, instead of going through a controller action The basic problem is that certain pieces of my website need to

Re: Using one login function on 2 different controllers

2008-08-22 Thread seanislegend
Thanks for your suggestion. Sadly, I've already tried that and it doesn't work! On Aug 22, 12:17 pm, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On Fri, Aug 22, 2008 at 4:18 PM, seanislegend [EMAIL PROTECTED] wrote: What I need to do is to be able to have the form on the home page be able

Problem with recursive and contain

2008-08-22 Thread nastya
hi I'm using 1.2 and have a strange problem. there are three models: Author Theme Post which belongs to Author and Theme now i want to get the Posts but with recursive =-1. when i put: $this-paginate['recursive']=-1; $items = $this-paginate($this-modelClass,$scope); i

$ajax-drag - can't scroll inside draggable div

2008-08-22 Thread meximex
hi have a draggable div. a main layout with a smaller scrollable area. i just want to enable the dragging of the window-layer if the heading is dragged. same like in windows. how can i do that? thx for your help. mex --~--~-~--~~~---~--~~ You received this

Re: Using one login function on 2 different controllers

2008-08-22 Thread Dr. Tarique Sani
On Fri, Aug 22, 2008 at 6:37 PM, seanislegend [EMAIL PROTECTED] wrote: Thanks for your suggestion. Sadly, I've already tried that and it doesn't work! Can you elaborate on what does not work? Can you see the action of the form set to users/login when you view the HTML source? Tarique --

cakephp Linux

2008-08-22 Thread [EMAIL PROTECTED]
Hi, I ´m trying to install ang configure cake in linux and I dont now how. I have no expierence neither in linux nor cake. I need step by step the instructions. Thank you very much... --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: $ajax-drag - can't scroll inside draggable div

2008-08-22 Thread meximex
i found out, that the handle parameter is supposed to handle this operation. my problem is that the object with the id for the handle is loaded upon ajax request success. but if i specify it in the 'after' parameter of the ajax load it ignores it. i solved this problem by doing this: div

Re: $ajax-drag - can't scroll inside draggable div

2008-08-22 Thread clemos
Hi mex This is not really a cake question, as $ajax-drag is actually a wrapper of scriptaculous' Draggable object : http://github.com/madrobby/scriptaculous/wikis/draggable The handle option is what you're looking for. It'll give you something like : $ajax-drag(div_id,array(handle=heading_id));

Re: $ajax-drag - can't scroll inside draggable div

2008-08-22 Thread clemos
Hi The right callback for creating your Draggable once your Ajax call is done should be oncomplete (add oncomplete:function(){new Draggable...} to your Ajax request options) ++ Clément On Fri, Aug 22, 2008 at 3:56 PM, meximex [EMAIL PROTECTED] wrote: i found out, that the handle

Re: Create links to navigate back to last visited page

2008-08-22 Thread draikin
Hi clemos, thank you for your solution that I read also. But just like $this- referer() doesn't work for all browsers javascript doesn't work for all users, as there are some users who don't like javascript. But if there is a need for javascript in cakephp apps anyway (i don't know if this is

Re: cakephp Linux

2008-08-22 Thread draikin
Ecxept for many solutions you could find per google I prefer the following. Download and install xampp (http://www.apachefriends.org/en/ xampp.html) and then download cakephp an install as described on many tutorials and manuals. HTH draikin [EMAIL PROTECTED] schrieb: Hi, I �m trying to

Re: Using one login function on 2 different controllers

2008-08-22 Thread seanislegend
I can indeed. It's set to /cake/users/login. This is what's posted on the login page when I login via the home page: Array ( [_method] = POST [data] = Array ( [Home] = Array ( [username] = sean [password] = test ) ) ) I presume I need to somehow switch that 'Home' with 'Users'?? Thanks for

Re: Using one login function on 2 different controllers

2008-08-22 Thread seanislegend
Ah! Got it working, just realised I had to add the model name in the input field. Thanks for your help! On Aug 22, 4:45 pm, seanislegend [EMAIL PROTECTED] wrote: I can indeed. It's set to /cake/users/login. This is what's posted on the login page when I login via the home page: Array (

Re: SQL: where column NOT IN ...

2008-08-22 Thread starkey
Perfect! Thanks! On Aug 21, 5:19 pm, teknoid [EMAIL PROTECTED] wrote: NOTIN is possible, but your syntax isnotcorrect... See the NOT array:http://book.cakephp.org/view/74/complex-find-conditions On Aug 21, 4:08 pm, starkey [EMAIL PROTECTED] wrote: Hello all, I searched for this

Cake + WAMP

2008-08-22 Thread Arak Tai'Roth
So I decided I would try using WAMP for my development setup. But for some reason I go to localhost and get the WAMP homepage fine, yet when I try to access my project I get this The requested URL /app/webroot/ was not found on this server.. I did edit the httpd.conf file to load mod_rewrite and

Pagination and Containable behavior for indirectly-related Models

2008-08-22 Thread Darwin Bautista
Hi all, I want to paginate a certain model and include some data from an indirectly-related model. To better illustrate, consider the following Model relationships: Match belongsTo array( 'FirstFamily' = array( 'className' = 'Family', 'foreignKey' = 'first_family_id' ),

Deleting with cascade with custom foreign key

2008-08-22 Thread Mambo
Hi. I'd appreciate some help on this one please... I'm trying to recursively an item that hasMany other items. The other item model has a custom $foreignKey defined (due to restrictions on the available database). However, when deleting an item, this custom foreign key isn't recognised, and

something like Joomla modules

2008-08-22 Thread luigi7up
Hello everyone. I just started to explore Cake PHP and already love it. I'm trying to create a simple CMS. I have few questions about how to solve some problems that came along development. I was using Joomla for a few years so I'm used to refer some elements like pools, latest comments, tags

Re: SQL: where column NOT IN ...

2008-08-22 Thread starkey
I'm not clear on why the NOT (column IN ()) syntax is required when NOT IN () is valid SQL (in Oracle and MySQL it works). Any ideas? Thanks! On Aug 22, 12:15 pm, starkey [EMAIL PROTECTED] wrote: Perfect!  Thanks! On Aug 21, 5:19 pm, teknoid [EMAIL PROTECTED] wrote: NOTIN is possible,

Database relationships etc

2008-08-22 Thread fuSEboX
Hi, First post here and also that text was right probably this question has been asked before etc. :) I must say that first experiences with Cake are wonderful... seems to save lots of time. Although, one part is totally confusing for me...it's the hasOne, hasMany, belongsTo... part. So I

Re: Database relationships etc

2008-08-22 Thread Rafael Bandeira aka rafaelbandeira3
Oh, I almost slept, you should try to more clear and less verborragic, so many explanation just messed up things more and more... And you should do 2 things when you can't speak a language : 1) look for groups with the same language of yours and 2) say your nacionality, so members from the same

Database table suffix

2008-08-22 Thread Dexter
Just started using CakePHP, and am pretty new to frameworks for PHP in general. I am trying to use CakePHP to rewrite a disaster of a company portal site we currently use. The database structure is pre-existing, and I don't want to have to do a database restructure. For the most part,

Re: SQL: where column NOT IN ...

2008-08-22 Thread haj
It's just current implementation doesn't take 'NOT' keyword with the use of IN() for array, i guess, and yields the same result anyway... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to

Re: SQL: where column NOT IN ...

2008-08-22 Thread Mariano Iglesias
'not' = array('Model.field' = array( 1, 2, ...)) haj wrote: It's just current implementation doesn't take 'NOT' keyword with the use of IN() for array, i guess, and yields the same result anyway... -- -MI CIO @ CRICAVA Technologies http://www.cricava.com *Blog*:

Re: To write my database records in Excel

2008-08-22 Thread Wayne Fay
This is a very common query on this list. Please search the archives. Also check the bakery for code help, especially this article: http://bakery.cakephp.org/articles/view/generate-excel-spreadsheets-from-your-database Wayne On 8/22/08, Fredy [EMAIL PROTECTED] wrote: In servlets we hav the

Re: Cake + WAMP

2008-08-22 Thread Arak Tai'Roth
Is anyone able to help me with this issue please? On Aug 22, 11:14 am, Arak Tai'Roth [EMAIL PROTECTED] wrote: So I decided I would try using WAMP for my development setup. But for some reason I go to localhost and get the WAMP homepage fine, yet when I try to access my project I get this The

Cake sheet

2008-08-22 Thread Paolo Stancato
Hi there! Can anyone tell me if this is the last revision of the Cake sheet? http://cakephp.org/files/cakesheet.pdf Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to

Re: Cake sheet

2008-08-22 Thread Samuel DeVore
On Fri, Aug 22, 2008 at 7:09 PM, Paolo Stancato [EMAIL PROTECTED] wrote: Hi there! Can anyone tell me if this is the last revision of the Cake sheet? As far as I know it is, but it is for 1.1 NOT 1.2 http://cakephp.org/files/cakesheet.pdf Thanks in advance!