Re: generatetreelist error in rc4

2008-12-23 Thread Nate
Hi Korcan, Without more information, it's hard to tell what the issue is. Could you paste your model files at http://bin.cakephp.org/, and post the link back here? Thanks. On Dec 23, 11:28 am, korcan wrote: > I have this line of code in my project that works in RC3, changed the > cake dir to

Where to integrate web service API

2008-12-23 Thread tekomp
I'm working on an app that needs to integrate with the salesforce.com api, but not sure where that code should be... it will be managing data, so a model would be appropriate, but perhaps a datasource would be better because it's for data from an external source? Or would it best be integrated as

Re: paginate using named parameters

2008-12-23 Thread kai
Here is some code: http://bin.cakephp.org/view/1242618351 Also, i'm trying my best to learn so if anyone has any tips to make the code better it would help me a lot. On Dec 23, 5:49 pm, kai wrote: > i have a habtm pagination query which constructs the correct sql but > when i change pages or sor

paginate using named parameters

2008-12-23 Thread kai
i have a habtm pagination query which constructs the correct sql but when i change pages or sort then $this->data and its conditions are lost. i've found that the two options i have for pagination to work completely is to use sessions or named parameters. i'm hoping to use named parameters but i'

Anyone Integrate with iContact

2008-12-23 Thread Tony
Has anyone integrated their CakePHP application with iContact? Thanks, Tony --~--~-~--~~~---~--~~ 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 unsubscri

Confused

2008-12-23 Thread rhythmicde...@gmail.com
I have 3 tables: recipes, ingredients and ingredients_recipes with foreign keys set up. I was under the assumption that due to the relationship if I saved my recipe the recipe ingredients would also be saved but this is not the case. Would someone please straighten me out? Thanks for any help. cl

new conditions structure..

2008-12-23 Thread sdc535
I've been using Cake since 1.1. Have some projects to migrate to 1.2 RC3/4 now, and have a lot of special conditions in them, for example: $searchcriteriaLoad['Load.pickup_date']='>= -!current_date'; now needs to become under 1.2 RC3: $searchcriteriaLoad[] = 'Load.pickup_date >= current_dat

Re: Auth.php redirect - Undefined variable redir

2008-12-23 Thread codershop
This has been submitted as bug #5921 https://trac.cakephp.org/ticket/5921 On Dec 22, 10:44 am, codershop wrote: > I am using revision 7949, on the > branchhttps://svn.cakephp.org/repo/branches/1.2.x.x > > In revision 7930 the return command was removed from line 676.  This > causes the code to

Re: custom SQL query - all values IN() bust be AND

2008-12-23 Thread teknoid
I have a weird feeling that this post might be related to what you are trying to accomplish: http://teknoid.wordpress.com/2008/08/06/habtm-and-join-trickery-with-cakephp/ Well, hopefully it does help somehow ;) On Dec 22, 11:21 am, dev wrote: > i'm building custom SQl query and need a little he

Re: custom SQL query - all values IN() bust be AND

2008-12-23 Thread Smelly_Eddie
How can the same field have multiple values? -it can be = '3' -it can be= '4'' Otherwise maybe your are just concatenating multiple variables into one, e.g.; -it can be='3,4' which probably should be evaluated for best practices.. You would not use IN in such a case. If the are always ordered n

Re: setlocale

2008-12-23 Thread gearvOsh
Is there a reason why this has not been implemented in the l10n? Im a but curious :p --~--~-~--~~~---~--~~ 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 u

Re: passing parameter formed by javascript function

2008-12-23 Thread Smelly_Eddie
I'm not sure I follow. I get the impression your trying to use javascript **within** your php code. PHP is a server side language. This means that it does ALL of its processing before the user see anything. (Except for special cases where output is a stream or iterative) JavaScript is a client s

Translate Behavior internals

