It just so happens I was playing around with some code for exactly
this purpose. I stress that the code is proof-of-concept, and
definitely needs work and testing before being ready for prime time,
but by all means have a play:
http://bin.cakephp.org/view/1263511817
This was my usage:
class
Thanks for the suggestion :)
I was hoping there was a simpler way to do this, by simulating a data
source as that array I'm talking about, instead of actually connecting
to a table in a DB.
The elegant solution would of course be to make a file upload script
in admin and after uploading a new
On Dec 16, 6:02 am, mwcbrent midwestco...@gmail.com wrote:
I have a Cake 1.2 Build setup on my server with 3 virtual hosts
pointed to it.
1)www.domainA.com
2)www.domainB.com
3)www.domainC.com
All point to the same app and generate different content based in the
$_SERVER['SERVER_NAME']
somehow, its getting to 'test2' in the controller, however, I don't
see the data in the table! I actually had this working in cake1.1 but
updated to 1.2 changed htmlhelper to formhelper, and now it doesn't
work! any help appreciated.
Thanks.
database:
CREATE TABLE users
(
id int NOT NULL
Based on your current database design, the easiest thing would be to
have a separate inbox/outbox:
class Message extends AppModel {
var $belongsTo = array(
'Sender' = array('className' = 'User'),
'Receiver' = array('className' = 'User')
);
}
class User extends AppModel {
var
What SQL is being executed?
On Dec 16, 5:26 am, mike mwu...@gmail.com wrote:
somehow, its getting to 'test2' in the controller, however, I don't
see the data in the table! I actually had this working in cake1.1 but
updated to 1.2 changed htmlhelper to formhelper, and now it doesn't
work!
Try a recent svn checkout of the 1.2 branch. It should be fixed
there
I downloaded model.php and model.test.php from
https://trac.cakephp.org/changeset/7789
And uploaded them over my RC3 versions of the files.
Is it OK to do this files without updating any of the rest of the
files?
Ok, armed with AD7six's obvious advice to use logging to see what was
going on, I revisited this issue as I never fully dealt with it, just
moved onto other things instead.
I have added various log calls into my code and after creating 10
records as a test case and then deleting those 10 records
I'm not sure that answers my question on why they get reset?
Shouldn't sessions stay consistent, yet different, on each of the 3
domains?
On Dec 16, 4:18 am, AD7six andydawso...@gmail.com wrote:
On Dec 16, 6:02 am, mwcbrent midwestco...@gmail.com wrote:
I have a Cake 1.2 Build setup on my
Hi!
I am a student in a french engineer school (INSA of Lyon), I will
have my diploma next year. (equivalent to a B.S. in Computer Science).
I am looking for an internship or a job related to CakePHP.
It would be during 4 or 5 months, between May and September 2009.
I have already developped
Sebastian Göttschkes wrote:
Hi,
i got the following problem using cakePHP 1.2 RC3:
My Model 'Employee' has a attribute called 'birthday' (datatype:
DATE). In the add-view, I have the following code:
?= $form-input('birthday',array('type'='text'));?
If i left this field blank when adding
Hi GeneSys,
Have you indexed your foreign keys in your database properly? For our project
that was a real performance boost!
Do you use requestAction a lot? I removed it nearly everywhere by now and have
fat models instead.
Anja
-Ursprüngliche Nachricht-
Von:
I have developed a Cake application in a folder which holds a RC3
version of the Cake.
I would like to separate my application and cake to ease upgrading and
use the same Cake Files for multiple projects.
I currently have cake installed at C:\wamp\www\[projectname] i would
like to have cake in
Hi Grigri,
I'll do some testing on your code, thank you. :)
On Dec 16, 4:07 pm, grigri j...@hendersonwebdesign.com wrote:
It just so happens I was playing around with some code for exactly
this purpose. I stress that the code is proof-of-concept, and
definitely needs work and testing before
Thanks Alexandru,
I looked your links. First link is for plugin and second for sphinx
behaviour. Second link is useful for me but commenting inside in this
not in english so it's difficult to implement for me.
Can you provide me some other links?
Thanks
On Dec 16, 5:25 pm, Alexandru Ciobanu
put C:\wamp\cake in you include path either in you php.ini or your
httpd-vhosts.conf
eg in php.ini
include_path =
.;d:\php-5.2.6\includes;d:\php-5.2.6\PEAR;C:\wamp\cake;C:\wamp\simpletest
; windows include path
or in vhosts
php_value include_path
Hi Sebastian,
You have to format the date for your view. If this is really woth the effort. I
had a similar problem in a non cake Project.
I played around with
$dateold = date(d.m.Y,strtotime($datefoo));
And
$datefoo= date(Y-m-d, strtotime(-$n day));
Hope that helps. Be careful what format
Hello,
I have problem with Security Component. As soon as I add Security to the
component array, I get the blank page back when trying to add, delete or
update. I’m doing this in my AppController. I’m using a newer version of
Cake (nightly 1.2). please advise me how can I figure out this
Dear Anja,
Thank you for your reply. I checked my database again and added a few
column indexes. Unfortunately that didn't have any impact on the
problem. I suppose the problem is not database related (all queries
summed up just take max. about 100ms on the webhost, and not more than
40ms on my
Hi Pyrite,
When you have an additional index on your foreign keys e.g. foo_id in your
table kikis then your connecting datasets are found much faster.
In Mysql you do it like this:
ALTER TABLE `kikis` ADD INDEX (`foo_id`)
Hope that helps!
Anja
-Ursprüngliche Nachricht-
Von:
I am in the process of editing my views to get a similar effect. If
you can wait a couple hours, I'll be back with an explanation.
But, to whet your appetite: controlling for '-00-00' is not that
different from controlling for null, seems to me. '-00-00' is the
'null value' for a date
How should I add multiple action-specific helpers? Originally I had:
$this-helpers[] = 'Textile';
When I wanted to include the Javascript helper for this action, I
couldn't find the right syntax (if there is a right syntax) to do
so. I want to retain the default helpers, too. I've made it
The best place to look for advice would be the core code itself. In
libs/controller/controller.php, at the end of the paginate() function,
it ensures that the paginator helper will be loaded with this code:
if (!in_array('Paginator', $this-helpers) !array_key_exists
('Paginator',
On Tue, Dec 16, 2008 at 8:34 AM, Liebermann, Anja Carolin
anja.lieberm...@alltours.de wrote:
Another strange thing: my user has no rights to logout.
Question: What are the proper permissions for the user controller? Do I have
to set the permissions for login and logout?
I have heard here
I'm looking for a high quality Cake PHP developer for a three-month,
full-time commitment which could very likely be extended to a
permanent position.
We are a two year-old mobile marketing/technology company located in
the Fort Lauderdale area (close to Miami). If you're interested,
please
bookme wrote:
Hi,
I want to implement Sphinx Search with my CakePHP website.
Some days back I saw one article on cake bakery
http://bakery.cakephp.org/articles/view/sphinx-behavior but now
it's not displaying and giving message Unable to provide the
article you requested because it
For InnoDB tables, adding a foreign key automatically creates an
index, unless you explicitly tell it to use an existing index.
It's easy to end up having duplicate indexes because of this gotcha.
Sincerely yours,
Olexandr Melnyk
http://omelnyk.net/
On Tue, Dec 16, 2008 at 6:18 PM, Liebermann,
Hi,
I'm trying to use jared's Wizard component with admin routing but can't
seem to figure it out.
http://bakery.cakephp.org/articles/view/wizard-component-1-2-1
Anyone done this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
How do you index foreign keys, what does that mean? I am using
Postgresql. An example with MySQL will help too.
On Dec 16, 8:36 am, Liebermann, Anja Carolin
anja.lieberm...@alltours.de wrote:
Hi GeneSys,
Have you indexed your foreign keys in your database properly? For our project
that was
So I've got 4 models set up: owner.php, property.php, street.php, and
user.php; as well as their controllers all set up. My models are as
per below:
class Owner extends AppModel
{
var $name = 'Owner';
var $belongsTo = array('User');
var $hasOne = array('Property');
}
class Property
I assume it's fine since the site is working other then Bake.
It's pretty much the default that Bake creates. Is there something in
particular you're looking for? I'm too lazy to fire up the VPN at the
moment to copy/paste.
--Lucki
On Dec 15, 6:51 pm, Rob webwe...@gmail.com wrote:
What does
Snoopaki wrote:
I found the error, it was on my behalf (as usual).
I had a beforeSave() function in my model that replaced the $this-
model-data['file'] value with the tmp_name value of the form. I was
not aware that saveField() used $this-model-data['FieldName'] to
store its
Hi,
I want to implement Sphinx Search with my CakePHP website.
Some days back I saw one article on cake bakery
http://bakery.cakephp.org/articles/view/sphinx-behavior but now
it's not displaying and giving message Unable to provide the
article you requested because it is currently
Thanks. It was caused by the version of PHP that was installed (4.1),
I missed that. Moved to 5.0 and worked
On Dec 14, 4:29 pm, Brett Wilton bdwil...@gmail.com wrote:
I assume this is on the grid and your using the latest cakephp ?
I'm using the grid and aren't having any problems with
you can edit webroot/index.php
and put somewhere up before check:
define('CAKE_CORE_INCLUDE_PATH', 'C:\wamp\cake');
or 'C:\wamp\'
On Dec 16, 4:10 pm, Penfold ianwtas...@gmail.com wrote:
I have developed a Cake application in a folder which holds a RC3
version of the Cake.
I would like to
I'm not sure I understand.
Are you attempting to save duplicate data to both A and B. Or do you
wish to save unique data to A and B but from the same form.
On Dec 15, 3:20 pm, volka volker.b...@googlemail.com wrote:
Hi there,
I hope someone is going to share his best practice(s) with me
Problem with scanning your filesystem, is that if you are doing it on
a high traffic site you will cause a lot of disk IO which can lead to
load issues. Caching to the database will prevent thrashing the disk.
-Mark
On Dec 16, 4:11 am, r4zv4n razvanbra...@gmail.com wrote:
Thanks for the
Additional infos after debugging with XDebug ...
So I investigated my application by use of XDebug and WinCacheGrind.
What made me really confusing is that bootstrap.php often takes ~350ms
to process. (comparison to another cake project of mine: 80ms).
In detail it shows me that the App::import
Another strange thing: my user has no rights to logout.
Question: What are the proper permissions for the user controller? Do I have to
set the permissions for login and logout?
I have heard here be some, who said never give permission to login, others
wrote, yes, do so.
How are your
I'm usually not the guy who bumbs postings but this problem still
exists... So my question is: is this behavior by design or am I doing
something wrong?
On 12 dec, 07:53, Marcelius mraaijmak...@gmail.com wrote:
Thanks for the anwser but that didn't work here.
The be more clear: If I do not
Hi,
i got the following problem using cakePHP 1.2 RC3:
My Model 'Employee' has a attribute called 'birthday' (datatype:
DATE). In the add-view, I have the following code:
?= $form-input('birthday',array('type'='text'));?
If i left this field blank when adding an employee, this employee has
the
Hey Folks!
So I'm using CakePHP for a couple of months now. The company I am
working at asked me to write a new web portal for them, so I thought,
Well, Cake could make it!
After spending some hours the website was (nearly) finished and so I
put it on the webspace the old webpage was at.
I
Hi everybody,
I made another test: I set permission 'allow' for all CRUD (that means _create,
_read, _update and _delete are all set to -1 in the dataset) my user has access
to the controller and action. As soon as delete is -1 (denied) my user isn't
allowed to use an action which needs only
There's no problem in my connection..
i have two directory in my htdocs for two version cakephp (rc1 rc
3). there're cakerc1 and cakerc3
in cakerc1, i've developed CRUD for oracle XE, and I've not found
problem yet.
But, with cakephp rc3, I've got error connection
On Dec 15, 7:17 pm, Rob
Hi
I haven't tested it,but I thought if you don't define
$this-Auth-loginRedirect
You get rediected to the link you came from. But maybe that doesn't work with
external links.
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im
Bernard,
Could it be something not related to cake? I got the same sort of problems when
putting the new CakePHP Application in a subdirectory of the original site. The
original site was using a .htaccess file that also processed the subdirectory
the new cake app was is. That slowed things way
hey there, we have a problem with a facebook application that we are
building. when using the built-in paginator with cakephp 1.2 facebook
complains about having : in the url.
is there as to change the link to not build it with page:3, same goes
for sorting as well?
thanks.
I should reiterate that its only important for me to maintain a
consistent session independently on the 3 domains. Not to share the
session, I understand that to be a security issue and not trying to
achieve that.
On Dec 16, 9:01 am, mwcbrent midwestco...@gmail.com wrote:
I'm not sure that
I need to load some additional data into the session object after a
user successfully logs in via the Auth component. I have a login
function, that after some remember me cookie logic then redirects
to the Auth redirect...
$this-redirect($this-Auth-redirect());
Where do I then catch that
Usually this happens when security is set to high, but worth a check
in your case:
Make sure any static items (images, css, js) that are referenced in
the html actually exist. Otherwise Cake will handle the request and
could end up making a new session. This would explain why you saw
three db
I also suggest considering using svn:externals. I created a new
repository for just the cake dir, and imprted the nightly into it.
Every time I do an update, it checks the external for any updates as
well,
Ed
On Tue, Dec 16, 2008 at 9:46 AM, Sam Sherlock sam.sherl...@gmail.com wrote:
put
bookme wrote:
Thanks Alexandru,
I looked your links. First link is for plugin and second for sphinx
behaviour. Second link is useful for me but commenting inside in this
not in english so it's difficult to implement for me.
Can you provide me some other links?
google translate:
Hey All,
Wanted to let everyone know that I've started posting bi-weekly
updates for all the happenings in the CakePHP world at
http://www.pseudocoder.com.
First edition is up now:
http://www.pseudocoder.com/archives/2008/12/15/cakephp-digest-volume-3/
-Matt
http://www.pseudocoder.com
I am trying to implement some sort of fulltext search into my
application. I began looking into fulltext search but quickly ran into
a problem. All of my DB tables are InnoDB and therefore I cannot use
fulltext indexes. The reason for using InnoDB is that I use the
saveAll method quite often. Is
hi Markus,
data validation automatically ignores a field if is empty and the
validation criteria is set required to false. Just use your form to
check it working
On Dec 16, 10:15 am, Markus markus.hardiya...@gmail.com wrote:
Hi Grigri,
I'll do some testing on your code, thank you. :)
On
So I got my first mac, and I installed MAMP on it and checked to make
sure mod_rewrite is enabled, just as I used to on my windows machines.
When I load the cake page everything loads properly, except for the
graphics and css styles, which indicates a problem with mod_rewrite,
but I cannot figure
I had this same problem when setting up cakePHP on my machine. You
need to alter the httpd.conf which is located at:
/private/etc/apache2/httpd.conf
Change the line that says AllowOverride None to AllowOverride All
Then restart your web server and you should be good to go.
On Dec 16, 4:43 pm,
I checked my httpd.conf and all the necessary AllowOverride lines were
already set to all, any other solutions?
On Dec 16, 4:22 pm, Kyle Decot kdec...@gmail.com wrote:
I had this same problem when setting up cakePHP on my machine. You
need to alter the httpd.conf which is located at:
I'm having the same issue, and I have yet to find a solution. The
Cake documentation is wrong and/or the implementation is incorrect.
On Oct 23, 1:58 am, martin.westin...@gmail.com
martin.westin...@gmail.com wrote:
I compiled a list of the variations I have encountered in different
I have been struggling with this for days, and I can't find a
solution...
CakePhp is working ok. I get the nice welcome screen with all the
fancy colors. The connection to the database is ok, and the rest of
the set up routines are complete.
I started following the Golding's example of the
I tried this and when I UNcommented the rewrite line, I received Access
Forbidden from the localhost that was working fine before. If I comment the
line back, it works fine.
Ideas?
Thanks!
WallyJ
imran k wrote:
Thanks guys... it worked. I did exactly what both of you said. thanks
a
Are the tmp folders world writable? is debug off? Is it on a taxed
server? Is the slowdown in the queries?
-Mark
On Dec 16, 9:09 am, GeneSys bernhard.bo...@gmail.com wrote:
Hey Folks!
So I'm using CakePHP for a couple of months now. The company I am
working at asked me to write a new web
Great Matt.
2008/12/17 Matt Curry m...@mcurry.net:
Hey All,
Wanted to let everyone know that I've started posting bi-weekly
updates for all the happenings in the CakePHP world at
http://www.pseudocoder.com.
First edition is up now:
I'm trying to play around with javascript and facebook. I decided to
take a shot at just added another record with this article.
http://bakery.cakephp.org/articles/view/how-to-create-multirecord-forms
I get the following error:
URLExceptionInvalid scheme for url (javascript:new Ajax.Updater
I also forgot to mention that you must uncomment the line that looks
like
#LoadModule rewrite_module libexec/apache2/mod_rewrite.so
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this
Yes, find conditions not a big problem, but how to join table with
hasMany association (AdImage, and AdvertComfort)? After that, i coud
set conditions
On Dec 15, 9:46 pm, Rob webwe...@gmail.com wrote:
You shouldn't have any trouble doing this if you build your models
correctly and choose the
66 matches
Mail list logo