Alessio
Thank you for the tip of adding a var in the FPDF constructor, at
least I am getting some pdfs from cakephp 1.2 and fpdf. My active
application is still running on version 1.1, I think its still worth
trying things out on 1.2 when you have time. I have the ajax parts
working well in both v
On Wed, Jul 2, 2008 at 12:03 AM, Jonathan Snook <[EMAIL PROTECTED]>
wrote:
>
> I still wish that the built-in
> page caching allowed for keying off more unique properties besides the
> URL such as cookies or session data but I'll live...
It can - you, however, have to work for it :)
Tarique
On Tue, Jul 1, 2008 at 9:56 PM, RichardAtHome <[EMAIL PROTECTED]>
wrote:
>
> I'm about to start looking into using APC cache or some other op-code
> caching too, does anyone have any experience with using an op-code
> cache with Cake? Any gotchas I should be aware of?
Be careful with APC when d
You're likely encountering hyper sensitive spam filters.
Make sure the server you're sending email from has the same IP as the
domain you're putting in the "from" address of the email. If they
don't match, a lot of email providers will assume the email is
fraudulent and just not deliver it period
CakePHP accepts external classes through the vendors directory
You can then include the classes with App::import('vendor', 'name')
On Jun 30, 7:32 pm, Garf <[EMAIL PROTECTED]> wrote:
> Hi I was wondering if I could integrate an external app into cake php.
> Something like what is done in this ur
You'd likely have better luck setting PHP up under IIS. PHP is now
officially supported under IIS via FastCGI. Check out http://iis.net/php
for details.
On Jul 1, 12:54 am, Eric Martin <[EMAIL PROTECTED]> wrote:
> I ran into an issue tonight that caused Apache 2.2 to crash on Vista
> using RC2. B
All I can say is that trying to mix CakePHP and Joomla is a very bad
idea. Joomla 1.5 has a half-decent MVC framework under it already that
makes it easy to extend via Joomla's module, component and plugin
architecture.
On Jul 1, 2:36 am, kuchel <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am usin
On Wed, Jul 2, 2008 at 12:11 AM, Jonathan Snook <[EMAIL PROTECTED]>
wrote:
>
> They should especially be examples that could
> almost be copy-pasted into a project.
A big yes to this point - there has to be a near copy-paste example and then
it should elaborate on various modes
Tarique
--
==
The problem with the ACL documentation is that it isn't explicity said
that there are different and distinct modes to run the Auth component
in when paired with ACL. If you read all the tutorials they all go
over different modes and you eventually figure out that each technique
is different... and
Weird - I'm using CakePHP along with ExtJS and haven't had any
problems with sessions. I had to turn my session security level down
in order to prevent the frequent timeouts, but beyond that, everything
was cool.
Try enabling the RequestHandler component. It has some automagic built-
in that reco
I am attempting to find a image cropper but cannot find something like
the following:
you have a predefined square (500x300). Underneath of this square is
the image that you are cropping, you can drag it(the photo, not the
box) around and scale it while only seeing what's inside the box. Kind
of
Have a look at Object::cakeError(), which, in turn, invokes Error.php
You can use it in your controller something like this:
$opts = array(
'name' => 'Not found',
'code' => 404,
'message' => 'Your message here',
'base' => $this->base
);
$this->cakeError('error', a
It doesn't look like it. I referenced HtmlHelper and FormHelper in
both my app_controller and its inheriting controller. Once I removed
these references, nothing seemed to change with regards to the 9MB
leap from __construct to beforeFilter. I'll go through and see if
something similar is happe
Yes, that's correct. It now uses a period instead of a slash.
On Tue, Jul 1, 2008 at 1:50 PM, Bryan D <[EMAIL PROTECTED]> wrote:
>
> Thanks guys, that works perfectly. I take it the Player.id form is
> now preferred over Player/id ? I ported my app from Cake 1.1 to 1.2,
> and probably missed a f
By any chance, does your AppController reference a Helper that doesn't
exist? (https://trac.cakephp.org/ticket/5010) That would explain it.
On Tue, Jul 1, 2008 at 4:37 PM, Matt Huggins <[EMAIL PROTECTED]> wrote:
>
> I started getting "Fatal error: Allowed memory size of..." errors
> while devel
Maybe something like this will do :
$aro = new Aro();
$aro->create();
$aro->save(array('parent_id' => null, 'alias' => 'Employees'));
hth
On Jul 1, 10:28 pm, Stinkbug <[EMAIL PROTECTED]> wrote:
> I have a brand new install of Cake 1.2. I only have one controller
I started getting "Fatal error: Allowed memory size of..." errors
while developing my CakePHP app. In order to find out what's going on
and where all the memory is going, I started placing some
memory_get_usage() calls in my code. It seems like somewhere between
my controller's construct method
$var[0]['id'] is the correct syntax for the array you posted, are you
sure it is really the content of $var? Not rather $var['Post'][0]
['id']?
Btw, you shouldn't do the findByTitle twice, this is better:
$var = $this->Post->findByTitle($this->data['Post']['title']);
if (!empty($var))
{
Thanks guys, that works perfectly. I take it the Player.id form is
now preferred over Player/id ? I ported my app from Cake 1.1 to 1.2,
and probably missed a few things.
On Jun 30, 4:41 am, "Jonathan Snook" <[EMAIL PROTECTED]> wrote:
> On Sun, Jun 29, 2008 at 6:19 AM, Mr. Matt <[EMAIL PROTECTED]
Hi,
Anybody have any ideas on how to go about this?
- Nirav
On Jul 1, 7:30 am, Nirav <[EMAIL PROTECTED]> wrote:
> Hi Christian,
>
> On Jun 30, 5:34 pm, "Christian Winther" <[EMAIL PROTECTED]> wrote:
>
> > save should return array in 1.2 - are you on 1.1?
>
> I'm using 1.1.
>
> - Nirav
--~--~-
Hi,
I am a newbie so please sorry if the question seems basic but I cannot
find this solution:
I have created a Posts table with the following attributs:
id,
title,
bodytext,
etc.
I now want to test the findby function so I create a
function called "findbytitle" in my posts_controller.p
CakeSession, the parent class of the SessionComponent, allows setting
the session ID, so that it should be possible to pass the session ID
in the ajax call and then use it to set it manually to the provided
ID.
There might be a more elegant solution though.
On Jul 1, 9:26 am, killerboy <[EMAIL P
Hello All,
I'm stuck and need a jump start here. I have a form that collections
User model and Associate model data. User like email, password and
Associate like street, city, state, etc... data. I have a HABTM
relationship between User and Associate. My question is how to make
the linkage w
~/app/controllers/components/s_s_l.php:
_config('objController', $controller);
$this->_config('controller',
$controller->params['controller']);
$this->_config('action',
$controller->params['action']);
$this->_config('host',
Thanks for the straws. Better than nothing.
Remember, things were fine for the first few months of coding. I
changed nothing in Vista.
Not sure if this is related: when I disable all models by setting
$uses = null; in every controller, then page load times go down to 1-2
seconds. Is it possib
I have a brand new install of Cake 1.2. I only have one controller
and I've installed my ACL tables. Here is the code in my controller.
create(0, null, 'Employees');
$aro->create(0, null, 'Admin');
$aro->create(0, null, 'ManagerButtons');
}
}
?>
I'm jus
I think the best thing to do in the cookbook is improve a better way to
create and update translations.
Nowadays, when a English version is modified the translated version show up
a information of that.
But, does not exist a report where shows this information. Only in the
article, I think.
So, cr
Hi,
I am using a custom query on 1 of my models (an update query), so I
use $this->Model->query('update query here');
Does anyone know how to get a return value back, something like true
or false, I am asking because I want to set up commit and rollback
transactions on some queries, since I am d
Create an Activity model that stores that info. Just store a pointer
to the resource in the activities table so that you can link to it.
On Tue, Jul 1, 2008 at 3:47 PM, Kyle Decot <[EMAIL PROTECTED]> wrote:
>
> I want to create an activity feed for my admin panel so I can see
> recently submitted
I want to create an activity feed for my admin panel so I can see
recently submitted photos, comments, etc. I would like to do this in
much the same way as facebook does. Has anyone done something similar
to this that would be willing to share their experiences? Thank you as
always.
--~--~
I agree that there are some good things in the acl/ auth section, but
it is the area that so many people crash in, sometimes I think there
almost needs to be a wrapper for them that makes it easier to get
started with, but then the inevitable complaints about constricting
the application
I t
Hey folks,
For those who've contributed to the documentation and for those who
might do so in the future, there's a style guide that has been put
together to help with consistency and readability. You can find it at:
http://book.cakephp.org/view/482/contributing-to-the-cookbook
The latest CSS u
I think I'd say somewhere in the middle. I think much of the Lord of
the Rings intro is okay but maybe a little verbose and not directly
applicable to anybody's project. Using an example like a standard
User/Group permission system would be easier to understand.
I like the way the section is ulti
Hey guys,
I'm using my own version of a pages controller with routes to the
display() method, that's basically handling the layout/view rendering
via switch statement:
/pages/display/terms
//
switch ( func_get_arg(0) ) {
case 'terms':
$this->layout = 'terms';
$this->pageTitl
Even built-in file caching can be pretty quick depending on how much
uniqueness there is between page refreshes. The page cache read occurs
very early on in the Cake process. (I still wish that the built-in
page caching allowed for keying off more unique properties besides the
URL such as cookies
1. Rewrite ACL (parts of Auth) documentation from scratch.
2. Keep what's there and update it.
-- John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@
On Tue, Jul 1, 2008 at 11:59 AM, geste <[EMAIL PROTECTED]> wrote:
>
> For several new CakePHP applications (I'll call them app1, app2,
> app3), I will need to implement a number of drop-down menus. These
> would be things like building codes that are already stored in a
> separate database (I'll
If cake realizes that he user agent is different, it'll nix the
session due to security concerns.
There are some settings in core.php that turn that checking off - you
might play with them, realizing the security implications.
-- John
On Jul 1, 2008, at 10:26 AM, killerboy wrote:
>
> Hi,
>
Hi,
I am using CakePHP seesion together with the ExtJs libary. I have some
strange issues with my sessions, that are just lost if I try to do a
Ajax call or any other call from ExtJs.
I am checking via sessions if anybody is logged in. But this is not
possible because the data stored in the sess
Thanks for the reply Tarique.
I'm about to start looking into using APC cache or some other op-code
caching too, does anyone have any experience with using an op-code
cache with Cake? Any gotchas I should be aware of?
On Jun 30, 10:49 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On Mon, J
You'd be better off adding a new field to the User data array with the
concatenated names in afterFind(). Or, use the Autofield behavior:
http://cakeexplorer.wordpress.com/category/model/
Sorry for not addressing your original query.
On Mon, Jun 30, 2008 at 5:30 PM, Mike <[EMAIL PROTECTED]> wrot
On Tue, Jul 1, 2008 at 5:33 PM, John David Anderson
<[EMAIL PROTECTED]> wrote:
>
> Two things to note:
and one more question:
the pages_controller is overridden for the test. Could this be a problem ?
--~--~-~--~~~---~--~~
You received this message because you are
Also, he probably has no idea how to set up a Cake install. He (and
you) would do well to refer to the benchmarks produced by Paul M.
Jones.
On Jul 1, 11:12 am, DragonI <[EMAIL PROTECTED]> wrote:
> Ekerete of AVNet Labs has performed "PHP framework comparison
> benchmarks"http://www.avnetlabs.co
http://c7y.phparch.com/c/entry/1/art,cakephp-rest
jimbo wrote:
> I am trying to implement a RESTful web service in Cake 1.2 (RC2) that
> could receive XML content through HTTP POST and basically add that
> content as a new row to a db (through a basic simple model) or
> updating an existing one (
For several new CakePHP applications (I'll call them app1, app2,
app3), I will need to implement a number of drop-down menus. These
would be things like building codes that are already stored in a
separate database (I'll call that the "lookup" database).
So, what I would like to do is have app1,
Hi,
I am trying to implement a RESTful web service in Cake 1.2 (RC2) that
could receive XML content through HTTP POST and basically add that
content as a new row to a db (through a basic simple model) or
updating an existing one (HTTP PUT).
I have managed to read data from db and pushing that ou
On 1 jul, 15:21, DaveMahon <[EMAIL PROTECTED]> wrote:
> If it was a relatively small set of alternatives that were clearly
> designated from the beginning and were unlikely to change, I wouldn't
> model it at all and I would use business logic. If there are a lot of
> options, this sounds more lik
Well, to answer my own question, I plodded through Authake and managed
to tweak it so that it does not use local Authake password but uses
PubCookie-provided REMOTE_USER authentication with Authake providing
just authorization (groups and rules).
I appended a few more details to the Authake page
Two things to note:
1. He didn't use caching in any of the tests. This seems pretty silly,
since almost *every* production website should be doing that.
Essentially, if you're not planning on doing what you should be doing,
you should be interested in these numbers.
2. His admitted CI pref
Did you read what I wrote?
On 1 Jul, 16:22, "Renan Gonçalves" <[EMAIL PROTECTED]> wrote:
> Did you read the manual?
> Anyway, take a look again,
> please:http://manual.cakephp.org/view/54/page-related-attributes-layout
>
> The $pageTitle controller attribute allows you to set the title of the
>
Ekerete of AVNet Labs has performed "PHP framework comparison
benchmarks" http://www.avnetlabs.com/php/php-framework-comparison-benchmarks.
Cake performance - request per second aren't pretty. CakePHP
1.2.0.7125 rc1 was used! debug set to 0 - file caching is used.
Anyway, read for yourself
--~--
Did you read the manual?
Anyway, take a look again, please:
http://manual.cakephp.org/view/54/page-related-attributes-layout
The $pageTitle controller attribute allows you to set the title of the
> rendered page. In order for this to work properly, your layout needs to
> include the *$title_for_la
Hello DaveMahon,
How am I supposed to do this?
If I place the following function in my model the same old story
happens:
function beforeValidate() {
unset($this->data['User']['password']);
return true;
}
On Jun 30, 4:59 pm, DaveMahon <[EMAIL PROTECTED]> wrote:
> You'll probably
Did you read the manual?
Anyway, take a look again, please:
http://manual.cakephp.org/view/54/page-related-attributes-layout
The $pageTitle controller attribute allows you to set the title of the
> rendered page. In order for this to work properly, your layout needs to
> include the *$title_for_la
Yeah, what about security on your machine? I haven't tried Vista yet
(but I've been told it's a PITA), could it be that Windoze is running
security checks every time apache/php tries to read a file?
On Jul 1, 1:51 pm, "Jonathan Snook" <[EMAIL PROTECTED]> wrote:
> You can submit it but I don't thi
Nevermind, that was the problem. I just didn't upload the file before
testing again. Thanks for the help!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@
If it was a relatively small set of alternatives that were clearly
designated from the beginning and were unlikely to change, I wouldn't
model it at all and I would use business logic. If there are a lot of
options, this sounds more like a binary tree and you may want to
"borrow" from the tree/ACL
Well I just looked and it wasn't extending anything, so I put extends
Object and it's still redirecting me. Any other suggestions?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group
Ahh...thanks floob. I didn't think to search on trac (duh), but will
next time. At least now there is mention of it here in the groups (I
couldn't find anything previously).
On Jul 1, 12:53 am, floob <[EMAIL PROTECTED]> wrote:
> Hi Eric,
>
> I believe I had the same issue a few days ago. There's
No, it's just a tool to auto fill / auto login based on a cookie. A
little like the browser 'remember me' function. If you're just
starting out, I'd leave the cookie bit out.
Don't be distracted by the sessions being created.
Check your users table to see that the password is being encrypted.
Al
You can submit it but I don't think they'll be much help. I feel like
this is environment specific.
Between lines 1 and 2 are mostly file includes and function/class
declarations. There's very little that would would take 9 secs to
load. However, these delays could be related to delayed file read
Hi Christian,
On Jun 30, 5:34 pm, "Christian Winther" <[EMAIL PROTECTED]> wrote:
> save should return array in 1.2 - are you on 1.1?
I'm using 1.1.
- Nirav
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP
Can you be a little more explicit? perhaps an example.
Leo
On 1 Jul, 11:07, ghostjackyo <[EMAIL PROTECTED]> wrote:
> Excuse me !
> I want to write some code to use double tag for PHP .
> But i don't know how to write the second tag .
> I just only write the one tag.
--~--~-~--~~-
$this->pageTitle = "my title";
$this->layout = 'pageDefault';
Works fine and $title_for_layout is set. The same if I miss out the
second line as it then defaults to ... er.. default.
If, however, I say $this->layout = ''; then the page title is not
visible in the view. Okay, I'll just do
Hello!
First to say: I use cakephp for my first larger project and in many
situations it helped me to save a lot of time. Thanks to the team and
everyone helping here!
But as usual, there are some things that are blocking progress, and I
hope you can help me.
I set up my application on a webho
Hello!
First let me thank you for the great framework and the people helping!
I have a problem and do not really know the reason so i'll give as
much information as possible.
I have an app running on a server whos apache conf i cannot access.
The hole cake stuff lies in an subfolder named 'verwalt
Hey it worked!
Thanks.
Not sure where in the cookbook explains this tho, cos I've been
pouring over the models page about association for the whole day.
L.
On Jul 1, 5:42 pm, duRqoo <[EMAIL PROTECTED]> wrote:
> Hi,
>
> in your case try setting $this->data['Group']['Group'] = (array of
> ids),
Hi
I was wondering if someone could help me with saving the data of a
join table, when it has extra fields in cake 1.2?
I have read Mariano Iglesias' helpful blog post relating to this,
where he explains the findings of the 'with' specified model, which
was a great help. However, I am still unab
Hi,
in your case try setting $this->data['Group']['Group'] = (array of
ids), before save.
That should work, there is an explanation about how to save related
model data (HABTM) in the cake cookbook. (http://book.cakephp.org)
cheers
On 1. Júl, 11:15 h., lysd <[EMAIL PROTECTED]> wrote:
> Hi
>
> T
Hi
This has probably been asked before, but I couldn't find any docs or
posting on how to save multiple associations in a HABTM setup.
I have Groups HABTM Users.
When I create a new user, I want to be able to associate multiple
groups with this new user, but I can't seem to get it.
The associa
Excuse me !
I want to write some code to use double tag for PHP .
But i don't know how to write the second tag .
I just only write the one tag.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post
I have similar problems...I think it is good to submit this real
problem to the team...because this is not only your problem...
On 1 Lug, 00:27, amfriedman <[EMAIL PROTECTED]> wrote:
> I've been doing some heavy debugging using xdebug and cachegrinder.
>
> I found a list of calls in the core that
Hi Daniel,
> I managed to get my component working but would like to call cake's
> native 'redirect' instead of "header('location...", if it is
> possible... Does anyone know how this can be done?
Store a reference of the controller (which is automatically passed as
parameter to the initialize()
in the 1.2 cakephp pass to the contructor an array...I dont know the
reasons...
I solved so...
Add a var before the other arguments...
function FPDF($w=null, $orientation='P',$unit='mm',$format='A4')
{
}
So you need to change the code in fpdf.php, the core of fpdf..and in
your helper..
I don't
Wow, thank you so much,
That worked after all of 20sec of setup :)
/Martin
On Jun 30, 5:23 pm, grigri <[EMAIL PROTECTED]> wrote:
> Easiest way by far is to extend the datasource.
>
> Here's the code you need:
>
> http://i-love-cake.pastebin.com/f78d0639a
>
> (you only need the 1st function - the
I asked about this yesterday and got some helpful answers
http://groups.google.com/group/cake-php/browse_thread/thread/2fa2cd69422dfcf/81e7a5ea50266a15
On Jun 30, 8:59 pm, kknd <[EMAIL PROTECTED]> wrote:
> how to use sql sum, avg, count function in Model Class Reference?
>
> $this->Payment->find
Hi Eric,
I believe I had the same issue a few days ago. There's already a bug
report filed for it (https://trac.cakephp.org/ticket/5010). I'm not
familiar with Vista's server setup, but if you install a php debugger,
I'd bet you'll find the application stuck in an infinite loop.
On Mon, Jun 30
Hi Chris,
I suppose you are dealing about multirecord form ? If yes, yes it's
quite simple.
Here are the different steps :
First, in a view, create a multi record display, with a loop on your
data and display input items for each record, like this :
echo $form->input('Mytable.'.$mytable['Myt
Check if your phpThumb component extends Object or Component
it should extend Object no Component
that might be it (I had a similar issue, I think this was the cause)
On Jun 30, 8:28 pm, Kyle Decot <[EMAIL PROTECTED]> wrote:
> I am using the phpThumb Component on my photos controller. whenever
*laf* This is totally awesome - I never would have thought of this,
but it looks like it does work.
Looking at the SQL, it looks like the initial query is unchanged:
SELECT `Term`.`id`, `Term`.`year`, `Term`.`quartername` FROM `terms`
AS `Term` WHERE 1 = 1 ORDER BY `year` DESC
But the next quer
Hi all,
I am using joomla 1.5 + cakephp 1.1
i installed jake component for joomla and followed the documentation
from jake home page
http://dev.sypad.com/projects/jake/documentation/
1 when a cakephp file is opened from joomla the following warning is
occurring on the top of the cakephp page
I have a page where I'm making changes to multiple instances of the
same model (say, permissions for multiple users) on a page, but when I
post it always ends up that $this->data only contains the information
of the last entry posted. I'm assuming it simply is causing each
subsequent "row" to over
Hello All,
I managed to get my component working but would like to call cake's
native 'redirect' instead of "header('location...", if it is
possible... Does anyone know how this can be done?
~/app/app_controller.php:
SSL->reset=false;//requests continue in https if
false,
default = true
Just a quick thank you to people who took part in our phase one beta
program at www.handsetdetection.com . We have now entered phase two,
with a new release of the site with additional features and services.
In the next few weeks, there will be a further release with more new
advanced features.
T
I've been doing some heavy debugging using xdebug and cachegrinder.
I found a list of calls in the core that take a tremendous amount of
time to load. It seems like the core is slow to get off the ground.
Take a look at the trace. Notice where there are HUGE leaps in
seconds (lines 1-2 and 19-2
Hi all,
I am using joomla 1.5 + cakephp 1.1
i installed jake component for joomla and followed the documentation
from jake home page
http://dev.sypad.com/projects/jake/documentation/
1 when a cakephp file is opened from joomla the following warning is
occurring on the top of the cakephp page
I ran into an issue tonight that caused Apache 2.2 to crash on Vista
using RC2. Basically, I deleted a helper file from my file-system but
forgot to remove the reference to it (var $helpers = array()) from my
app_controller.php file, which caused httpd.exe to crash/shut down.
I'm not sure if it i
Hi I was wondering if I could integrate an external app into cake php.
Something like what is done in this url
http://codeigniter.com/wiki/JP_Graph/
Thanks in advance for any hint.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
Hey! Thanks I didn't know that kind of syntax!
Great tip.
On Jun 25, 5:01 am, Grant Cox <[EMAIL PROTECTED]> wrote:
> Don't forget you can also use
>
> $javascript = <<
> ...all your js here...
>
> END;
>
> On Jun 25, 4:43 pm, Daniel Hofstetter <[EMAIL PROTECTED]> wrote:
>
> > Hi Federico,
>
> >
I'm trying at the moment to remember the user between sessions, but
I'm sure I'll need to soon. Or are you suggesting using that all the
time instead of relaying on auth's sessions?
On Jun 30, 9:26 am, leo <[EMAIL PROTECTED]> wrote:
> Or alternatively, I found that Chris's method was sometimes un
I'm building an application which deals with "alternatives". I won't
go into the details of the application, but what's important here is
that these alternatives have relationships between them. These include
"enables", "excludes", "forbids", etc. For example, "alternative A
forbids alternative B"
Thanks for the informative reply! It was kinda looking like this was
the way things are, but I always wonder if I'm just missing
something :)
Thanks!
--Mike
On Jun 30, 9:49 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> The documentation you are referring to is misleading - a join is only
> used ac
92 matches
Mail list logo