I know a hash-function named rolling hash. It works fine when you consider
multiple user for multiple session.
On Wed, Jul 1, 2009 at 11:02 AM, brian wrote:
>
> I wouldn't bother trying to include (and parse out) the date in the
> hash. Create a table to store the hashes and include a "created
>
Dear Brain,
Thanks for the reply. I am very late. Your solution was right. I
didn't upload one file that includes the variable . That's why the
problem occurs.
By the way, thanks for the reply.
I am very late to reply. Sorry for that.
Once again, Thanks .
On Jun 16, 11:17 pm, brian wrote:
> Ho
Hi everyboy,
I want to contribute developing cakephp. so i forked it. but I don't
know in which branch should I make changes?
I'm going to fix a bug that is actually an enhancement for cakephp 1.3
in configure class.
so which branch should I work on (master or 1.3 or 1.3-configure or
1.3-misc)?
-
Oh, and Ive set my debug to 2 and dont get any errors
The problem is not building the array, the problem is returning the
built array
On Jun 29, 9:04 pm, John Andersen wrote:
> Assuming you are passing anarraywith one ID, then if I understand
> your problem correctly, a parent will be read from
Im sorry, I really dont get this
> the returned (reversedarray)
> is lost in the null land, because no variable is defined to receive
> id!
If $id = 0 I dont need it to be added to the array - the array is now
complete so I want to take the array ive built to date and exit the
function
> And th
Yes... I found out the error..
I have used another smtp mailing class, and in it, there is an option
to set the authentication (TRUE or FALSE). If TRUE it will work fine
and if FALSE it will show the error message "No unauthenticated
relying permitted'.
But in cake, I have used 'auth'=>true in t
I only have one model called "User" and one controller called
"Sites".
And is there a way to keep CakePHP from running a query unless asked
to? Isn't that useless overhead that you don't need to have happen?
On Jun 30, 10:55 am, brian wrote:
> Check all of your models' associations. I think yo
I wouldn't bother trying to include (and parse out) the date in the
hash. Create a table to store the hashes and include a "created
DATETIME DEFAULT NULL" column. This way, you can later use your DB's
date/time functions to check if it's within the 48 hours. When the
hash is used, remove it from t
Set it to low and medium; no dice.
On Tue, Jun 30, 2009 at 9:17 PM, Miles J wrote:
>
> Try setting your security level to medium and see what happens.
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP"
delete this post please >.<
On Jul 1, 9:06 am, keanoppy wrote:
> using the scaffold...cakephp easily generate the table and input
> textbox
> where and how to modify the code (still using the scaffold) to place a
> text area right next
> to the scaffolded table view?
--~--~-~--~~
Try setting your security level to medium and see what happens.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this
using the scaffold...cakephp easily generate the table and input
textbox
where and how to modify the code (still using the scaffold) to place a
text area right next
to the scaffolded table view?
--~--~-~--~~~---~--~~
You received this message because you are subscri
On Tue, Jun 30, 2009 at 8:48 PM, GravyFace wrote:
> On Tue, Jun 30, 2009 at 8:41 PM, GravyFace wrote:
>> On Tue, Jun 30, 2009 at 8:20 PM, Miles J wrote:
>>>
>>> What are your session/core/auth settings?
>> http://pastebin.com/m3cfd4150
>
> ^^^ that's my core.php.
>
> app_controller.php:
> http://p
On Tue, Jun 30, 2009 at 8:41 PM, GravyFace wrote:
> On Tue, Jun 30, 2009 at 8:20 PM, Miles J wrote:
>>
>> What are your session/core/auth settings?
> http://pastebin.com/m3cfd4150
^^^ that's my core.php.
app_controller.php:
http://pastebin.com/m444d1c56
users_controller.php:
http://pastebin.com
On Tue, Jun 30, 2009 at 8:20 PM, Miles J wrote:
>
> What are your session/core/auth settings?
http://pastebin.com/m3cfd4150
> May we also see your login action.
login action is empty.
Thanks for your help.
--~--~-~--~~~---~--~~
You received this message because
What are your session/core/auth settings?
May we also see your login action.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscr
Sounds good thanks once again.
Basically a user has a profile and decides if they want it public or
private.
But running into to many if statements and is a complete mess.
Options for the profile owner public or private pretty simple
But if private I have to check friendships to see if the Aut
Hey,
I need a way to generate a hash code, which is valid 48 hrs. after it
has been generated. I need this to register my users and to activate
them.
I have the problem that this code below does generate a hash for 2
days, but this will cause problems when a user registers at 23:56, so
the hash
Not sure what's going on, but using Auth in it's simplest form
(login.ctp, empty login action, etc.), my Auth.User session key is
null as soon as I leave the login action (which is blank).
I have pr($session->read('Auth.User'); in my login.ctp view; after I
POST, it retrieves a record and seems t
it´s the helper from
http://svn2.assembla.com/svn/cakeopenflashchart/trunk/flash_chart.php
??
I think the problem is in this line: echo $flashChart->chart();
there is no chart function in the helper.
you have another problem in this line: echo $flashChart->begin();
you should not do an echo here
Your session is local and only applies to you, so the way you are
suggesting would not work.
You would have to save the session id to the database, and do a check
to see if it changed. If it changes then destroy the session.
--~--~-~--~~~---~--~~
You received this
You can use my file upload plugin, it comes bundled with validation
rules.
http://www.milesj.me/resources/script/uploader-plugin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group,
php profiler is your frind http://www.xdebug.org/docs/profiler
hop this helps. ros
On Jun 30, 3:22 pm, CMNAJS wrote:
> how can i perform benchmarking in cakephp. i had a library in
> codigniter to perform this but how should i do this in cakephp.
--~--~-~--~~~---~--~
Does anyone have any feedback or comments on this?
Much Appreciated.
G
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe f
Some more debug info can be found here:
http://guy.codepad.org/oCi8ZXEU
On Jul 1, 12:33 am, Guy wrote:
> I have a Thesaurus model that joins Synonym model over
> HasAndBelongsToMany and then
> I have a Property model that is joined by Synonym using hasOne, or at
> least should be joined.
> The p
That's what I though about. But are there any unforseen problems with
this approach?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To u
Hello to everyone,
I want to use Flash Chart Helper to show some charts in my
application.
I downloaded all necessary files and located them into the following
places:
/app/views/helpers/flash_chart.php
/app/views/helpers/flash.php
/app/vendors/flashchart/open-flash-chart.php
/app/vendors/flashc
I have a Thesaurus model that joins Synonym model over
HasAndBelongsToMany and then
I have a Property model that is joined by Synonym using hasOne, or at
least should be joined.
The problem is that even though I am casting
'hasOne' => array(
'Property' => array(
'className'
I would recommend setting it to -1 in your AppModel, and then use
Containable everywhere else.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroup
Is it recommended to set recursive = -1 application wide and only set
it to a higher value when it is really needed?
Are there any unforseen problems?
Thanks,
Markus
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"C
Check all of your models' associations. I think you probably have a
Site model listed somewhere.
On Tue, Jun 30, 2009 at 12:25 PM, Tony wrote:
>
> I'm running into a problem in getting this error:
> Error: Database table sites for model Site was not found.
>
> I don't have a model for Sites beca
I'm having some trouble using Containable with the following model
relationship.
Suppose an Airplane has two EngineTypes, with the relationships
defined like this:
class Airplane extends AppModel {
$belongsTo = array(
'EngineType' => array(
'className' => 'EngineType',
'foreig
On Tue, Jun 30, 2009 at 12:21 PM, Roman Brunnemann wrote:
> Hi,
>
> i have a table products with the following columns ( simplified )
>
> id
> shop_id
> name
>
> id and shop_id are the primary key.
CakePHP does not work with multi-column PKs. o you mean that shop_id
is the Foreign Key?
> Now I h
I do in this way:
http://trac.chipotle-software.com/karamelo/browser/trunk/app/controllers/users_controller.php
line 236:
public function avatar()
{
I check if fil was uploaded and if is a valid file, in this case an
image:
if ( $type != 'image/jpeg' && $type != 'image/pjpeg' && $type !=
'ima
Heya,
Ahh I figured out what the problem was...
I had
$data = $this->paginate('Property', $conditions, $fields, $theorder,
$resultsperpage, $page);
but the paginate function doesn't take those parameters...
I had to use:
$this->paginate = array(
'limit' => $resultsperpage,
'order'
This looks as a MTA issue (exim4, Postfix, Sendmail, etc). Look in the
MTA log and try send one email using console command and mail PHP
function (no CakePHP).
On Jun 29, 11:56 pm, si-mon wrote:
> Hi all...
>
> In my application, I need to send mails using smtp server. I have
> given all param
What Travis said :)
2009/6/30 Travis L
>
> Carlos is right, but he was a little implicit in his answer.
>
> The short answer is that the Agency belongsTo Seller means that each
> agency belongs to only one seller. It wants a seller_id field in the
> agency table (which is how the relationship i
I'm running into a problem in getting this error:
Error: Database table sites for model Site was not found.
I don't have a model for Sites because I don't even have a table for
it.
I have a Sites controller but in the $uses array it is using the model
"User".
Can anyone help me here.
--~--~---
Hi,
i have a table products with the following columns ( simplified )
id
shop_id
name
id and shop_id are the primary key.
Now I have some kind of importer and want to insert data preparing my
array like
$i['Product']['id'] = $id;
$i['Product']['shop_id'] = $shop_id;
$i['Product']['name'] = $n
Carlos is right, but he was a little implicit in his answer.
The short answer is that the Agency belongsTo Seller means that each
agency belongs to only one seller. It wants a seller_id field in the
agency table (which is how the relationship is linked).
>From what I understand, you want the Se
Mark,
Yeah it was strange but I figured out what the real problem was. Since
IE 6->7 likes to add padding to form elements at its own accord we had
the form nested like this "". Well IE 8 obviously
renders this differently though incorrect syntax that solution had
worked for us in ie 6+, firefox,
I wrote a web installer for a CakePHP CMS, but I took the quick way
out: I didn't actually write it as part of Cake, just as a standalone
install script. It took me all of 5 minutes this way. Here's what it
does:
- Asks the user for database parameters (dbname, user, pass)
- Copies a zip file fro
How about:
*Seller Model:
*
*belongsTo agency*
*
*
*Agency Model:
**hasMany seller*
*
*
Because Agency doesn't really belong to the seller... an agency has many
sellers (if I understand you correctly) and a seller belongs to an agency
2009/6/30 Bryan Paddock
>
> Hey JD,
>
> Ah... I'm confused a
Hey JD,
Ah... I'm confused as to why I would need a HABTM and a join table for
a fairly simple relationship.
example of the structure:
Seller.id
Seller.name
Seller.agency_id
etc
and
Agency.id
Agency.name
etc
Each seller can only belong to one agency.
Each agency can have any number of seller
You can use DebugKit to do benchmarking and various other debugging
related tasks.
http://thechaw.com/debug_kit
You can either clone the git repo or download a tar file from the
"versions" tab.
-Mark
On Jun 30, 8:22 am, CMNAJS wrote:
> how can i perform benchmarking in cakephp. i had a librar
So no forms made with the form helper are visible in IE8? Because I
have not had that issue.
-Mark
On Jun 29, 12:15 pm, j-rod wrote:
> Does anyone know if there is a change coming in the 1.2.x or 1.3.x
> versions that have different handling for the fieldset with $form->create
> than the disp
how can i perform benchmarking in cakephp. i had a library in
codigniter to perform this but how should i do this in cakephp.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, sen
Hi!
I know this behavior, but I'm currently not sure, if I maybe will
create the site so, that their isn't a list of specific languages, but
that everyone can wirte in every language he prefers.
So this won't work :-(
Best Regards, Sebastian
--~--~-~--~~~---~--~~
Hi Brian,
Thanks for your suggestion.
I have removed the username and password from the options, but the
second error message still exists:
550 bosauthsmtp16: No unauthenticated relaying permitted
On Jun 30, 2:42 pm, brian wrote:
> Try removing the username & password from the options.
>
> O
and don't call $this->Model->save()
;-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
c
hi
i use this one:
http://www.palivoda.eu/2008/04/i18n-in-cakephp-12-database-content-translation-part-2/
and it's very straight and simple to use.
to save all data in all languages i disable the behaviour for the save
action and everything works fine.
On Jun 28, 7:52 pm, floorball92
wrote:
>
?
what the heck?
just dont have any add/edit actions (methods in the controller)...
On 30 Jun., 11:36, Ernesto wrote:
> Hello
>
> i'm baking a read-only app. This app shouldn't save any kind of data.
>
> here's my bet
>
>
> class AppModel extends Model {
> function beforeSave ($optio
Try removing the username & password from the options.
On Tue, Jun 30, 2009 at 12:56 AM, si-mon wrote:
>
> Hi all...
>
> In my application, I need to send mails using smtp server. I have
> given all parameters but it is not working. Then I have tracked the
> errors in the email component. Then I g
Hello
i'm baking a read-only app. This app shouldn't save any kind of data.
here's my bet
is there any faster/cleaner/better/safer way?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to
like so?
if ($this->Profile->checkPublic ($profile_user_id))
{
// true
}
else
{
// false
}
On Mon, Jun 29, 2009 at 4:54 PM, Dave Maharaj ::
WidePixels.com wrote:
> I have a function that checks if a users profile is public or private
>
> function checkPublicAccess ($profile_user_id)
> {
Please show an example of your usage of the external attribute, so
that we better may be able to help you!
Also state which version of CakePHP you are using!
Enjoy,
John
On Jun 29, 2:04 pm, BoogieBug wrote:
> Hi,
>
> Please anyone suggest me any readings about the attribute 'external'
> in
But header() is instant, not timed.
On Jun 30, 1:58 am, "rich...@home" wrote:
> CakePHP is still PHP, header() works just fine :-)
>
> On Jun 29, 8:49 pm, "Techinfocomp.com" wrote:
>
> > header("refresh:5; url='pagetoredirect.php'");
>
> > we can use this if we want to redirect our page in 5 se
Um just put the var $validate in AppModel, thats it.
On Jun 29, 10:28 pm, "Dave Maharaj :: WidePixels.com"
wrote:
> Just not sure how to go about it...
>
> How do I define them in app_model then relate them to each model when
> needed.
>
> -Original Message-
> From: Miles J [mailto:mil
On Jun 30, 11:02 am, "rich...@home" wrote:
> I was thinking about this the other day.
>
> There are a few validation rules I use in pretty much every
> controller, such as 'required'. The following *should* work
> (untested):
>
> in AppModel:
>
> var $rule['required'] = array(
> "rule"=>arr
I was thinking about this the other day.
There are a few validation rules I use in pretty much every
controller, such as 'required'. The following *should* work
(untested):
in AppModel:
var $rule['required'] = array(
"rule"=>array("minLength", 1),
"message"=>"cannot be blank",
"requ
CakePHP is still PHP, header() works just fine :-)
On Jun 29, 8:49 pm, "Techinfocomp.com" wrote:
> header("refresh:5; url='pagetoredirect.php'");
>
> we can use this if we want to redirect our page in 5 second ,
>
> is there any way to redirect page in 5 second in cakephp ?
>
> if yes please let
Hi All,
I have done with file uploading functionality in cakephp. But i want
to apply validation (i.e. Please upload file.. ) . How to actieve
this. I have created $validate array in model.
waiting for reply. Please guide me.
--~--~-~--~~~---~--~~
You received th
Have a look at NeutrinoCMS. It is based on CakePHP and has a web
installer included.
http://dsi.vozibrale.com/articles/view/neutrinocms-0-1-beta-has-been-released
Happy baking,
Markus
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
It's Jounral controller.
On 29 Cze, 22:15, Vijay Kumbhar wrote:
> hello Raph,
>
> Can you please tell me is this Users controller function or Journal
> controllers function?
> Then i can provide you exact solution.
>
>
>
>
>
> On Tue, Jun 30, 2009 at 12:13 AM, Raph wrote:
>
> > Hello,
>
> > I
i want to call two action in same observe field and need to update two
div
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscrib
65 matches
Mail list logo