With regard to 4, what platform are you developing on?
Matt Kosoy wrote:
> Hello.
>
> I'm having a ton of problems trying to get cakephp to generate excel
> files correctly, and I was wondering if anyone out there has any info/
> suggestions.
>
> So far I have tried the following:
>
> 1. Re-wri
The information is valuable to the attacker only if s/he has the
access to the database (read: there is a security hole in the application).
There may still be a way to get the field list from the table (eg. SHOW
CREATE TABLE for MySQL) once an attacker can execute own SQL statements on
the server
I've had a strange error on some of the views on a new 1.2
application. The errors only occurred when I uploaded them to my
shared hosting on Site5. It ran fine on my Gentoo Apache 2.2.6 server
but after uploading I noticed that any view that had any edit/add/
delete on it would error out with the
There have been threads like this before, where the question was
really "why are Cake sessions persisting even after closing and re-
opening the browser", and the answer is that you have changed the
define('CAKE_SECURITY', 'high');
in your /app/config/core.php to something other than 'high'. In
We use a modified version of the helper on the Bakery (#2 in your
list). We found that same issue of larger files being invalid - this
was fixed by just removing the
$this->workbook->setVersion(8);
call from the constructor of the helper.
On Oct 12, 8:34 am, Matt Kosoy <[EMAIL PROTECTED]> wr
Hello.
I'm having a ton of problems trying to get cakephp to generate excel
files correctly, and I was wondering if anyone out there has any info/
suggestions.
So far I have tried the following:
1. Re-writing a class I found on phpclasses.org (http://
phpclasses.promoxy.com/browse/package/2
We use centOS on our development and test environments but use redhat
for prod. Normally I would feel very uncomfortable with having two
distinct platforms of linux between environments but centOS claims to
be an exacting mirror of RH. Overall, I've enjoyed centOS. It's easy
to use and manage b
Hi everybody!
Is it possible to have different locales for the same language?
I want to have different French versions for France and Canada,
different Spanish versions for every Spanish speaking country, etc.
Is there any way of achieving this in Cake 1.2?
Thanks!
--~--~-~--~~--
I have read a post where Tulio Fara was asking help to settup many
applications to use the same models.
I want to share a solution for this issue and also find out if I'm
doing it the cake way :-).
Now I'm using wamp and I unpacked Cake inside the cake folder of the
www folder of wamp (the folder
Yeah he's got it, the modelPaths variable in bootstrap is what you'll
want to use.
On Oct 11, 2:36 pm, kanian <[EMAIL PROTECTED]> wrote:
> On Oct 11, 9:04 pm, Tulio Faria <[EMAIL PROTECTED]> wrote:
>
> > I mean using the same model files :)
>
> > On 11 out, 11:01, "[EMAIL PROTECTED]" <[EMAIL
On Oct 11, 9:04 pm, Tulio Faria <[EMAIL PROTECTED]> wrote:
> I mean using the same model files :)
>
> On 11 out, 11:01, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > in config/database.php add
>
> > var $'shared_db = array(
> > 'driver' => 'mysql',
> > ..
I haven't tested it but the model does have access to the data submitted.
Perhaps something along the lines of ( untested and I might be totally wrong
about the variable's name / key etc ) but...
... 'message' => "The username {$this->data['username']} is already
registered",
...
might do the
On 10/11/07, Tulio Faria <[EMAIL PROTECTED]> wrote:
>
> I mean using the same model files :)
>
Would symlinks (maybe over sshfs / nfs / smb for files located on
different servers) do the trick for you?
Of course, what _should_ be done, instead of sharing model files,
would be implementing we
To develop the idea a bit further.
Better surely to just create a file in the root of you dev site
(called "eclipse_helper.php" or something) so it never get called and
you don't have to put code into working pages.
Something like:
-
-
voidstate
On Oct 11, 6:39 pm, Mech7 <[EMAIL PR
I mean using the same model files :)
On 11 out, 11:01, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> in config/database.php add
>
> var $'shared_db = array(
> 'driver' => 'mysql',
>
> );
>
> In all such model ad
Strange it does for me ?
On Oct 11, 3:19 pm, Luigi <[EMAIL PROTECTED]> wrote:
> no it doesn't.
>
> at least for me.
>
> On 10/11/07, Mech7 <[EMAIL PROTECTED]> wrote:
>
>
>
> > I think in ZDE this worked by default just not on Eclipse + PDT :(
>
> --
> Luigi
--~--~-~--~~~
in config/core.php you can set the DEBUG constant to 0-2 (0 being no
debug).
however, if you still have cake debug code showing up, then something
is still going haywire in your layout. perhaps accessing a variable
that isn't set, or iterating over a variable that isn't set or not an
array. lon
Ok, I fixed the issue and my page and title bar both render correctly,
but when I view source I still see a lot of code in my Title tag. It
starts with ...
Is there a debug configuration that I need to disable somewhere?
On Oct 11, 8:53 am, befidled <[EMAIL PROTECTED]> wrote:
> thanks. I'm a m
In Controllers you can do something else with phpDoc, like:
/**
* @var Model
*/
var $model;
If you put this in your AppController, it should work in every action
in your controllers.
This all works for me with PDT Eclipse.
On 11 Okt., 14:29, wluigi <[EMAIL PROTECTED]> wrote:
> That's
I have simply two table
Products
-id
-name
-category_id
Categories
-id
-name
Product $belongsTo Category with foreign key category_id
Category $hasMany Product with foreign key category_id
Views / Controllers are then cooked up, really nice~
Index view of the Categories list all the category
RTFM:
"Critics say that frequent users of the phrase (or similar variants)
are simply expressing elitism, and that their attitude drives away
newcomers without helping them. Their time could better be spent
adding the question and answer to an FAQ, pointing the user to a
helpful website, or simply
Thank you, finally a reasonable answer! :)
On Oct 11, 3:32 pm, savagekabbage <[EMAIL PROTECTED]> wrote:
> You can consider plugins to be modules of CakePHP as they are built to
> be able to integrate with any Cake installation.
>
> On Oct 11, 7:39 am, stefanb <[EMAIL PROTECTED]> wrote:
>
> > So a
thanks. I'm a moron sometimes. No Title tag at all in my default
layout.
thanks.
On Oct 10, 9:54 pm, "Wayne Fay" <[EMAIL PROTECTED]> wrote:
> I'd assume you've got some bad code in your layout file, probably default.ctp.
>
> Wayne
>
> On 10/10/07, befidled <[EMAIL PROTECTED]> wrote:
>
>
>
> > I
Thanks solved it. You have also cleared up some other questions for
me thank you so much for your wonderful help:) Yes!
On Oct 11, 10:19 am, grigri <[EMAIL PROTECTED]> wrote:
> Oh, right, gotcha. You're mixing up normal view variables (here
> $post), the view $data variable and the $this->data.
I solved it :)
On 11 Paź, 14:54, Kebab <[EMAIL PROTECTED]> wrote:
> Welcome!
> I started baking few days ago and try to run my first Cake :)
>
> I have "simple" problem.
>
> In my css file I have relative path to images (backgrounds).
>
> In a main site everythink is ok. But ie in:
> /posts/hell
No, the second half is wrong.
On Oct 11, 2:59 pm, "Christian Winther" <[EMAIL PROTECTED]> wrote:
> No, the plugin part is right
>
> But the first part about you not bothering to search for answer first is also
> true
>
> -Original Message-
> From: cake-php@googlegroups.com [mailto:[EMAIL
Can anyone solve my above problem. I am trying to open the URLs As
http://www.mysite.com/index.php/controllers/action/
Further i have uncommented the following line from core.php :-
define ('BASE_URL', env('SCRIPT_NAME'));
Pls help
Thanks !!
On Oct 11, 5:25 pm, CakeMan <[EMAIL PROTECTED]>
RTFM is a perfectly reasonable response to a question like this...
Honestly, have you read the manual? Plugins are covered in some depth.
Your question makes it obvious that you have not (pure laziness?),
which makes people less likely to bother responding to your
question(s). Go read it now!! An
Hi,
maybe I'm just plain stupid but I can't get my head around a custom
validation rule for HABTM with 1.2
It's no problem to trigger a rule for any other associations, like:
var $validate = array(
'field_name =>array(
'rule' => 'myRule'
))
But how do I trigger validation for a HABTM asso
You can't. Unless the user clicks a "logout" button, you have no idea
when the user leaves your site or closes the browser.
Wayne
On 10/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> HI
> I have this banal problem but I can't resolve it.
> I would destroy a CakeSession when the user clo
Oh, right, gotcha. You're mixing up normal view variables (here
$post), the view $data variable and the $this->data. Basically, $this-
>data is the one that is automatically filled and works with forms
(filled through $_GET or $_POST). The $data variable is generally used
as a catch-all for the vi
Welcome!
I started baking few days ago and try to run my first Cake :)
I have "simple" problem.
In my css file I have relative path to images (backgrounds).
In a main site everythink is ok. But ie in:
/posts/hello
can't see images(backgrounds), becouse it modifies paths to:
/posts/hello/img/ i
There's nothing that says you have to name your field with the model/
field method. If you're concerned about this give it a different
name, but then you will need to parse the $this->data array and
restructure it if you intend to use $this->model->save($this->data);
I doubt this is efficient, es
Tried that and still nothing. It doesn't seem to be passing any data
in the data area?? Really perplexed.
I have a debug in their and it retrieves nothing?? It is odd that I
can save the information yet not retrieve it...
debug($this->data);
I think it might have something to do with this line
Looks like
foreach ($data['Comment'] as $Comment)
should be
foreach ($data['Comment'] as $comment)
On Oct 11, 3:23 pm, seacloud9 <[EMAIL PROTECTED]> wrote:
> My blog will take comments place them in the database but not display
> them.
>
> Something appears to be wrong with this code:
> -
Add my cake site http://playonline.lt
--~--~-~--~~~---~--~~
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 group, send email to [E
in config/database.php add
var $'shared_db = array(
'driver' => 'mysql',
);
In all such model add
var $useDbConfig = 'shared_db';
--~--~-~--~~~---~--~~
You received th
My blog will take comments place them in the database but not display
them.
Something appears to be wrong with this code:
---Post View--
data);
if (isset($data['Comment']))
{
foreach ($data['Comment'] as $Comment)
{
echo "";
echo $comment['body'];
You can consider plugins to be modules of CakePHP as they are built to
be able to integrate with any Cake installation.
On Oct 11, 7:39 am, stefanb <[EMAIL PROTECTED]> wrote:
> So a plugin is not the same as a module? Now I'm confused.
>
> On Oct 11, 12:43 pm, dardosordi <[EMAIL PROTECTED]> wrote
no it doesn't.
at least for me.
On 10/11/07, Mech7 <[EMAIL PROTECTED]> wrote:
>
>
> I think in ZDE this worked by default just not on Eclipse + PDT :(
>
>
> >
>
--
Luigi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
I think in ZDE this worked by default just not on Eclipse + PDT :(
--~--~-~--~~~---~--~~
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
Hi everyone,
I'm doing 4 applications those have the same models related to the
same database...
Is there a way to share them with each other keeping them in one
folder?
I've found something in /app/config/bootstrap.php , but it didnt
work...
Can anyone help me?
--~--~-~--~~-
No, the plugin part is right
But the first part about you not bothering to search for answer first is also
true
-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of stefanb
Sent: 11. oktober 2007 13:39
To: Cake PHP
Subject: Re: Modules?
So a plugin
That's great.
So in the controller, you can use
if(false) {
$this->Model = new Model();
}
but you've to add this in every action of every controller.
How to add it to one and only one place ?
On Oct 10, 9:34 pm, Stu <[EMAIL PROTECTED]> wrote:
> That is brilliant, and worked flawlessly
Hi ALL,
I am having an trouble running Cakephp with IIS. It is giving me the
error as "CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers."
What is the problem ? Please help me out to run cakephp on IIS as my
client only has IIS/Windows server.
So a plugin is not the same as a module? Now I'm confused.
On Oct 11, 12:43 pm, dardosordi <[EMAIL PROTECTED]> wrote:
> Though the first half is the correct one.
>
> On Oct 10, 10:24 am, stefanb <[EMAIL PROTECTED]> wrote:
>
> > Thank you for the second half of your reply. The first half didn't
>
Guess you're right.
Fixed.
On Oct 11, 12:27 pm, dardosordi <[EMAIL PROTECTED]> wrote:
> Looks like that query should be a function in your model.
>
> On Oct 10, 2:47 am, Meloy <[EMAIL PROTECTED]> wrote:
>
> > Great!
> > Thanks a lot!
>
> > On Oct 10, 3:02 am, Grant Cox <[EMAIL PROTECTED]> wrote:
... and yet you took the time to answer my basic question. How will I
then learn the lesson? ;)
On Oct 11, 12:41 pm, Marcin Domanski aka kabturek <[EMAIL PROTECTED]>
wrote:
> On Oct 10, 3:24 pm, stefanb <[EMAIL PROTECTED]> wrote:
>
> > Thank you for the second half of your reply. The first half
Hey guys, I've decided to jump in head first with cakephp and using it
for a large application I'm building. So far I'm loving it, I also
want to integrate dojo (the tabbed navigation system & form elements/
validation particularly). Has anyone had any joy embedding dojo into
their app and using t
Using an association, you can do this. Cake will do the hard work for
you - performing multiple queries where necessary.
As long as you have two different database configs, and two models,
you should have no problem at all.
Mike
On Oct 11, 10:46 am, inma <[EMAIL PROTECTED]> wrote:
> Hello,
>
>
Comida411 <[EMAIL PROTECTED]> wrote: [...]
> My level of customization rules out OsCommerce and ZenCart and really
> any other prebuilt shoping carts.. I need a more from scratch
> approach...
>
> So is CakePHP a good environment to build a e commerce site in?
If your level of customisation *real
set() is a method of the controller, not the component. Try $this-
>component->set(...)
On Oct 10, 7:02 pm, worldcommander <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm working on converting an existing site to CakePHP. The site is
> similar to a blog where each post can have many related articles
it's $actsAs, not $actAs
On Oct 10, 8:46 pm, RLR <[EMAIL PROTECTED]> wrote:
> I am trying to use the SoftDelete behavior as described at the bakery
> but nothings is happing other than the records are being deleted as
> usual.
>
> cake version 1.2.0.5427alpha
>
> Installed the soft_delete.php in
gentoo for performance , debian for stability
i heard many ppl use CentOS but i don't have much experience with it.
imo you can't go wrong with debian and centos.
greets,
On Oct 10, 7:16 pm, cakeFreak <[EMAIL PROTECTED]> wrote:
> Cheers MJ Ray!
>
> Anyone about CentOS?
>
> Dan
--~--~-~-
Thanks,
Do not get me wrong, I know the consequences of working with branches.
As a lot people do (I guess), I tend to make a single view for "edit"
and "add".
Now handling the modelId is good, but I though for, multiple record
form; the "indice" would be between the model and field name and not
Yeah tthat's the way.
i used 'CAKE_ADMIN' = 'false' but as it is deprecated then i use
'admin' too :)
On Oct 10, 8:25 am, Geoff Ford <[EMAIL PROTECTED]> wrote:
> Try
> link('Home', array('controller'=>'docs',
> 'action'=>'index', admin=>false)); ?>
>
> Note tested though.
>
> Geoff
> --http://lem
Though the first half is the correct one.
On Oct 10, 10:24 am, stefanb <[EMAIL PROTECTED]> wrote:
> Thank you for the second half of your reply. The first half didn't
> help me at all.
>
> On Oct 10, 3:12 pm, "Christian Winther" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Did you even bother to look
On Oct 10, 3:24 pm, stefanb <[EMAIL PROTECTED]> wrote:
> Thank you for the second half of your reply. The first half didn't
> help me at all.
The first part should help you realize that you should first invest
some time by looking at the manual. If you don't have time to do it
why do you think pp
Well, 1.2 is still officially in Alpha stage, which means that changes
like this can happen. Whenever you download a new nightly, go through
all of the recent changesets to see exactly what has changed and how
it might affect your app. I fell foul of this a while ago with a big
change on the nesti
Put in your layout:
On Oct 10, 4:14 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I'm using cake php for developing one website. I have problem in using
> layout to display.
> In layouts directory i have one test.thtml file, in that i'm just
> echoing the text, for testing
Looks like that query should be a function in your model.
On Oct 10, 2:47 am, Meloy <[EMAIL PROTECTED]> wrote:
> Great!
> Thanks a lot!
>
> On Oct 10, 3:02 am, Grant Cox <[EMAIL PROTECTED]> wrote:
>
> > $db =& ConnectionManager::getInstance();
> > $default_prefix = $db->config->default['prefix']
Also, FormHelper is from CakePHP 1.2, I think you are using 1.1.
On Oct 10, 7:13 am, Adwin Wijaya <[EMAIL PROTECTED]> wrote:
> in your controller
> add this at the top one
>
> var $helpers = array('Html', 'Form' );
>
> On Oct 9, 6:36 pm, Justin <[EMAIL PROTECTED]> wrote:
>
> > first time cake u
Hi Bakers,
I work using the 1.2 branch that I update almost daily. ON my latest
update, I found out that the form.php and helper.php have been
modified to handle the modelId. This had a big impact on my current
project, it changes as follow mainly when you have a form for editing,
having the 'id"
> worked it out
>
> class UserController extends AppController
> {
> var $uses = array('Post','User');
no need for $uses, check the manual for how associations work.
If you're in PostsController, then you can access related models of
Post like so:
$this->Post->User-> etc
if you're in Users you
worked it out
class UserController extends AppController
{
var $uses = array('Post','User');
}
--~--~-~--~~~---~--~~
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@googleg
I'd assume you've got some bad code in your layout file, probably default.ctp.
Wayne
On 10/10/07, befidled <[EMAIL PROTECTED]> wrote:
>
> I've got a lot of code from my cake app showing up in my title bar.
> What could be causing this?
>
> http://www.tolerase.com/items
>
>
> >
>
--~--~-
Hello,
I need to know the way to define two different data sources at the
same time (MySQL & Oracle). Is this possible?
I have to read data from both data sources and show it at the same
screen.
Thanks in advance.
--~--~-~--~~~---~--~~
You received this mess
HI
I have this banal problem but I can't resolve it.
I would destroy a CakeSession when the user close the browser or exit
from my web site.
How can I do it?
Many thanks
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Is CakePHP the best PHP based environmnet for Ecommerce? I am
building my first ecommerce site.. it will be used by small business
restaurants to sell there food onine.. There asrre already seveeral
sites on the web that allow small business restaurants to sell their
food online.. however I want
69 matches
Mail list logo