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
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
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
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'
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
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
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
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
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
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
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
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
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
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
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
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
--~--~---
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
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
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
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
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
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
>
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
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
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
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
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
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
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
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
--~--~-~--~~--
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
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
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
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
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
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
$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,
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
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
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
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(
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:
> 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
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
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
>
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
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+
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
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
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
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
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
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
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 -
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
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
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
57 matches
Mail list logo