Hi Niraj,
That sounds like the cookies are switched off and the session-id is attached to
the Url, as they should be, when Cookies are disabled.
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Niraj
Shah
Gesendet: Dienstag, 28.
Hi Martin,
the patch solved the problem for this moment.
Thank you very much
Dakapo
On 27 Okt., 15:56, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi Dakapo,
This is a bug in RC3. Check this ticket for a temporary patch you can
implement if you need it:https://trac.cakephp.org/ticket/5579
still looking for a solution:
How can I use the Email Component from within a shell script _and_
pass on data to the template .ctp file?
thanks
Juergen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP
hello, i'm new to cakephp. in my app there's controller named sections
which renders pages and there're multiple controllers for special
actions (e.g. photos, shop, etc).
what i'm trying to do is to create whole pages structure with sections
controller and set some pages to be rendered by other
Thank you Gabriel, I am currently using the Beginning CakePHP book as
my tutorial to Cake and some of the code in the book and the source I
downloaded, does not work.
Hence all the questions, thank you so much once again.
Martin
On Oct 27, 3:53 pm, Gabriel Gilini [EMAIL PROTECTED] wrote:
Try
I have the same issue, even removing the domain settings.
When I restart IE, it looks like the cookie is gone. $this-
Cookie.read($key) return null. Not sure why this happened.
On Oct 23, 11:44 pm, . [EMAIL PROTECTED] wrote:
Is there a cake ticket for this? Or a possible fix?
On Thu, Oct
i figured it out.
it works if put the following lines in beforeFilter() of the
controller (don't put it in app_controller.php)
$this-Cookie-name = 'location';
$this-Cookie-time = 3600; // or '1 hour'
$this-Cookie-path = '/';
$this-Cookie-domain = 'localhost';
$this-Cookie-secure =
Hello,
I am trying to make groups of radio buttons for a hasAndBelongsToMany
relation.
The background: In my application I have following relations in for my
models:
User hasAndBelongsToMany Workshop
Workshop belongsTo Event (Event hasMany Workshop)
Event belongsTo EventDay (EventDay hasMany
and then again, how can i pass some parameters via url.
e.g. i have url like http://127.0.0.2/sections/view/14/autocard-3
this means that i call some controller with method autocard to get
record with id = 3.
if ($ctrlr != 'sections') {
(isset($action)) ? $action : $action = 'index';
I am not absolutely sure, but I think you will get a little better
performance (and structure) from calling requestAction in your view in
this case.
That is, you create elements to do the rendering and use requestAction
to get the data to the element. Not to render anything.
If your application
Passing parameters via URL:
/controller_name/action_name/parameter_1/parameter_2/
parameter_n
Parameters are added with slashes into the URL after the action name,
so if you have an action autocard in your controller: (let's assume it
is called PostsController)
function autocard ($param1,
Aaarrglll... I was so close... Anyway. It works. You are my hero!
Thank's dude.
Alex
On Oct 28, 4:20 am, ORCC [EMAIL PROTECTED] wrote:
Actually, it is (assuming your db configuration variable is called
default):
$conn = ConnectionManager::getInstance()
$conn-config-default['file'] =
Seems interesting. Problem is I do not have access to MySQL 5.1(beta).
I will have an eye on it though.
Alex
On Oct 27, 10:38 pm, teknoid [EMAIL PROTECTED] wrote:
If you are using MySQL you might consider
this:http://dev.mysql.com/tech-resources/articles/csv-storage-engine.html
On Oct 27,
yes i got that. but
http://127.0.0.2/sections/view/14/autocard/4
actually calls sections controller with method view and param 14,
autocard is method of cars controller and it's param should be 4 but i
can't get how to handle this via requestAction
On 28 окт, 14:09, zwobot [EMAIL PROTECTED]
I think this is related to ticket #4605: https://trac.cakephp.org/ticket/4605
On Oct 28, 8:38 am, zwobot [EMAIL PROTECTED] wrote:
Hello,
I am trying to make groups of radio buttons for a hasAndBelongsToMany
relation.
The background: In my application I have following relations in for my
It could be related, however the problem also was present when I had
values for my radio buttons...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
A post by Teknoid in this thread:
http://groups.google.com/group/cake-php/browse_thread/thread/0635f46f7b13c4a2#
... got me thinking.
Wouldn't it be nice to see some (very informal) accounts of actual
development times experienced using cakePHP?
Something like:
(app metrics, weeks)?
I was
Hi everyone,
Just a closing statement, I have to get this project out the door so I
went ahead and downgraded to the 1.1 framework. Thanks everyone for
your good advice.
Take care,
Mark
On Oct 24, 4:35 am, Mark [EMAIL PROTECTED] wrote:
Thanks, Brett, good to know.
It looks like both
This might help, look at the comments:
http://bakery.cakephp.org/articles/view/taking-advantage-of-the-pages-controller
Others approaches:
http://snook.ca/archives/cakephp/static_pages_cakephp12/
http://cakebaker.42dh.com/2008/06/18/an-alternative-approach-for-static-pages/
Try
?php echo $form-create('User', array('url' = array('action' =
'changePassword', 3))); ?
I'm sure you'll be able to make it works for others ids than 3 ;)
HTH,
- Dardo Sordi.
On Tue, Oct 28, 2008 at 12:30 AM, R. Davila [EMAIL PROTECTED] wrote:
Hi,
I have a controller function, and
This:
var $hasMany = array('OrderMoviments');
Should be:
var $hasMany = array('OrderMoviment');
or:
var $hasMany = array('OrderMoviments' = array('className' =
'OrderMoviment'));
On Mon, Oct 27, 2008 at 3:12 PM, carlos ferrandis [EMAIL PROTECTED] wrote:
I have posted another item using a
Hello, i have a DB Design like this
Table: Users (id, )
Table: Files (id,...)
Table files_users(id, user_id, voucher_id)
now i want to extend the files_users table with folowing fields:
uploaded and viewed (each a datetime)
how can i do this? didn't know where to start!
thanks for your
Are you sure this functionality shouldn't be in the model?
requestAction() is expensive and slow.
I'm not really sure what your action is doing, but consider this
approach instead:
$this-set('pish', $this-CurrentModel-RelatedModel-
getSomeData($withSomeParams));
or if the models are really
Hi all.
This is my situation.
I have a ready element to display a pagebar (paginator.ctp) who does
make use of $paginator object to display page links, accessing
$paginator-params().
On the other hand, I have a full-custom sql query to gather the rows
to display (select ... where ... limit
cake creates a model for the join table, which you can use just like
any other model.
take a look here, hopefully it'll help:
http://teknoid.wordpress.com/2008/07/03/notes-on-cakephp-habtm-part-1-the-basics/
On Oct 28, 7:11 am, nomex [EMAIL PROTECTED] wrote:
Hello, i have a DB Design like this
Why do you have to stick with a custom query?
What is it?
On Oct 28, 6:30 am, Paamayim [EMAIL PROTECTED] wrote:
Hi all.
This is my situation.
I have a ready element to display a pagebar (paginator.ctp) who does
make use of $paginator object to display page links, accessing
i have a HABTM products-alloweduses
this is the linking table.
CREATE TABLE IF NOT EXISTS `alloweduses_products` (
`id` int(10) unsigned NOT NULL auto_increment,
`allowedus_id` int(10) unsigned NOT NULL,
`product_id` int(10) unsigned NOT NULL,
`value` enum('yes','no','na') collate
Why do you have to stick with a custom query?
What is it?
Actually it's a want to rather than a have to.
By the way it's a query to browse photos with several filtering/
sorting/display/relationship options and it's not my priority (right
now, but later I'll do) to experiment with built-in
Hi Mario,
I have similar situations in my application and I guess there is no automatic
way to do it.
So what I do is get the data wth all fields and loop through them and create
another array with value = id and shown sring firstname + family name.
If there is a more elegant solution I
I believe that when you have extra fields in a linking table you are
also required to have a primary key. I am not sure if Cake ca handle a
composite pk in this case. I.e. making your unique key into a primary.
/Martin
On Oct 28, 1:53 pm, Alexandru [EMAIL PROTECTED] wrote:
i have a HABTM
Hi paamayim,
I found what villas posted on this list some weeks ago:
Well we don't know what hacks you've read, but here's a few things I
saw:
FAQ see section: How to retain search param in paging?
http://groups.google.com/group/cake-php/web/faq?hl=en
A few other links I found:
Thanks. But Chad's suggestion works fine for me.
I suggest you also try it. =)
On Oct 28, 6:29 am, Liebermann, Anja Carolin
[EMAIL PROTECTED] wrote:
Hi Mario,
I have similar situations in my application and I guess there is no automatic
way to do it.
So what I do is get the data wth all
Jacques,
The key to your problem is in your phrasing: everything works fine
until In my experience, if your database worked fine before you
tried console, you probably have a pathing problem. Cake has some
nice docs and if you want the long spiel on what to do, check out
Amen! That Hello World test are so useless... Teknoid, you are the
man!
Cheers,
mbavio
On Oct 27, 11:38 pm, teknoid [EMAIL PROTECTED] wrote:
Here's a test...
Create a file index.html in the web root of your server with the
content hello world.
Now take any framework and compare the speed
The way I do it based on http://c7y.phparch.com/c/entry/1/art,mvc_and_cake and
http://www.pseudocoder.com/archives/2008/10/24/cakephp-custom-find-types/
I add to my app_model.php file (as per Matt's article)
function find($type, $options = array()) {
$method = null;
if(is_string($type)) {
To keep your controllers skinny, the following approach (using pretty
much the same method does the trick):
http://teknoid.wordpress.com/2008/09/04/findlist-with-three-or-combined-fields/
Also, once you retrive the results and set them to a certain variable
in the controller, there is no need to
Thanks! How do I enable cookies? I'm not using any on my site so I'm
not sure why it's happening.
On Oct 28, 2:42 am, Liebermann, Anja Carolin
[EMAIL PROTECTED] wrote:
Hi Niraj,
That sounds like the cookies are switched off and the session-id is attached
to the Url, as they should be, when
... and the fastest and best to achieve it is to follow the
framework's methods.
But if you'd rather spend time trying to hack around the problem,
that's certainly up to you.
On Oct 28, 9:28 am, Paamayim [EMAIL PROTECTED] wrote:
Why do you have to stick with a custom query?
What is it?
I've seen this helper in thebakery (ExcelWriter)
http://bakery.cakephp.org/articles/view/generate-excel-spreadsheets-from-your-database
and I tried using it in my application.
However, when I tried to include the helper in my app with this line:
var $helpers = array('Html',
in rc2 all worked ok and i had to add some simple code in product
model to work
class AllowedusesProduct extends AppModel {
var $name = 'AllowedusesProduct';
var $useTable = 'alloweduses_products';
function beforeSave(){
$this-id = null;
As far as I remember 'id' (or primary key column) was always required
for the join table to work correctly.
Cake doesn't support compound keys, so to ensure uniqueness of the
records the primary column is required.
At any rate it is certainly not a bug.
P.S. Also, cake doesn't support 'enums'
no no in rc2 this was on manual
Recipe HABTM Tag = recipes_tags.recipe_id, recipes_tags.tag_id
BUT now they changed in manual and put this
Recipe HABTM Tag = id,recipes_tags.recipe_id, recipes_tags.tag_id
now i know for sure it is NOT a BUG.
TOPIC CLOSED
In the excell helper try adding
var $helpers = array();
this has worked in some other older helpers when I upgraded to cake
1.2 (note i have not used the excel helper at all)
Sam D
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
I don't know about the rest of you.
But I don't use a Framework for its amazingly fast code. If I wanted
really fast code I'd write it all myself specific to each project.
I use a framework to decrease the amount of time I have to spend
working on any one project.
I use a framework to reduce the
Because solving it now, is solving a problem that doesn't yet exist.
If you can not run/deploy your app then that is the first problem you
need to resolve.
And between now and the time you figure out the problem to run/deploy
your app this startup issue may never be the problem.
So solving it now
I just thought I'd let the cakePHP community know that cakePHP is
powering a site and a utility service at the Barack Obama website. I
built both of these.
Here's the site: http://radar.barackobama.com/
The utility service isn't anything to look at, but let's just say,
it's provided some much
HI everyone,
I adapted an sliding menu made in java script to be used in my
project, I got it to work with the framework, but just in some cases:
It can be called as component and displayed on a div on my layout in
normal use, but when I use ajax to update the content of the div and I
try to
Hi Niraj,
The user enables the cookies in his or her browser. If they aren't enabled the
session ID is attached.If you start a session the you hvae this problem.
Have a look here:
http://manual.cakephp.org/view/173/Sessions
Also do a bit background reading on Sessions:
Hi all,
I bought the cakephp video tutorials this morning, I still have not
received a digital download or a confirmation email after paying
through Paypal (received confirmation from paypal).
has anyone else bought the 'paid tutorials' from
phpvideotutorials.com? What happens next? Should I
Here's one very interesting case study:
http://bakery.cakephp.org/articles/view/how-i-built-a-web-2-0-dating-site-in-66-5-hours
On Oct 28, 6:03 am, keymaster [EMAIL PROTECTED] wrote:
A post by Teknoid in this
thread:http://groups.google.com/group/cake-php/browse_thread/thread/0635f46f...
Thanks Samuel. Your suggestion works perfectly.
Cheers!
On Oct 28, 8:07 am, Samuel DeVore [EMAIL PROTECTED] wrote:
In the excell helper try adding
var $helpers = array();
this has worked in some other older helpers when I upgraded to cake
1.2 (note i have not used the excel helper at
i don't look through.
how can i create an insert?
$this-data['File']['id'] = '99';
$this-data['User']['id'] = '66';
$this-data['FilesUser']['uploaded'] = '2008-06-06 06:06:20';
when i call $this-File-save($this-data);
it saves the user.id and the file.id in the Table, and leaves the
ofther
if you know both id's and just need to save one extra field, save
directly to the join table.
but i'm not willing to elaborate, if you aren't willing to spend some
time to learn.
On Oct 28, 11:55 am, nomex [EMAIL PROTECTED] wrote:
i don't look through.
how can i create an insert?
I've made a custom validation for a password field real simple
'pass_confirm' = array(
'samePass' = array('rule' =
array('samePass'),
'message' = 'Passwords
i'm just asking, there are somebody made ajax upload using prototype in
cakePHP?
i'm confusing about iframe in ajax upload, especially in CakePHP.
i see somebody post that http://tomas.epineer.se have good example using
prototype in Ajax Upload.
But, that site get down right now.
Perhaps
@teknoid
... and the fastest and best to achieve it is to follow the
framework's methods.
But if you'd rather spend time trying to hack around the problem,
that's certainly up to you.
Sure you're right, but atm I estimate the time to hack smaller than to
learn fw methods.
The query delegate
Hey, very cool. You should submit this to the Cookbook's In the
Wild page.
On Oct 28, 11:33 am, Walker Hamilton [EMAIL PROTECTED] wrote:
I just thought I'd let the cakePHP community know that cakePHP is
powering a site and a utility service at the Barack Obama website. I
built both of these.
the save direct into the DB worked fine. thx
On 28 Okt., 17:05, teknoid [EMAIL PROTECTED] wrote:
if you know both id's and just need to save one extra field, save
directly to the join table.
but i'm not willing to elaborate, if you aren't willing to spend some
time to learn.
On Oct 28,
This sort of thing is probably very difficult to measure. While
CakePHP does remove the plumbing work that you need to do on your
application, the core business logic in each app is unique, and
therefore difficult to compare on a timeline.
On Oct 28, 6:03 am, keymaster [EMAIL PROTECTED] wrote:
Very nice, got stuck on this page though
http://radar.barackobama.com/news_items/
The links would not work and could not go back to the home page.
On Oct 28, 4:43 pm, Nate [EMAIL PROTECTED] wrote:
Hey, very cool. You should submit this to the Cookbook's In the
Wild page.
On Oct 28, 11:33
FormHelper::input() automatically adds the error message unless you
tell it not too:
?php
echo $form-error('User.pass_confirm'); // No conditional needed,
won't display anything if there is no error
echo $form-input('pass_confirm', array(
'label' = 'Confirm Password',
'type' = 'password',
Is this a way to convince us Bakers to vote for Obama?
Nate wrote:
Hey, very cool. You should submit this to the Cookbook's In the
Wild page.
On Oct 28, 11:33 am, Walker Hamilton [EMAIL PROTECTED] wrote:
I just thought I'd let the cakePHP community know that cakePHP is
powering a site
On Tue, Oct 28, 2008 at 1:33 PM, Walker Hamilton [EMAIL PROTECTED]wrote:
I just thought I'd let the cakePHP community know that cakePHP is
powering a site and a utility service at the Barack Obama website. I
built both of these.
Here's the site: http://radar.barackobama.com/
The utility
This issue has been solved when i updated my Cake build.
On Oct 23, 6:13 pm, mwcbrent [EMAIL PROTECTED] wrote:
I am also experiencing this, it seems to get very partial data like
there may be a timeout??
On Aug 28, 4:05 am, Andrewk [EMAIL PROTECTED] wrote:
Hello,
I encounter the same
On Oct 27, 9:38 pm, teknoid [EMAIL PROTECTED] wrote:
Here's a test...
Create a file index.html in the web root of your server with the
content hello world.
Now take any framework and compare the speed it takes to render... the
index.html framework beats them all!
index.html framework is
I think it would be possible to write the core of the application as a
plugin, but distribute it inside of an application that provides the
front-end. This would serve the purpose of (a) appealing to a mass
market by making it a working application out of the box, (b)
providing a plugin for
I am using 1.2RC2 and the FIRST TIME IT WORKS...when I save the data
to the table using Ajax... 2nd time it fails unless I refresh the
page. So I get one update before I get the following error replaced
into my div:
Not Found
Error: The requested address '/golearns/saveprof' was not found on
Ok I've been searching trying to figure out my problem all day, with
no luck...
I have a table `channels` and a table `users`
Layout of `channels`:
id::int(11) PRIMARY KEY
title::varchar(255)
manager_id::int(11)
owner_id::int(11)
Layout of `users`:
id::int(11) PRIMARY KEY
name::varchar(100)
Very nice.
I imagine that you get some decent traffic there?
Any chance you could share some numbers, experiences and how cake is
holding up?
Maybe a little case study?
On Oct 28, 11:33 am, Walker Hamilton [EMAIL PROTECTED] wrote:
I just thought I'd let the cakePHP community know that cakePHP
I'd be interested in knowing what's powering the site's search
mechanism. ;) I'm sure anyone would be interested to know *anything*
about a high profile site.
On Oct 28, 3:44 pm, teknoid [EMAIL PROTECTED] wrote:
Very nice.
I imagine that you get some decent traffic there?
Any chance you
Quick question as to what would be the best Cake-y setup:
So I've got a list of Users who can either be Admin, Editors, or
simply Members.
Members can edit their own profiles, but Admin can also edit anyone's
profile (at this point Editors are just normal Members with special
status).
When it
Hello, I've been using CakePHP for a short while, and while trying to
implement a global search engine in my blog project using this
documentation and behaviour:
http://bakery.cakephp.org/articles/view/search-feature-to-cakephp-blog-example
...I've come to a problem. Global searches like
Hi,
this probably is a super easy question to answer, but somehow I'm
stuck.
In the Cookbook it says on
http://book.cakephp.org/view/559/URL-Considerations-for-Controller-Names
However, the convention is that your urls are lowercase and
underscored, therefore /red_apples/go_pick is the correct
it's true for the controller name, but not for the action name.
the docs should be updated ... ehh..
On Oct 28, 5:05 pm, tobi_one [EMAIL PROTECTED] wrote:
Hi,
this probably is a super easy question to answer, but somehow I'm
stuck.
In the Cookbook it says on
Oh wow awesome did not know that thanks!
On Oct 28, 9:51 am, grigri [EMAIL PROTECTED] wrote:
FormHelper::input() automatically adds the error message unless you
tell it not too:
?php
echo $form-error('User.pass_confirm'); // No conditional needed,
won't display anything if there is no
ok, many thanks for pointing this out!
On Oct 28, 10:24 pm, teknoid [EMAIL PROTECTED] wrote:
it's true for the controller name, but not for the action name.
the docs should be updated ... ehh..
On Oct 28, 5:05 pm, tobi_one [EMAIL PROTECTED] wrote:
Hi,
this probably is a super easy
I can see your argument but I do not think it applies to me. You must
realize my current project it simply a dummy project to learn the
CakePHP framework better and to define for myself a set of good
practices and methods for future projects when I might be working for
a client. Whether I ever
Hi,
As the app grows larger and larger I need a way to get a completely
rendered layout + view in one of my controller's methods. Can you
suggest a way to do that?
I'm working Rc3.
Regards,
Piotr
--~--~-~--~~~---~--~~
You received this message because you are
Hello,
I have just implemented pagination successfully but seem to have a
problem with expanding this.
Iĺl explain.
I have a controller that can do several kind of searches.
lets say it has the following functions:
searchByAAA
searchByBBB
searchByCCC
searchByDDD
each search is complicated and
Hey guys, sorry to bother you again, but i'm spending hours on this
problem and can't find the solution:
teknoid has this nice blog, where he describes his metode so save some
extra data to the HABTM table by binding them as hasMany.
Hi,
Sorry, but it didn't work.
This is what i did (following your example):
?php echo $form-create('User', array('url' = array('action' =
'changePassword', $form-value('User.id'; ?
And this was the generated html:
form id=UserEditForm method=post
Just an idea. I think that the Bakery's in a good position right now
(as the heart of the Cake community), and that the CakePHP knowledge
base and its usability would improve if discussions took place in a
regular web forum rather than on a mailing list. Thoughts?
You're using a POST method for your form, so you can retrieve the data
from $this-data on the controller side. Why would you want POST data
in a URL? That's what GET requests are for.
Thomas
On Oct 28, 6:43 pm, R. Davila [EMAIL PROTECTED] wrote:
Hi,
Sorry, but it didn't work.
This is what
Now that I think about it maybe its not that difficult.
The paginate function has a scope parameter which can be used to pass
sql condition.
I could try and pass some kind of hint in this array about the search
I want to preform.
h.
Should work.
Too late to check it now but will
I got the email with the download _immediately_ after paypal payment!
You should contact leighmac...
Cheers,
tobi_one
On Oct 28, 4:11 pm, gemmes [EMAIL PROTECTED] wrote:
Hi all,
I bought the cakephp video tutorials this morning, I still have not
received a digital download or a confirmation
Hi ,
I realize there is no one working on this google group.
Finally, I found the solution by myself. That is to use container,
which can be found by http://book.cakephp.org/view/474/Containable.
Also, in order to get the exactly result, I'd like to add more
reference key or (foreign key).
I think this google group is excellent due mainly to the power of
google searching.
Not sure about the Bakery being the 'heart' at present, but the forum
suggestion does seem popular judging by the number of posts on:
http://www.cakephpforum.net/
On Oct 28, 10:45 pm, 703designs [EMAIL
Hi all, I have been struggling to find the root of a problem i am
having, and i think i have just found it. It appears that when i use
the $uses variable in my controller, the tables are no longer
associated...
As an example,
League belongsTo User
$this-League-read(null, $id)
returns:
On Tue, Oct 28, 2008 at 8:45 PM, 703designs [EMAIL PROTECTED] wrote:
Just an idea. I think that the Bakery's in a good position right now
(as the heart of the Cake community), and that the CakePHP knowledge
base and its usability would improve if discussions took place in a
regular web forum
Hi Thomas,
The POST method is generated by $form-create()
The GET method will put the variables in the URL (visible to the user), so
that's not an option.
$form-create() works for the add() and edit() scaffolded functions without
problems.
The problem is not the generated HTML, but when
Hi,
Is there an elegant way to completely l6e (localize) the InputHelper's
Date widget? I know about being able to translate month names via .po
files. But I want to built a date input in Japanese, and the 100%
correct way would be like this:
2008年10月29日, i.e. inserting 年, 月 and 日 either
91 matches
Mail list logo