On Jan 18, 3:52 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> cake 1.2.0.6311-beta, PHP 5.2.4
>
> I'm trying to use afterFind() in order to massage some data for a
> model and am seeing PHP max out the memory limit (32MB). I'm only
> using a subset of just 1000 records (about 5%) from the
On Jan 18, 3:39 am, Rajesh <[EMAIL PROTECTED]> wrote:
> I have a field called comment which is of type text in db. And i have
> the validation rule as alphaNumeric, required=true and message=>'some
> message' in the model. The field is rendered as text area. Now if i
> enter the value of comment
Hey all,
I'm trying to get dAuth v0.3 working but am constantly presented with
"Login failed: Credentials mismatch.". I added a slew of debug output
to the component and sure enough my password hash and the one
submitted are completely different.
Some log_debug output from a login attempt:
2008
Missing controller
You are seeing this error because controller CakeController could not
be found.
Notice: If you want to customize this error message, create app\views/
errors/missing_controller.thtml.
Fatal: Create the class below in file : app\controllers
\cake_controller.php
--~--~
I have a field called comment which is of type text in db. And i have
the validation rule as alphaNumeric, required=true and message=>'some
message' in the model. The field is rendered as text area. Now if i
enter the value of comment as "sometext", this works fine and gets
stored in db, but when
No. Disabling password hashing is Evil with a capital "E". That's
why I don't let you do it.
On Jan 17, 11:03 am, dizz <[EMAIL PROTECTED]> wrote:
> Thanks to both of you, I thought of this, but I thought it would be
> easier to disable the AuthComponent::hashPasswords and then do what
> Baz did
Hello guys,
I need help regarding ajax with cake php ..I Can't really get a nice tutorial..
tutorial
has expired(http://grahambird.co.uk/cake/tutorials/ajax.php) and the place
where this
page takes me is bit advanced for me. Can some one refer some other link?
with regards,
jenson rajan.A
--
On Jan 17, 2008 9:52 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> cake 1.2.0.6311-beta, PHP 5.2.4
>
> I'm trying to use afterFind() in order to massage some data for a
> model and am seeing PHP max out the memory limit (32MB). I'm only
> using a subset of just 1000 records (about 5%) from
Thanks for the idea Chris. I've looked at this -> data in my debugger
and there's no associated data, so clearing it wouldn't make any difference.
After just getting my debugger working (which is far harder than it is
in any other language) I can see the problem's caused by an error I made
wri
cake 1.2.0.6311-beta, PHP 5.2.4
I'm trying to use afterFind() in order to massage some data for a
model and am seeing PHP max out the memory limit (32MB). I'm only
using a subset of just 1000 records (about 5%) from the prod. DB
membership table. I'm using a technique that I saw given to create a
On Jan 17, 2008 6:36 PM, Tim W <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'm doing a save of a model, it has an association and the key is
> being used in a join during the update, so that field isn't being
> saved. I need to disable the join for the save so I can update the
> field. Can anyone t
On Jan 17, 2008 6:37 PM, Raistlin Majere <[EMAIL PROTECTED]> wrote:
>
> I wrote the first question wrong. I can not edit it. I will try
> telling what I want again, but differently and completely.
>
> If I write a code to save a form data with CakePHP like "save($this-
> >data)", I will base on th
I wrote the first question wrong. I can not edit it. I will try
telling what I want again, but differently and completely.
If I write a code to save a form data with CakePHP like "save($this-
>data)", I will base on the codes written to create CakePHP like the
ones in "app\config\acl.ini.php".
I
Hi all,
I'm doing a save of a model, it has an association and the key is
being used in a join during the update, so that field isn't being
saved. I need to disable the join for the save so I can update the
field. Can anyone tell me how to do this?
I think I can do this using the unbindModel() m
You could always write a custom sql script to do what you want to do:
$sql="SELECT * FROM something AS somethingelse WHERE conditions";
$results = $this->yourmodel->query($sql);
You could also have your ajax call submit a form with a hidden input
that contains the id of the call, that way you ca
> Thanks for the inputs guys... Coupling both of these resolves the issues.
> I am having another AJAX problem.. with the below said string when i click
> some other tab, the images on the foucsed tab fade but the images for the
> new tab start appearing one by one. I want that they dont appear on
you are right chris, i am venturing a little bit towards that... Please
pardon me as i know its a bit off topic, but i can't resist asking the help
from experts on this forum.
Thanks
On 1/18/08, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
>
> On Jan 17, 2008 4:47 PM, Novice Programmer <[EMAIL PRO
On Jan 17, 2008 4:47 PM, Novice Programmer <[EMAIL PROTECTED]> wrote:
> Thanks for the inputs guys... Coupling both of these resolves the issues.
> I am having another AJAX problem.. with the below said string when i click
> some other tab, the images on the foucsed tab fade but the images for the
Thanks for the inputs guys... Coupling both of these resolves the issues.
I am having another AJAX problem.. with the below said string when i click
some other tab, the images on the foucsed tab fade but the images for the
new tab start appearing one by one. I want that they dont appear one by one
Use new with Effect :
'loading' => 'new Effect.Fade(\'ajaxtabloader\')',
hth
On Jan 17, 10:02 pm, "Novice Programmer" <[EMAIL PROTECTED]>
wrote:
> Hello Guys,
>
> I am upto developing a tabbed application. It loads tabs with images. on
> clicking another tab, I have written ajax link that fetc
It should work, I think your problem is with
'update'=>array('ajaxbloader'). I seem to remember coming across this.
I don't think that Cake likes it when you pass a single value as an
array to update in the ajax link, try changing it to 'update'
=>'ajaxbloader' instead.
Dave
On Jan 17, 2:02 pm,
Hello Guys,
I am upto developing a tabbed application. It loads tabs with images. on
clicking another tab, I have written ajax link that fetches the thumbs
specific to those tabs and loads them. Here is the ajax link that i have
written in my template.
link('Random', '/main_tabs/index/random', a
On Jan 16, 2008 10:56 AM, Nina <[EMAIL PROTECTED]> wrote:
>
> Hi All
>
> I found (and fixed) a bug in the model.php file, and I can't report it
> in the trac system, so I thought I'd report it here in case someone
> sees it and can fix it.
Nina,
Is that "can't" or "won't" report the bug? It tak
Wow, I'm really glad you found this. I read this yesterday and thought
"well, I guess I'll leave it the way it is until I see problems" Then
today I was testing my code and found major problems with saving HABTM
data. I thought it was because I was storing extra data in the join
tables but then I
Really thank you Martin! Your answer is really useful to me. I'm
actually new to ajax and I thought images would be loaded by client-
server without any cache. Ok, I'm stupid.
I'm thinking to use the javascript method you show me in the example.
Thank you!
--~--~-~--~~~-
How-to integrate FPDF and FPDI in my component? With "vendors" var?
Thanks,
Gianluca
On 15 Gen, 19:35, Takuo SHIONO <[EMAIL PROTECTED]> wrote:
> Hello Gianluca,
>
> I am also using FPDF with cakePHP.
>
> I think the problem is that the program output the white spaces in the
> layout template bef
Thank you both for your reply.
Sense was to reduce the iterations above the fetched data. First Cake
iterates to present the data. After that i iterate over it to
preprocess the data. Finally the json_encode-Method iterates over it.
Maybe i will test to overwrite the fetchResult-Method, but i nee
On Jan 17, 2008 2:05 PM, Raistlin Majere <[EMAIL PROTECTED]> wrote:
>
> If I write some lines of code with a bug, will the error message about
> the bug ever contain the many lines of code used to create CakePHP?
> Why is there no Debugging chapter with error messages and their
> meanings???
That
hello friends.
are with difficulty to record and to rescue session in that version
1.2 somebody could help myself.
thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, s
If I write some lines of code with a bug, will the error message about
the bug ever contain the many lines of code used to create CakePHP?
Why is there no Debugging chapter with error messages and their
meanings???
--~--~-~--~~~---~--~~
You received this message be
allright!... I succeeded in displaying blob images to a cake-php page,
thanks to francky06l for explaining his method and to [EMAIL PROTECTED] and Dr.
Tarique Sani for their conversation, here's what I did:
the layout:
the view:
the model:
the controller:
View->findById($id);
$this-
Ok.. worked on this a bit more and figured out a solution that works
for now. Just need to make it more dynamic and i'll be good to go.
Maybe someone else can find this useful.
in my model:
function paginate($conditions = null, $fields = null, $order = null,
$limit = null, $page = 1, $re
Orleans Public Defenders is seeking a talented and motivated programmer to
help us build our case management system. The case management system is
currently being developed using Cakephp. The position is contract – the
hourly rate is dependent upon experience. The Orleans Public Defenders
prefers t
I found the problem with my code using 1.2 beta. There was a
destroy('Menu'); method that was called. The intent was to only delete
part of the session that referred to the menu. I replaced this with
delete('Menu'); and it works.
I have no idea how this working in 1.2 pre beta but it did...
--
Oh and this is on the latest svn beta.
--~--~-~--~~~---~--~~
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 [EM
Estou com um probleminha aqui, vê se pode me ajudar
No meu controller (LoginController):
Após fazer o registro da variável de sessão, se eu fizer um
render() ou render('index');
O Cake recarrega a pagina de login, mas não registra a sessão.
Agora se eu fizer um render('/login'), o cak
On Jan 17, 2008 2:26 PM, Raistlin Majere <[EMAIL PROTECTED]> wrote:
>
> I meant {n}, not (n).
>
This was discussed very recently on the list. I've searched the archives for
you:
http://groups.google.com/group/cake-php/browse_thread/thread/1b0b0fa943a96e66/4e29a489b61da82d?lnk=gst&q=%7Bn%7D#4e29a
I meant {n}, not (n).
On 17 jan, 13:10, Raistlin Majere <[EMAIL PROTECTED]> wrote:
> CakePHP 1.1.19.6305
> MySQL 4.1.9
> PHP 4.3.10
>
> At the chapter models of the CakePHP Manual, there is an example of a
> function "to generate a list of roles based on your Role model, keyed
> by their integer
{n} represents the numeric index. For example, if you do a findAll(),
your result array could be like this:
array(
[0] => array('Person' => array('name' => 'Caramon', 'class' =>
'Fighter', 'note' => 'Fat drunk')),
[1] => array('Person' => array('name' => 'Sturm', 'class' =>
'Paladin', 'note'
Should I alter the Session.cookie value, which is set at CAKEPHP by
default?
If I have a bunch of different cake apps running in my browser at the
same time how does cake differentiate between each app's session?
Is it with the Session.cookie string? or does it use the
Security.salt as a way of
I'm using Ajax calls from the same table and field twice in the same
form. To differentiate between the two ajax call, the [modelname]
[fieldname] needs to be different. Since I can't change the way the
Ajax method makes the call, I though I'd use beforeFind in the model
to return "SELECT fieldnam
Here is another somewhat way to do it.
Your real password field is called: passwd
In your form, place a field called: new_password
Now call these lines in your controller:
$this->data['User']['new_password_hash'] = $this->Auth-
>password( $this->data['User']['new_password']);
$this->User->save(
The problem here is the mismatch between the name of the plugin and
the default controller name.
For this to work, you need to rename contents_controller.php to
content_controller.php (and obviously amend the class name within
that). Additionally the views/contents/ folder needs to be renamed.
T
CakePHP 1.1.19.6305
MySQL 4.1.9
PHP 4.3.10
At the chapter models of the CakePHP Manual, there is an example of a
function "to generate a list of roles based on your Role model, keyed
by their integer ids" The function is generateList and (n) is used
twice in its parameters. What is {n}?
$this->R
Hi all,
I have a page that displays a list of projects, projects can habtm
teams and vice versa, when the page first loads the $projects array is
populated via:
$this->set('projects', $this->Project->findAll());
Which returns ALL projects. Now on the page there is a select box that
posts back t
D'oh! Read 'mssql' as 'mysql'. My bad.
The cake MS SQL datasource does a similar thing to postgres (with the
double underscore), but it looks like you won't be able to use the
same workaround because the field mappings are pre-calculated.
You can still use a behavior though, or extend the DboMss
Thanks to both of you, I thought of this, but I thought it would be
easier to disable the AuthComponent::hashPasswords and then do what
Baz did above.
Anyways thanks again for the help.
-Andrew
On Jan 17, 10:45 pm, Baz <[EMAIL PROTECTED]> wrote:
> Yep,
>
> Use a different field, eg. new_passwor
Yeah the upload is working except that i get a 302 error. So the file
is uploaded ok, copied to the right folder and the correct info I need
is stored in my db.
On Jan 14, 6:43 pm, rloaderro <[EMAIL PROTECTED]> wrote:
> On Jan 14, 3:00 pm, booboobenny <[EMAIL PROTECTED]> wrote:
>
> >swfuploaddo
I also use Ant. I have a set of properties file for each environment
and all settings are placed in here as constants. This file is then
loaded by bootstrap so the constants are available.
This is great for the developers working on the project as there is
one place, and one place only to put in
Yep,
Use a different field, eg. new_password or something. (I'm assuming
you're validating when creating a password. No need for login)
Here's assuming you have a model called User:
// needed for validation for some reason
$this->User->set($this->data);
if ($this->validates($this->data))
{
Dude, you're confusing some very unrelated things.
On Jan 17, 9:38 am, lordG <[EMAIL PROTECTED]> wrote:
> Hey Chris,
>
> Thanks for the input. I did review that, but could not find valid
> cause that it was that. The cake Route class if it finds that the url
> is Ajax, sets the $params['bare'] va
On Jan 17, 2008 10:31 AM, dizz <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I am using the auth component and before my model can validate the
> password the auth component already encrypts the password so making it
> impossible to use the between built in valid method.
>
> Is there any work around f
Hello,
I am using the auth component and before my model can validate the
password the auth component already encrypts the password so making it
impossible to use the between built in valid method.
Is there any work around for this?
--~--~-~--~~~---~--~~
You recei
If anyone gets to this thread here's the perfect solution
http://groups.google.com/group/cake-php/browse_thread/thread/fd5fd9d30fb1c343/2316245e32c91097?lnk=gst
On Dec 26 2007, 3:03 pm, nate <[EMAIL PROTECTED]> wrote:
> See app/config/core.php or app/config/bootstrap.php
>
> On Dec 26, 1:36 pm
If anyone bumps into this thread here is a great solution
http://groups.google.com/group/cake-php/browse_thread/thread/fd5fd9d30fb1c343/2316245e32c91097?lnk=gst
On Jan 8, 1:51 pm, Langdon Stevenson <[EMAIL PROTECTED]> wrote:
> Personally I use an Ant build task (through Eclipse) to deploy my
>
I went and tried it out but instead of loading the settings on the
AppController's beforeFilter I did it in the config/bootstrap.php, and
the Configure object is accesible pretty much everywhere.
thanks a bunch for the tip
On Jan 17, 7:19 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> Yes
mysql resultsets identify the originating table and field name (table
can be aliased), and cake uses this information to build the array.
So if you have SELECT `Thing`.`eggs` FROM things AS `Thing` ...
Then cake knows that field is from the `Thing` model and puts it in
the appropriate array. Thi
I wrote a tutorial on this awhile back. You can find it here:
http://www.ntatd.org/mark/?p=28. It's a little bit strange because of
the date stuff I was also having to deal with (it's just working code
from a project I had), but maybe it will help a little. Let me know
if I can help.
hydra12
Why did you change the .htaccess file? I'm assuming that cakeblog is
actually your cake folder, with cake and app inside? If so, then you
should be able to go to http://localhost/~reuben/cakeblog/ and
everything should work without changing the .htaccess file at all. If
you have a different dir
I know how much fun it is to get a question in return but here I go:
Why exactly do you want to use an ajax-call for an image replacement?
What you will be doing iscreating two server-calls from the browser.
1. replacing one image-tag with another
2. which causes the browser to start loading the
I can't help you with mssql or aliases, but I might be able to help
with the json stuff. If I understand you correctly, you are wanting
to get your data into a good json format (ie - not have the data
nested in so many arrays). You might Set::extract(). You can find a
short tutorial here:
http
Hey Chris,
Thanks for the input. I did review that, but could not find valid
cause that it was that. The cake Route class if it finds that the url
is Ajax, sets the $params['bare'] value to 1. As a result, the session
component when checking if it should start the session checks if
$params['bare'
It would help if you could post your code. What address did you tell
your page to redirect to? If you just want to redirect to
http://www.test.com/app/, you could try redirecting to '/'.
I hope that helps.
hydra12
On Jan 16, 8:03 am, KnightE <[EMAIL PROTECTED]> wrote:
> Hi, I'm new to cakephp
There are several different ways to approach this, but I've never
heard the one you just heard. The way you are doing it is a standard
way if you only want to have 1 app - you put your controller in /app/
controllers, your model in /app/models, and your views in /app/views/
controllername/.
If y
On Jan 17, 2008 2:13 AM, williamn <[EMAIL PROTECTED]> wrote:
>
> Yes I did the extension=php_pgsql.dll in my php.ini. My other web app
> (not using cakephp) can connect to postgresql with no problem.
>
> I use cakephp 1.1.19.6305
>
> Thank you.
> --William
The problem isn't Cake, the problem is t
On Jan 17, 2008 6:37 AM, lordG <[EMAIL PROTECTED]> wrote:
>
> Hi Guys,
>
> Does anyone know why the webservices or ajax calls have not been
> maintained across sessions? Will they be, or am I missing something?
I believe this is related to previous discussions about the user agent
being different
I will give you a clue, look at the error message: "Permission
denied", "app/tmp"...
On Jan 16, 2008 11:00 PM, Helton Uchoa <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I´m testing the new version CakePHP 1.2.0.6311 beta and I´m having a problem
> that didn´t happen in version CakePHP 1.2.0.5875 pre-beta
Hi,
You don't need to do much.
create an appropriate controller/method... say a LogController with a
link method
You would point your external links to something like:
http://test.site/log/link?go=http://www.google.com/search?q=cakephp
I prefer putting the redirection-url in a normal query (usi
Yes, but depends. First, all of your controllers (should) inherit from
AppController, second almost anything you will be interested in to get
access to Configure methods, gets executed after the beforeFilter in
AppController. Always remember when you overwrite beforeFilter() in
your controllers to
On Jan 17, 2008 3:27 PM, NilsR <[EMAIL PROTECTED]> wrote:
> When i now try to access example.com/contents/index it tells me the
> controller is missing. What's Wrong?
Try example.com/contents/contents/index - or upgrade to the latest cake
HTH
Tarique
--
I can't access the default controller of my plugin. Cake tells me,
that the controller is missing.
My Structure looks like the following:
app/
plugins/
content/
content_app_controller.php
content_app_model.php
controllers/
I can't access the default controller of my plugin. Cake tells me,
that the controller is missing.
My Structure looks like the following:
/plugins
/plugins/content
/plugins/content/content_app_controller.php
/plugins/content/content_app_model.php
/plugins/content/model
/plugins/content/model/co
Hello,
I have created a small address book in cakephp and I have used the
default directory structure of cakephp. E.g.
I have stored my addresses_controller.php in
cakephp\app\controllers\addresses_controller.php
and address.php ( model ) in
cakephp\app\models\address.php
and views files in v
Hi Guys,
Does anyone know why the webservices or ajax calls have not been
maintained across sessions? Will they be, or am I missing something?
Thanks,
Greg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP"
Thanks a milion, it works now!
--~--~-~--~~~---~--~~
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 PROT
Yes, here is one method of making it more secure.
So have you two sites, siteA.com and siteB.com.
User is browsing siteA.com and you want them transferred to siteB.com
They click a link: eg. siteA.com/blah/redirectem/
In your redirectem method you get the current session id and save it
into yo
Oh my... I totally forgot this built-in javascript function because I
never use it! :-S
thanks a lot!
julien
On 16 jan, 00:05, "b logica" <[EMAIL PROTECTED]> wrote:
> On Jan 15, 2008 9:56 PM, Julien <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi, I'm very new to cake.
>
> > I'm currently doing the
Yes I did the extension=php_pgsql.dll in my php.ini. My other web app
(not using cakephp) can connect to postgresql with no problem.
I use cakephp 1.1.19.6305
Thank you.
--William
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
78 matches
Mail list logo