On 1/8/08, beetlejuice <[EMAIL PROTECTED]> wrote:
> must be because of some text output before header could be send ?
Yes, you must have seen that error.
ANY whitespace outside php-tags in models/controllers (and most other
Cake-files) can and usually will ruin your session.
Martin
--
Marti
Working...
>
>
I should use $catalog, since "catalog" is set on my controller.
$this->set('catalog', $this->Catalog->read());
>
On Jan 9, 2008 2:27 PM, Louie Miranda <[EMAIL PROTECTED]> wrote:
> http://bin.cakephp.org/view/1034462467
>
> How could i display the Orderlists20 array on view?
>
http://bakery.cakephp.org/articles/view/csv-helper-php5
latest version of class is here:
http://ifunk.net/cakephp/helpers/csv.php.txt
On Jan 9, 4:32 pm, bhushan A <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>Can anybody help me how to write code for "Export to CSV" link? Or
> there is any provis
Hi all,
Can anybody help me how to write code for "Export to CSV" link? Or
there is any provision in cake php for that.?
please reply me on [EMAIL PROTECTED]
bhushan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
http://bin.cakephp.org/view/1034462467
How could i display the Orderlists20 array on view?
print_r(); -- result
Array
(
[Catalog] => Array
(
[id] => 1154
[timestamp] => 2008-01-08 23:22:15
[date_created] => 2008-01-08 23:22:15
[date_modi
The crashes can be due to Zend optimizer. Comment the lines relative
to Zend optimizer (if any) in php.ini amd give a try.
Concerning the UTF-8, make sure you save your file without BOM
hth
On Jan 9, 12:24 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
> I have xampp installed and cake
Hi folks,
I'm fairly experienced with PHP and Mysql but just started learning
about Cakephp tonight.
I'm interested in building a (simple, at least at first) web page
that:
1. Asks the user several questions, contains checkboxes, etc (using
ajax forms)
2. based on their answer criteria, builds a W
Interesting find tonight while playing with the test suite. If you use
testAction() and have the Auth component loading (in the controller or
in your App Controller), and don't explicitly Auth->allow() the action
set in testAction(), then testAction() will fail silenty as it
redirects to the Auth
This is how I setup my sites... all you need to do is edit two lines
in /webroot/index.php
Here is an example of what I replace them with...
//define('ROOT', dirname(dirname(dirname(__FILE__;
define('ROOT', dirname(dirname(__FILE__)));
//define('APP_DIR', basename(dirname(dirname(__FILE__))
Iam using the translation behaviour in cakephp, the translations work
fine but I would like to know
how to set my default language. What I mean is I have a Model Page and
I did my translations on the
i18n table, when I change the language to english it translates the
content but
when I try to set
Ok, thanks, looking forward to see it implemented :-)
On Jan 8, 7:38 am, nate <[EMAIL PROTECTED]> wrote:
> I'm currently working on the schema generation for Postgres, which was
> heretofore non-existent. Once that's fully implemented, this will be
> a non-issue, and your tests should run fine.
you could easily do that too.
--~--~-~--~~~---~--~~
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 [EMAIL PROTE
Hi,
I have xampp installed and cake 1.2.
But somehow my Apache server keeps crashing. Even on scaffold sites.
$this->redirect(...) is also not working. I get the following message:
"Warning: Cannot modify header information - headers already sent by
(output started at [path to my controller]) ...
I'm assuming you're baking this project, make sure that your subject
table includes a foreign key titled person_id. Then when you bake, the
associations should be created automatically
On Jan 7, 10:16 pm, jvandal <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a person table. I have a event table and a
> Seriously, any editor is
> pretty fine to develop it. Just be comfortable with the editor you are
> using.
VIM FTW!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send ema
it looks like you have the right idea, but you're leaving out a lot of
info in your associations here is an example of what you need:
class Customer extends AppModel {
var $name = 'Customer';
var $hasMany= array(
'Employee' => array(
While I haven't come across this specific problem yet, I have had
session problems with 1.1 and if you search the forum you'll find
several other people that have as well. If you turn down your security
to medium or low in /app/config/core.php it should help with this.
Also, 1.2 seems to be a lot
Woo hoo! Got it to work. For anyone interested, I believe it had to do
with the custom table in my Model declaration (var $useTable).
To solve my issue, I added two lines to my Test Model declaration:
class UserTest extends User {
var $name = 'UserTest';
var $useDbConfig = 'test_suite'
This sounds exactly like what I was seeing here.
Short answer, there's a bug in CakePHP that causes this to happen. The
problem is fixed in 1.2 so you can go to the CakePHP and download
that, though you will probably need to fix some of your code as it
isn't completely compatible (it's not bad th
It would be nice to have dir structure like this:
/app
/controllers
/models
/views
/webroot/
sometimes it is hard to backup only source etc.
On Jan 8, 10:50 pm, Gwoo <[EMAIL PROTECTED]> wrote:
> Robby,
> Good explanation and advice.
>
> Another option is use the bootstrap.php. In
hello all,
FYI :
i'm using cakephp 1.1.19.6305
and was about to commit suicide because of session handling.
some actions from a controller without model were doing great with
session,
others from another controller (with model) couldn't handle session
(passing vars from one to another).
i finall
The session are sometimes dropped i change the security level from
high to medium it helps but sometime it happens that the session are
always droped until thes cake session cookie is deleted or expired,
also the session are dropped after redirect
cake version 1.1.19.x also in cake version 1.1.18
Robby,
Come to IRC, its much more fun than having to send 4 messages in 2hrs
with no response.
#cakephp, irc.freenode.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send e
Robby,
Good explanation and advice.
Another option is use the bootstrap.php. In there, you can point to
your model/view/controller directories which could be located anywhere
in your file system. This would all you to separate them out
completely from the main app directory. When you need to upgr
Here is my code. I followed the Bakery instructions to a T:
user_test_fixture.php (in tests\fixtures)
class UserTestFixture extends CakeTestFixture {
var $name = 'UserTest';
var $import = 'User';
}
user.test.php (in tests\cases\models):
App::import('Model', array('User'));
class Us
Well, it looks like I have another problem now with import now. I keep
getting a missing table error. For some reason the code is prepended
'test_suite' to my source model or table when its trying to import it,
so I'm getting "Error: Database table test_suite_usr for model User
was not found." -
Siebren solution will for sure work if getperson() is called with a
pagination link, but looking at first post it seems coming through
"requestAction".
Because it's a part of projectController (probably for a view
displaying the project and the persons attached to it), it seems the
solution is to
Personally I use an Ant build task (through Eclipse) to deploy my
applications to dev, test, and production. It keeps the deployment
specific info out of the code and all in one place. It also means that
I can easily add a new target or change a target with little effort.
Ant is pretty power
Being picky, logical place (to me) is beforeRender() :)
On Jan 8, 2:24 pm, Aevum Decessus <[EMAIL PROTECTED]> wrote:
> Thanks for the advice, it works now. The only change that I had to
> make is to make it beforeFilter(), instead of afterFilter() in order
> to make it work now.
>
> On Jan 7, 9:
I do not know if I was right, also if I am right saying that a
"survey" is basically "questions" .. So maybe a only one model and one
controller could handle a survey ?
On Jan 8, 8:19 pm, Robby Anderson <[EMAIL PROTECTED]> wrote:
> Well, francky had it right. I just riffed on that. :)
>
> I think
Well, francky had it right. I just riffed on that. :)
I think it should be as simple as added your Survey model the $uses
property in the controller declaration.
var $uses = array('Questions','Survey');
Then use it in the controller as necessary:
$this->Survey->doSomething();
Altern
Yeah if anyone find's a great way to do this .. lemme know. For me, I
just toss some if statements into my config that recongnize the url
and pick a db config based on it. Not the best idea.. I know.
I think *best* case scenario is to not commit the database config
file. And have deploy scripts t
On Jan 8, 2008 2:06 PM, francky06l <[EMAIL PROTECTED]> wrote:
>
> I suppose your model is Game, and your action is"score":
>
> function score()
> {
> $pageparam = array('controller' => 'Games',
>'action' => $this->action);
>
> $this->paginate['Game']
Found it.
At some point it appears the testing framework loads my app_controller
- which has requiresSecure() in my its beforeFilter(), which was
calling my blackhole callback, which was redirecting to a main page -
but since there was already output (from my testing framework), it
couldn't redi
Robby, you are exactly right. :-) I needed to step back and look at
how I designed the controllers. I've combined them - I now have the
save() functionality in the Questions controller. But now I'm trying
to save to the Surveys table from the Questions controller. Can I use
var $useTable = 'surve
I suppose your model is Game, and your action is"score":
function score()
{
$pageparam = array('controller' => 'Games',
'action' => $this->action);
$this->paginate['Game'] = array('fields' => array('DISTINCT
week'),
On Jan 8, 2008 1:39 PM, Alfredo <[EMAIL PROTECTED]> wrote:
> Hi, I need to handle multiple environments (dev, qa, production...)
> and for each I need a set of values, diffrent api keys, base urls
> resource locations etc. Is there a way to define an array for each
> environment and have an glob
Hi, I need to handle multiple environments (dev, qa, production...)
and for each I need a set of values, diffrent api keys, base urls
resource locations etc. Is there a way to define an array for each
environment and have an global environment_config array that can be
accessed from controllers/
On Jan 8, 2008 1:41 PM, francky06l <[EMAIL PROTECTED]> wrote:
>
> Well, without much thinking I would say that your "series" are given
> by a SELECT DISTINCT WEEK ORDER by WEEK ASC in your db, then
> pagination is quite straight forward (I will try to write some code
> sample, if you wish).
> If y
Baseball data is fun stuff. :)
If thats all you want, can't you make a method in the Game model that
does a custom query, then use that as your pagination data? Something
like this (very rough):
function getSeriesData ( $params ) {
$seriesQuery = '
select distinct
week,
Well, without much thinking I would say that your "series" are given
by a SELECT DISTINCT WEEK ORDER by WEEK ASC in your db, then
pagination is quite straight forward (I will try to write some code
sample, if you wish).
If you use a row per serie, then adding an ajax call triggered by
"click" on t
On Jan 8, 2008 1:29 PM, francky06l <[EMAIL PROTECTED]> wrote:
>
> Hi Chris,
>
> I am not sure to get what you want to do .. Do you want to show all
> series Meaning all games following each other or (what I undestood),
> having a "2 parts" screen when above displays all series (basically
> all we
On Jan 8, 2008 12:31 PM, Robby Anderson <[EMAIL PROTECTED]> wrote:
>
>
> I don't know how sophisticated you plan for your sim to be, but the
> inferred series method can fall down if you use a schedule generator
> that creates a more "real-world" schedule where series can be spread
> over two week
Hi Chris,
I am not sure to get what you want to do .. Do you want to show all
series Meaning all games following each other or (what I undestood),
having a "2 parts" screen when above displays all series (basically
all weeks), (you can paginate them) and then a second part that will
show (with p
I'm having a difficult time setting up a test fixture to import from
another table or model. It silently dies, and I've isolated it to
where it dies. In the cake_test_fixture.php file, when a model is
created to import from (line 69 or 75 in the beta 6311 version), the
model instantiation bit die
I don't know how sophisticated you plan for your sim to be, but the
inferred series method can fall down if you use a schedule generator
that creates a more "real-world" schedule where series can be spread
over two weeks, or where there are make up games (that could get
wrapped into a series if i
what exactly do you mean by display 404 error? 404 is reserved for someone
trying to access something that does not exist. You can edit your 404 error
page in /app/view/errors/error404.thtml(1.1) or error404.ctp(1.2).
if you just want a way to call the 404 error page from within a controller,
take
If nothing else you can manually write some queries and implement them
by overwriting the pageinate and paginateCount methods in the model.
I can't reallly think of a better way to do this at the moment.
On Jan 8, 9:55 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> Normally I don't post questi
Ok, this is actually fairly simple.
In the controller, you need to declare the paginator variable with this:
var $paginate = array('limit' => 10, 'page' => 1);
this tells the controller that you want to use the paginate helper, with a
default page-length of 10 values (change at will).
then you wou
If you want to display 404 instead of missing models/views/controllers
just set the debug level to 0
HTH
Tarique
On Jan 8, 2008 8:20 PM, dezpo <[EMAIL PROTECTED]> wrote:
>
> What is the simplest sollution to display 404 page error?
>
> >
>
--
=
yes, maybe the 1.2 is different. The problem is that I've 13
controllers and the same for the views...I would try to not repeat
anytime it.
On 8 Gen, 14:11, Aevum Decessus <[EMAIL PROTECTED]> wrote:
> Interesting, I got it to work just fine. The biggest difference I can
> see in code, is you put
What is the simplest sollution to display 404 page error?
--~--~-~--~~~---~--~~
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 grou
Normally I don't post questions to the list, just snarky responses. I
will expect no less in return. :)
I'm working on an admin area for my simulation baseball league site.
I have a Game model that contains games. Now, I've used the views
created by bake and need to do some funky pagination wit
The information you claim doesn't exist turned up for me by searching
this group.. here's a link though in case your search button is
broken ;)
http://groups.google.com/group/cake-php/web/frequent-discussions
On Jan 4, 1:53 am, "Louie Miranda" <[EMAIL PROTECTED]> wrote:
> BTW, on the documentati
Hi!
I have 2 tables: projects and persons.
In my ProjectsController I have a function that shows in the view a
list of all the persons of the database. For it I have this:
$this -> set ('persons', $this -> requestAction ('/persons/getpersons
'));
And in PersonsController:
Function getpersons ()
Could do something like this:
// routes.php
Router::connect('/my/profile', array('controller' => 'users', 'action'
=> 'cookieProfile'));
// UsersController
function cookieProfile(){
$username = $this->Cookie->read('username');
if ($username){
$this->redirect('/
I'm bit confused how to implement this. For example:
Lets say I'm logged in as User1. Username is stored into the cookie.
I would like to reroute /my/profile as /users/profile/User1. How can I
use cookie data for the route? In other words I would like to create a
dynamic route.
btw. is this only
One suggestion I found useful was in a blog or tutorial. Leave your
application files in one directory, and put each core cake code
version in an adjacent directory. Make sure to leave the version in
the directory name. Then you can modify your webroot/index.php and
look for the define of CAKE_CO
Sorry, it was a mistake, there is no bug or error regarding this.
Don't know why it didn't worked on the first test...
Sorry for that.
No offense!
On 8 Jan., 14:41, "J. Eckert" <[EMAIL PROTECTED]> wrote:
> Thanks, i haven't seen the change in the documentation.
> But the "old" notation also work
True! I also figured it's not needed. I added it in as part of the
process of debugging.
The problem is, whether I specify it or not, the warning message still
appears.
So the second argument isn't the cause of it.
Hmmm...
Is there any other possible errors that I have made that caused this
warn
On Jan 6, 2008 10:10 PM, ProFire <[EMAIL PROTECTED]> wrote:
>
>
> In my view, this is how I use my form:
> echo $form->input("Account.username", array());
>
Why are you passing an empty array as the second parameter? It's not needed.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving
Thanks, i haven't seen the change in the documentation.
But the "old" notation also works according to the documentation...
Ok, i'll write a ticket on that issue.
Thanks dizz!
On 8 Jan., 13:55, dizz <[EMAIL PROTECTED]> wrote:
> Take a look
> herehttp://api.cakephp.org/1.2/class_model.html#e6075
Thanks for the advice, it works now. The only change that I had to
make is to make it beforeFilter(), instead of afterFilter() in order
to make it work now.
On Jan 7, 9:01 pm, Robby Anderson <[EMAIL PROTECTED]> wrote:
> I think it should be pretty simple. In your app_controller, you could
> proba
No worries man.
On Jan 7, 2008 10:56 PM, Gwoo <[EMAIL PROTECTED]> wrote:
>
> Baz,
> I admit I was too quick to respond after seeing the response by
> cakeKicks. I misinterpreted what you said and I must be a little over
> sensitive to the issue. We try extremely hard, not only to produce an
> eas
Martin Schapendonk wrote:
>
> On 1/8/08, Davide <> wrote:
>> I've also tried with security HIGH, MEDIUM and LOW but none of them
>> works. When I get back to 1.1.18 everything is ok.
>
> This may be trivial, but the setting is case sensitive. Did you try
> high, medium and low as well?
Yes, I did
Interesting, I got it to work just fine. The biggest difference I can
see in code, is you put Pagination in the components array, while I
called it directly, which is how it is done in this tutorial (http://
bakery.cakephp.org/articles/view/basic-pagination-overview-3).
Here's my code btw.
Contro
Take a look here
http://api.cakephp.org/1.2/class_model.html#e60758f27fa8486a063b8cc424bad741
In the example you can see that you set the recursive level in the
conditions array
Eg: find('all', array( 'conditions' => array('name' =>
'mariano.iglesias'), 'fields' => array('name', 'email'), 'orde
Depends on what you want to integrate - you can develop RESTful web
services into a CakePHP app very easily which your .NET application
can then consume
HTH
Tarique
On Jan 8, 2008 6:14 PM, Lakshmi S <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We have a portal built around the Cake PHP framework u
Hi,
We have a portal built around the Cake PHP framework using PHP. We also
have a product which uses .NET. We need to integrate the two products.
Would anyone be able to guide / help /support as to how we could go about
this? Any help in this regard would be appreciated.
Thanks in advance.
R
On 1/8/08, Davide <[EMAIL PROTECTED]> wrote:
> I've also tried with security HIGH, MEDIUM and LOW but none of them
> works. When I get back to 1.1.18 everything is ok.
This may be trivial, but the setting is case sensitive. Did you try
high, medium and low as well?
Martin
--
Martin Schapendo
I have a login function in app_controler, where i redirect the user to
the login form when it is not logged in..
$this->redirect('/users/login');
Only it can't find the theme:
"Error: The view for UsersController::login() was not found.
Error: Confirm you have created the file: C:\wamp\www\mec
Well I've just seen that it works if in the controller i have
var $components = array('Pagination');
but it doesn't if i include the requesthandler why?
var $components = array('RequestHandler','Pagination');
On 8 Gen, 12:45, mcphisto <[EMAIL PROTECTED]> wrote:
> Why the pagination helper
Why the pagination helper works with IE7 and not with firefox?
Did someone of you experienced this?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-
Hi there,
In the newest release of Cake 1.2 (pre-beta) the 4th parameter of the
funtion Model::find ($recursive) doesn't seem to work anymore. Is this
a bug or a feature?
Doesn't make any sense for me, cause it's in the signature and no
warning is generated.
Recursive find's only work if you set
solved similar issue with using database sessions, carefully search
for session_start() in vendor files, remove them all.
hoerer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group
> Unfortunately I don't know of any resources which go into depth with
> associations (and comparing to complex real-world relationships and
> not just Post<->Tags, etc)
Depends on what you mean by resources. Tutorials, no, not really. But
specific examples? Look through the cake tests, or downlo
Three useful aditional informations:
1) I use strict error reporting with my php, so I get these messages
when bake starts:
Strict Standards: Redefining already defined constructor for class
Bake in /home/galvao/webroot/php-counter/code/cake/scripts/bake.php on
line 200
Strict Standards: Assignin
In my opinion,
CakePHP isn't recommended for those touching on PHP for the first
time.
It's always good to go through the basics of PHP before moving on to
frameworks.
However, I believe that's not your case.
I have been developing PHP applications for more than a year and I
have been using Not
Martin Schapendonk wrote:
> CAKE_SECURITY set to high also means that Cake checks the referer and
> drops the session if it believes it is being tampered with.
I have the same problem but from 1.1.18 to 1.1.19. In 1.1.18
everything works out well, in 1.1.19 not.
In the authentication procedure I
Just an update the the problem I'm encountering:
I have quite a number tables in my database. The only time I'm
encountering this error (So far) is when I use the formhelper on this
specific table called "accounts". I have other tables like "tasks" and
I have used formhelper with it. No such erro
francky06l wrote:
> You can use the "fields" option in the relation declaration (you can
> also use bindModel prior to your findAll), or use the Bindable
> behavior from Mariano in the Bakery.
> hth
Thanks Franck, I will investigate this way !
--~--~-~--~~~---~--~---
On 1/7/08, beetlejuice <[EMAIL PROTECTED]> wrote:
> the data i wrote into the session when user successfully logged in are
> no longer available in the next page.
>
> do you have an idea ?
CAKE_SECURITY set to high also means that Cake checks the referer and
drops the session if it believes it is
I show my real application.
Model A:
Class Informazione .
var $belongsTo = array('InformazioneTipo' =>
);
var $hasAndBelongsToMany = array('InformazioneCampo' =>
);
In model A I change the fields re
83 matches
Mail list logo