Hi,
I'm getting this error (below) while refreshing the site after models
are
cached with $persistModel = true. It happens for all the models that
are using behaviors (Cake 1.2).
Fatal error: Model::findAll() [a href='http://php.net/function.Model-
findAll'function.Model-findAll/a]: The script
.
On Sep 11, 10:07 pm, thequietlab [EMAIL PROTECTED] wrote:
Hi,
I'm getting this error (below) while refreshing the site after models
are
cached with $persistModel = true. It happens for all the models that
are using behaviors (Cake 1.2).
Fatal error: Model::findAll() [a href='http
can someone do me a favor and try it ? I'd like to know if this is a
cake bug or I'm doing something wrong.
Thanks,
Andrzej
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group,
Any ideas ?
Do you get the same error or is it only me ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this
Do you know that for sure? If you lets say load the Users model in
AppController, then it is more then likely that *all* of your other
models are loaded b/c they are somehow associated with User.
In AppController I only turn on othAuth and afaik it doesn't load any
models if authorization is
@majna
thanks for the links. I just tried $persistModel and, at first page
render I was extremely happy to see all the models cached but then
when I refreshed I got this :
Warning (2): Invalid argument supplied for foreach() [CORE\cake\libs
\object.php, line 239]
Object::__openPersistent() -
Hi,
I'm getting this error while refreshing the site after models are
cached. It happens for all behaviors. Any thoughts ?
Fatal error: Model::findAll() [a href='http://php.net/function.Model-
findAll'function.Model-findAll/a]: The script tried to execute a
method or access a property of an
Hi,
I was making some performance tests for my application and I'm pretty
scared to see how much CPU is Cake (1.2) using while put in a moderate
traffic.
I was doing :
ab -n 1000 -c 20
(I'm still not sure how does it translates to real traffic but used
it as a method to stress the server)
Test
thanks for your answers,
@Simon
ab -n 1000 -c 20
means that you have 20 concurrent users making 1000 requests. The
important part here is the concurrent bit.
ok, sorry I said it wrong - I know what does it mean but I'm not sure
what should be the values to simulate traffic at a range like
Hi,
yes, the article gave me a good point to start but I would like to
hear if any of you has some stories to tell about building in cakephp
for facebook.. any pitfalls, things to avoid, good practices ?
For now I have a working beta of my app and I'm just wondering how
should I sneak there
Hi,
I'm curious if there exists anything similar to rfacebook (http://
rfacebook.rubyforge.org/) for cakephp ?
I'm starting to build facebook port for my cake application, does
anyone have any experience with making this combination work ?
I found this little article :
LIKE BEHAVIORS ! Thanks to the one who submitted it to the
cakephp ;)
thequietlab
On May 2, 4:46 pm, Tane Piper [EMAIL PROTECTED]
wrote:
Ahh, ignore me.
It's because I had $actAs instead if $actsAs.
Do'h
On 5/2/07, Tane Piper [EMAIL PROTECTED] wrote:
This was exactly what I was looking
Hi,
I remember I've seen somewhere a tag behavior and now I can't find
it ..
Can anyone help ?
Thanks,
thequietlab
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send
On Apr 27, 1:47 pm, thequietlab [EMAIL PROTECTED] wrote:
ahh.. and if you want to sort it then, just :
$this-Vendor-bindModel(array('hasOne'=array('Model')));
$fields = array('Vendor.id','COUNT(Model.vendor_id)');
$conditions = 'GROUP BY Vendor.id';
$order = 'COUNT(Model.vendor_id) DESC
hey guys,
try this :
$this-Vendor-bindModel(array('hasOne'=array('Model')));
$fields = array('Vendor.id','COUNT(Model.vendor_id)');
$conditions = 'GROUP BY Vendor.id';
$this-Vendor-findAll( $conditions, $fields );
This should make a query like this :
SELECT `Vendor`.`id`,
27, 9:44 am, thequietlab [EMAIL PROTECTED] wrote:
hey guys,
try this :
$this-Vendor-bindModel(array('hasOne'=array('Model')));
$fields = array('Vendor.id','COUNT(Model.vendor_id)');
$conditions = 'GROUP BY Vendor.id';
$this-Vendor-findAll( $conditions, $fields );
This should make a query
as for my custom route, it's just
Router::connect ('/sitewatch/*', array('controller'='favorites'));
I didn;t have the time to fight with it so I just make it work without
routes.. and I'm not yet into unit testing ;)
On 18 Kwi, 18:54, gwoo [EMAIL PROTECTED] wrote:
oh, silly me forgot to
sorry, I had it like this :
Router::connect ('/sitewatch/:action/
*',array('controller'='favorites'));
What I posted was just part of my desperate tests ;)
On 18 Kwi, 22:08, jitka [EMAIL PROTECTED] wrote:
try
Router::connect ('/sitewatch/:action/*',
array('controller'='favorites'));
Anybody tried it ?
btw. I'm using the last 1.2 alpha EmailComponent
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this
Does anybody managed to send a proper email using sendAs='both' ?
I mean, the email get sent though it doesn't render in Outlook. When I
take a look at the content it looks fine, let me show you :
--2c465d8ee9966e81e9538e3c53d623d2
Content-Type: text/plain; charset=ISO-8859-15
Did you somehow find a solution ?
I have an exactly the same problem right now and I don't see any
solution..
On 14 Lut, 18:26, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I have setup where a user picks a game ...
User hasMany Picks
Picks belongsTo Game (and user)
I want to return ALL
I have the same problem. I need this additional condition to LEFT JOIN
but it seems like there's no way to do it cake'way... or ? anybody ?
On 28 Mar, 20:17, Christoph [EMAIL PROTECTED] wrote:
Hello christoph
The error you recieve is for typo.
Use uppercase model name as aliased in the
Has anybody tried it ?
I followed an example from :
http://www.thinkingphp.org/2006/05/04/using-cakephp-in-external-php-systems-cmss-weblogs-etc/
Nice approach...and everything would be great if not functions with
the same name in wordpress. I did a quick bad hack for
stripslashes_deep()
for those interested.. after replacing __() with wp__() wordpress
starts together with cakephp without any problems so there are two
functions with the same name.
I just started with it so problems may appear when loading requests..
I'll try it..
PROTECTED] En nombre
de thequietlab
Enviado el: Martes, 27 de Marzo de 2007 12:46 p.m.
Para: Cake PHP
Asunto: Re: Using cakephp with wordpress
for those interested.. after replacing __() with wp__() wordpress
starts together with cakephp without any problems so there are two
functions
maybe I confused something .. but I'm looking at 'cake/libs/
cache.php' (v.1.2) - this one definitely interacts with database
On 23 Mar, 00:27, Grant Cox [EMAIL PROTECTED] wrote:
Where are you looking? Thecache() function in cake/basics.php writes
to a file.
it ? ;)
btw. it was funny to see database query's inside Cache class ;)
On 23 Mar, 12:23, Larry E. Masters aka PhpNut [EMAIL PROTECTED]
wrote:
On 3/23/07, thequietlab [EMAIL PROTECTED] wrote:
Ignore that file, it is in never used by the core, and I doubt anyone is
using it anywhere else.
I plan
I just noticed that cake's Cache class extends Model and is working on
a database to save and retrieve cached data. It's kind of strange
since caching should be used to NOT hit a database to save this
additional overhead.
I saw different ways of caching data using files and shared memory but
it's
, thequietlab [EMAIL PROTECTED] wrote:
Hi!
my piece of code looks like this :
?php
echo $html-tableHeaders(array('col1','col2'));
echo $html-tableCells(array('row1a','row1b'));
echo $html-tableCells(array('row2a','row2b'));
?
instead of a table I get my values returned
Hi!
my piece of code looks like this :
?php
echo $html-tableHeaders(array('col1','col2'));
echo $html-tableCells(array('row1a','row1b'));
echo $html-tableCells(array('row2a','row2b'));
?
instead of a table I get my values returned as a string (no html
formatting) like this :
'col1 col2 row1a
@Felix : thanks, I'll try your snippet and I'll let you know
@Sergei : oh man..using mail() is not really convenient when you want
to send html + txt version, attachments etc. that's why soft like
phpmailer or swiftmailer came out.. making our life easier :) Now I
hope cakephp EmailComponent
hi everybody,
I'm kind of new to cakephp and from time to time I drown into some
problems :)
Now I stucked with sending emails, I tried the new EmailComponent from
version 1.2 which is described in a bakery but somehow had problems
with passing variables to my views, not even saying that my html
32 matches
Mail list logo