2008-12-23 Thread "Oliver Block"
Hello everybody, I wonder if someone could help me with the following problem. I have this table called categories: CREATE TABLE IF NOT EXISTS `categories` ( `id` int(11) NOT NULL auto_increment, `name` varchar(64) NOT NULL, `modified` timestamp NOT NULL default CURRENT_TIMESTAMP, `creat

Re: Thoughts on this blog post?

2008-12-23 Thread teknoid
poorly written post, by someone who lacks any serious knowledge of the framework. imo, it would be advisable to understand the framework before making such "educational" posts. How about this? "Although I know very little about Zend, here are my X reasons to hate it..." Would you take a post wit

A table with average & total row

2008-12-23 Thread mathie
Hello, This is a design question on MVC separation. Say I need to display a table with many rows, then a total and an average row. Should the calculation of this total/average be done in the view (in the loop) or in the controller (after getting the rows from DB)? A related question. For an invo

Change The Order of $this->params

2008-12-23 Thread Kyle Decot
When using the paging feature, I've noticed that my next/prev links cause the page:2 or whatever to be at the beginning. for example: /posts/search:something becomes: /posts/page:2/search:something/ Is there a way to make sure that the page:2 ends up at the end of the url? Thanks --~--~---

Re: cake_1.1.20.7692.zip console missing?

2008-12-23 Thread Yves Latour
I did not see the obvious :) thanks a lot. On Dec 23, 4:31 pm, Gwoo wrote: > Cake 1.1 did not have aconsole:) Try 1.2 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send emai

Re: Using a model without a table

2008-12-23 Thread George
Thanks for the suggestion Dr. Loboto. That doesn't seem to do it for me either though. I'm still getting the stupid complaint that the table doesn't exist. If I add a "reports" table to the database, then it works fine, but obviously I don't want to have to add tables to the database I have no int

Apache problems

2008-12-23 Thread rhythmicde...@gmail.com
I am getting some random errors from Apache. I have a recipe manager app. Whenever I use the add method the item adds correctly but when I hit the link to return to the index page (I am on debug level 2 so the Flash is not automatic) Apache crashes and restarts. This happens about 3 out of 5 times

Re: Thoughts on this blog post?

2008-12-23 Thread Matt Curry
Here's my take: http://www.pseudocoder.com/archives/2008/12/23/8-reasons-to-hate-cakephp -Matt http://www.pseudocoder.com/ On Dec 23, 9:40 am, Donkeybob wrote: > I'd like to know what everybody else thinks of this post . . not just > his friends. > > http://ajbrown.org/blog/2008/12/22/four-reas

Import Script Help Please

2008-12-23 Thread Chad Casselman
Very new to cakePHP and of course the first thing I try doesn't follow the model. I am trying to create a script which takes a lot of post variables (from 1shoppingcart exactly) and then puts them in the corresponding values in my database design. Let's say my database is: customers customers_pro

Re: Using a model without a table

2008-12-23 Thread Dr. Loboto
Checked my models without tables, all of them work fine and differ from yours only in one param. All of them have $name : Try add $name, maybe it is just strange bug? (and clear cache too) On Dec 23, 1:26 am, George wrote: > Thanks for the suggestion, but unfortunately it didn't seem to do >

generatetreelist error in rc4

2008-12-23 Thread korcan
I have this line of code in my project that works in RC3, changed the cake dir to the rc4 version and this happens: my $conditions are defined before this line... line: 326 $this->UserTicketAlert->TicketCategory->generatetreelist(array ($conditions),null, null, '')); I moved to rc4 and I am

Re: Using a model without a table

2008-12-23 Thread George
Hmm...are you sure you linked the right podcast? That seemed to be only about formHelper. I listened to the whole thing and didn't hear anything related to setting up models without tables. Does anyone know how to check some sort of diagnostics on a model at runtime to see if the parameters are e

Re: relationships not deleting on saveAll with HABTM

2008-12-23 Thread tekomp
I was using non-automagical form fields on my form, and because of that, this was left out: Once I put that in there, it worked fine. On Dec 23, 6:37 am, tekomp wrote: > Hi, > > I have a form which is saving data to a join table using the method > found > here:http://teknoid.wordpress.com/2

Re: setlocale

2008-12-23 Thread eMarcus
Hi, The other problem with the setlocale is, that you must set it in bootstrap. I would prefer a possibility to set it somewhere at runtime - when a user switches languages for instance... bye me. On Dec 23, 4:40 pm, GetIT wrote: > Hi, > > I´ve seen many people with the same problem. > setloca

Re: How to make forms in cakephp

2008-12-23 Thread eMarcus
Hi Mona, Well, it would help if you could specify the error a bit more. The form need to be called 'app/views/users/add.ctp'. I don't know if you can make "echo $form->inputs(array('name', 'email', 'password'));" I would rather do: echo $form->input('User.name'); echo $form->input('User.pas

setlocale

2008-12-23 Thread GetIT
Hi, I´ve seen many people with the same problem. setlocale() entry in bootstrap.php doesn't work. Some people think its a problem with the versions of php and apache. Can anyone confirm this? And can anyone tell me which versions of php and apache work with setlocale() ? My problem is that I

Re: cake_1.1.20.7692.zip console missing?

2008-12-23 Thread Gwoo
Cake 1.1 did not have a console :) Try 1.2 --~--~-~--~~~---~--~~ 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 email to

Re: Which is the best book about CakePHP?

2008-12-23 Thread Adriano Varoli Piazza
On 23 dic, 11:59, Paulo Marcelo wrote: > Apress.Beginning.CakePHP.From.Novice.to.Professional.Jun.2008 > > or > > CakePHP-Application-Development Dunno. Reading, right now, Apress Practical CakePHP Projects, by Kai Chan and John Omokore. Quite good. -- Saludos Adriano --~--~-~--~~--

Which is the best book about CakePHP?

2008-12-23 Thread Paulo Marcelo
Apress.Beginning.CakePHP.From.Novice.to.Professional.Jun.2008 or CakePHP-Application-Development --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@google

IIS7 Rewriting

2008-12-23 Thread blake
Has anyone been successful at using IIS7 with Microsoft's built in rewrite module? I can only get parts of it working at a time, but not at all of it. I'm not very good with rewriting, but it looks to me like the initial rewrite works (to take it from domain.com/ into domain.com/app/webroot/), but

Re: Suggest a better brilliant tutorial for implementing ACL with Auth in Cakephp

2008-12-23 Thread Chad Casselman
Thank you. I will try it again. I have walked through this and about 6 other tutorials on this same topic. I have yet to fully understand it or to get one to work they way I am expecting. Thank you for your help. Chad On Tue, Dec 23, 2008 at 9:56 AM, mark_story wrote: > > Both my tutorial

Re: Thoughts on this blog post?

2008-12-23 Thread Donkeybob
oh . . i know he does. not bothered here. just wanted opinions. On Dec 23, 10:08 am, "jitka (poLK)" wrote: > I think he just likes ZF over CakePHP, don't panic. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakeP

Re: Thoughts on this blog post?

2008-12-23 Thread jitka (poLK)
I think he just likes ZF over CakePHP, don't panic. --~--~-~--~~~---~--~~ 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: Suggest a better brilliant tutorial for implementing ACL with Auth in Cakephp

2008-12-23 Thread mark_story
Both my tutorial and the book tutorial are mostly the same, because I wrote both of them.. Chad you are either missing a node for the controller/action or the user. If you make your users from mysql prompt this will definately happen. If you jump ahead on the tutorial and make users before you

Re: Auth in CakePHP RC4

2008-12-23 Thread mark_story
$this->Auth->allow('users:index') This will never work as Auth doesn't accept this format. Also make sure that if you overloaded your beforeFilter() in your sub classes of AppController that parent::beforeFilter() is called. As far as I know Auth::allow() is working correctly. -Mark On Dec 22,

Thoughts on this blog post?

2008-12-23 Thread Donkeybob
I'd like to know what everybody else thinks of this post . . not just his friends. http://ajbrown.org/blog/2008/12/22/four-reasons-to-hate-cakephp/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To

relationships not deleting on saveAll with HABTM

2008-12-23 Thread tekomp
Hi, I have a form which is saving data to a join table using the method found here: http://teknoid.wordpress.com/2008/09/24/saving-extra-fields-in-the-join-table-for-habtm-models/ The data saves, but each time I submit the form, it doesn't delete the existing relationships in the join table bef

Where to SET SQL_BIG_SELECTS=1 in cakephp

2008-12-23 Thread eMarcus
Hi, As my database hoster seems to have set the limit for no of joins relativly low, I need to set the SQL system variable SQL_BIG_SELECTS to on. Otherwise, CakePHP does not work here (especially authentication/ACL check does not work). Where is the best place to set SQL systems variables in Cak

How to make forms in cakephp

2008-12-23 Thread mona
I m new to cake php i want to make form in cakephp and i make the following things class User extends AppModel { var $name = 'User'; var $validate = array( 'name'=>array('rule'=>'notEmpty'), 'email'=>array('rule'=>'email'), 'password'=>array(

Re: Suggest a better brilliant tutorial for implementing ACL with Auth in Cakephp

2008-12-23 Thread bookme
A nice tutorial for ACL is http://mark-story.com/posts/view/auth-and-acl-an-end-to-end-tutorial-pt-1 you must be see demo example attach with it On Dec 23, 6:43 pm, "Jon Bennett" wrote: > >  Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in > >  permissions check.  Node references:

Re: Suggest a better brilliant tutorial for implementing ACL with Auth in Cakephp

2008-12-23 Thread Jon Bennett
> Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in > permissions check. Node references: > Aro: Array > ( > [User] => Array > ( > [id] => 1 > [username] => ad...@mb.com > [group_id] => 1 > [created] => 2008-12-22 21:39:4

about form fields

2008-12-23 Thread vikas
hello all... I am new to cakephp n need a help.. I have project and task table. each project has more than one task. my projects table is: ** id int(11) auto_increment Primary key namevarchar(50) details text start_date Datet

Re: Suggestion on how to manage Users

2008-12-23 Thread Alok Mishra
person belong to user category On Tue, Dec 23, 2008 at 4:56 PM, Martin Westin wrote: > > I'd possibly go with: > > 4 - Three tables, three models. (User, Person, Company where User > hasOne (or belongsTo) Person or Company) > > Wether you'd want to go this way or not depends on how you see your >

Re: Suggestion on how to manage Users

2008-12-23 Thread Martin Westin
I'd possibly go with: 4 - Three tables, three models. (User, Person, Company where User hasOne (or belongsTo) Person or Company) Wether you'd want to go this way or not depends on how you see your app being built around this. It depends partially on things like how much is identical between them

Re: cannot save data into database

2008-12-23 Thread ridwan arifandi
is there anyone can help me out? --~--~-~--~~~---~--~~ 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 email to cake-php+

Re: Naming-conventions for plugins (new go at old topic)

2008-12-23 Thread Martin Westin
Thanks for the idea Mark, That's yet another way to manage naming in plugins. /Martin On Dec 19, 9:33 pm, mark_story wrote: > If you go with the $useDbConfig you can always have multiple database > connections connect to the same database and just implement different > prefixes.  This gets aro

Re: Very Slow Cakephp 1.2 + XAMP + WINXP

2008-12-23 Thread jamietssg
Interesting, I've tried the cakephp, + xampp on different winxp machine. Works fine!! I'm stumped. Must be something on the original machine. I'm going to reinstall xampp and cake php. Thanks for all the help! Jamie On Dec 23, 10:28 am, jamietssg wrote: > Thanks for all the feedback: > > Ver

Re: Suggest a better brilliant tutorial for implementing ACL with Auth in Cakephp

2008-12-23 Thread AD7six
On Dec 23, 4:34 am, Chad Casselman wrote: > When I try to login I get > > Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in > permissions check.  Node references: > Aro: Array > ( >     [User] => Array >         ( >             [id] => 1 >             [username] => ad...@mb.com

Re: Very Slow Cakephp 1.2 + XAMP + WINXP

2008-12-23 Thread sebo
Hi, this could be a problem with your firewall, as slawil mentioned. ZoneAlarm caused this problem in my case. I had to *uninstall it completely*, switching it off didn't work, so it took me some time to figure it out The Sygate Firewall seems to be a working solution, at least for Win XP. O

Re: rss reader

2008-12-23 Thread majna
Tnx Gwoo. This is more appropriate, but you can still use Set::reverse. (if input is an XML object, reverse will convert it to array) @Tonyz You can grab feed items using Set class too: $items = Set::extract($worpressPosts, 'Rss.Channel.Item'); pr($items); On Dec 22, 9:39 pm, Gwoo wrote: > ma

Re: Very Slow Cakephp 1.2 + XAMP + WINXP

2008-12-23 Thread jamietssg
Thanks for all the feedback: Versions: cakephp: 1.2.0.7945 XAMPP 1.7.0(includes apache 2.2.11) WINXP SP2 2 Gig of mem. Problem: I have 2 controllers, very simple. Outputs about 4 rows for a database. It takes very long for the page to display, or results in server timeout. Hi Webweave, that's s

Suggestion on how to manage Users

2008-12-23 Thread Ernesto
Hello the app i'm baking has a "users" table. A user can be a company or a person. the majority of fields/val. rules are the same for persons/companies Companies and persons have some different fields and validation rules. What's, in your opinion, the smartest way to manage this situation? 1 -

Re: $form->year not saving

2008-12-23 Thread danielwiener
Thank you, Mark. That worked. I put it in a beforeFilter function and it does the trick. It does, however seem like $form->year should work in a similar way. If anyone knows Thanks Daniel On Dec 22, 11:19 pm, markfm wrote: > Never used $form->year before.  Maybe somebody else can come up w

Re: Where to put business logic related classes?

2008-12-23 Thread majna
Business logic class is not 3rd party code. I think cake is missing "lib" directory like in ruby: "Classes, that hold data go into app/models. Classes that have nothing to do with holding data, go into the lib directory." We are using vendors directory in cake, becouse App::import can not load cl

Re: Where to put business logic related classes?

2008-12-23 Thread tekomp
Those should go in one of the 'vendors' directories. On Dec 22, 2:41 am, dmitri1 wrote: > I would like to know: Where to put business logic related classes, > which are not related with cake entities: (db, views, components, > controllers, etc)? > > The classes which model some kind of thing in