I'm still seeing this same behavior with the latest code but in a
slightly different context.
I'm using Cakephp 2.1 as a backend to an Android app.
When I post an array from the Android app cake gives me all duplicated
values in $this-request-data as Jeremy explained above.
However if I post an
My webroot folder in my Theme folder had a capital W -- go figure.
On Sat, Oct 15, 2011 at 12:08 AM, Theaxiom travis.rowl...@gmail.com wrote:
I am experiencing this same exact issue, what did you do to resolve it?
--
Our newest site for the community: CakePHP Video Tutorials
Thanks!
Again, sort of off topic, but if anyone knows of a good cakephp book,
there are a few on amazon
http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dapsfield-keywords=cakephpx=0y=0
but they have mixed reviews, any opinions?
Thanks again,
Travis
On Mar 15, 6:53 pm, Alan Asher
it did when I put in find('list') it
populates every field into the drop down which is definitely not what
I want.
*Note, for now I am using a hard coded date for testing.
Also, I was wondering if anyone knew of a good cakephp book?
Thanks
Travis Marble
Check out the new CakePHP Questions site
Travis Marble
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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
I don't see it as making the controller fat, really. It's where
this call belongs. I usually think of fat controllers as doing some
of the models' heavy lifting for them.
But in this case, putting the code in your controller is clearly the
right thing to do, by Cake's MVC principles.
Don't
I have to put my vote in for Coda. Simplicity.
On Sep 10, 4:05 am, jason m ippatsu.ya...@gmail.com wrote:
I have used textmate, coda, eclipse, netbeans, and aptana on Mac. For
me,
textmate has worked the best with the cakephp bundle. Although it is
not free,
I feel that I am the most
Just testing this, and it seems to work. Try:
?php echo $form-input('name',array('type' = 'textarea',
'label'='name','after'='Must be 6 character')); ?
Just add the type = textarea and it worked OK for me.
On Aug 18, 2:56 am, arif hossen arifhossen2...@gmail.com wrote:
Dear all,
How i can
Taff,
Remember if you want to use Tag::find using conditions from the Dolist
table, you can use the Containable behavior. It's kind of like being
able to set recursion levels with a high degree of precision, as well.
On Aug 5, 10:25 am, Taff taff.law...@googlemail.com wrote:
You are the man
Second the recc for using cron. I used a tutorial I found at
http://blogchuck.com/?p=22
You will need to define the actions you want performed in a controller
file, then add a crontab entry to call it. Your crontab entry will
look something like:
0 0 0 0 0 /usr/bin/php
With any shared hosting setup, you're going to notice a pretty
significant amount of latency. Cake isn't fast, and shared hosting
isn't great. Even moving up to a VPS doesn't improve it that much --
I've got 1.2s page load times, unfortunately.
On Aug 5, 3:44 am, Vijay Kumbhar
plural/camel case conventions
any ideas?
Travis
--~--~-~--~~~---~--~~
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
plural/camel case conventions
any ideas?
Travis
On Jul 19, 2:25 pm, Carlos Lavin carloslavi...@gmail.com wrote:
Cake expects it to be called field_id... although im not sure that is whats
creating the problem.. give it a shot and let us know
2009/7/19 Travis marbletra...@gmail.com
fields_id is what the FK is called in the table,
I have a table called fields, when I created the foreign key in
irrigation_events I called it fields_id.
Travis
On Jul 16, 1:30 pm, Piotr Kilczuk kilc...@gmail.com wrote:
Hello,
I have successfully set up other belongsto relationships
If you have httpd.conf access, I'd put the directive in there.
Alias /pma /var/www/html/phpMyAdmin
Directory /var/www/html/phpMyAdmin
...
/Directory
On Jul 15, 9:11 am, saavedrajj saavedr...@gmail.com wrote:
it works with this code
IfModule mod_rewrite.c
RewriteEngine on
rewritecond
Anything on your system to suggest it's overloaded and the messages
are getting silently dropped?
If you increase Cake's debug level you should see some output which
could help you out, it'll give you a full stack trace I believe.
On Jul 15, 1:17 pm, DigitalDude e.blumsten...@googlemail.com
cbhan - I think that Cake will only store data into the
Controller::data attribute if the corresponding HTML entity is named
according to Cake convention (e.g. data[Field]). Without that data
identifier, I don't think you'll be able to access the facebook POST'd
values in the controller in that
I have successfully set up other belongsto relationships in this
program but one does not work
the model code is:
class IrrigationEvent extends AppModel
{
var $name = 'IrrigationEvent';
var $useTable = 'irrigation_events';
var $belongsTo = array(
'Field' = array(
There's the small overhead of linking that behavior to those models,
but I suspect it's so minimal as to be not noticed.
BTW, I just figured out the Containable behavior, and I love it!
Should be more prominent in the Cake book.
On Jul 14, 12:38 am, Miles J mileswjohn...@gmail.com wrote:
No
I've got PMA installed on all my systems, even those with Cake. I use
the httpd.conf to specify an alias in Apache to redirect the request
to a different part of the filesystem. Works great everywhere I've
done it.
On Jul 14, 12:52 am, Dr. Loboto drlob...@gmail.com wrote:
Or install them into
name.
Travis
On Jul 3, 10:13 pm, Paul s...@webprogression.co.nz wrote:
Sorry last post sent in error
So you have your view with some fields in it, including your forign key -
here assuming farm_id
views/fields/add.ctp
?php echo $form-create('Field')?
?php echo $form-input('name')?
?php
I am new to cakePHP and am in the process of learning to use it.
I am wondering how I can have a form element populated with elements
from a different table than the model, for example
I am wanting to write a farm manager using cakePHP as the framework,
if I have fields that belong to farms,
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
I'm not a huge fan of the cake console stuff, for various reasons.
However, you can go to http://blogchuck.com/?p=22 and check out the
instructions for setting up a cron job in cake without using curl.
One note, however, is that you must have command line access to set
this up (and php has to be
Have you tried using App::import('Controller', 'ControllerName') to
get an instance of a new controller? You'd then have to initialize it
with the bootstrap stuff that Cake automatically does for you
(assuming you want the object attributes set correctly). From there I
would guess that you
.
Normally I don't suggest premature optimization, but I've found that
primary keys based on non-INT data types can be really slow.
HTH,
Travis
On Jun 8, 9:39 am, iFeghali igor.fegh...@gmail.com wrote:
ok this is similar to that question:
http://groups.google.com/group/cake-php/browse_thread/thread
Agreed with Brian. It may seem like the table is getting huge (which
it eventually will). But you're just keeping record of 2-3 INT data
types (depending on how you do the key), so much of it will fit into
memory anyhow. I wouldn't worry too much about join tables being a
source of slowness
Check out the Wizard component for sure. Otherwise, use a helper or
element that will display the data differently -- if the POST'd values
are present, it will display it as static, non-editable. If they
aren't there, it will display them as input fields.
On Jun 8, 9:13 am, brian
Upvote for this post.
The ACL component was really neat, until I tried to actually use it.
It was more difficult to try and use it than to just roll my own.
Auth Component works great, I wish ACL worked great with Auth.
Also ++ to commenters who asked for more real-world tutorials. The
manual
Thanks, I'll give that a try!
On May 21, 12:03 am, Jonathan Snook [EMAIL PROTECTED]
wrote:
On Wed, May 21, 2008 at 12:49 AM, Travis [EMAIL PROTECTED] wrote:
Yes, I would like to display the data differently depending on the
attributes passed in.
Then set up three different routes
I was reading through the Form helper for 1.2 and couldn't find
anything that allowed you to change the field name. Here is the code
I'm using:
code
echo $form-create('Form', array('action' = $form_id));
foreach($form_data['Attribute'] as $attribute) {
echo
Is there a way to set the value attribute of a hidden in field in the
Form helper? Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
I am trying to create a controller that acts similar to that of which
you find commonly on blogs. I want the user to be able to type
http://www.example.com/2008/05/20/, http://www.example.com/2008/05/,
and http://www.example.com/2008/ to be directed to an archive for the
current day, month, and
Yes, I would like to display the data differently depending on the
attributes passed in.
On May 20, 6:16 pm, Jonathan Snook [EMAIL PROTECTED] wrote:
On Tue, May 20, 2008 at 7:07 PM, Travis [EMAIL PROTECTED] wrote:
I am trying to create a controller that acts similar to that of which
you
Using Cake 1.2 tried current stable release and nightly build
03-30-2008 .
I have a model Slideshow that has many Photos.
I have a view for creating a slideshow with multiple photos:
div class=foto
h2New Postcard/h2
?php echo $form-create('Slideshow', array('type' =
'file','action' =
for the support.
-Travis
--~--~-~--~~~---~--~~
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 PROTECTED
Hi,
Does anyone know a way to generate a Micosoft Word document from a
Word template and output that document as the view?
Thanks,
Travis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post
the appropriate headers and then sending HTML will be enough.
Similarly saving Word Template as HTML can also help...
Word will open html without any problems.
On Jan 31, 2008 9:21 PM, Travis [EMAIL PROTECTED] wrote:
Hi,
Does anyone know a way to generate a Micosoft Word document from
documents with cake, and what would be the
appropriate direction to proceed in.
Forgive me for bothering everyone.
Thanks,
Travis
On Jan 31, 10:11 am, Ron Chaplin [EMAIL PROTECTED] wrote:
Hey Travis,
I know that this might not be much of use to you or anyone, but I feel
the need to say
bump ... :D
On Jan 11, 11:44 am, Travis [EMAIL PROTECTED] wrote:
Hi All,
I need to create a multiselect box for a HABTM relationship. I have 5
tables customers, customers_employees, employees,
employees_transactions, and transactions.
1 transaction has many employees.
1 Employee Belongs
Hi All,
I need to create a multiselect box for a HABTM relationship. I have 5
tables customers, customers_employees, employees,
employees_transactions, and transactions.
1 transaction has many employees.
1 Employee Belongs to 1 customer.
1 Customer have many transactions.
1 Customer has many
Hi,
I was wondering if anyone had any ideas on how to implement this idea
in the most effective way. I'm working on a CMS right now for private
use that is going to need to power multiple domains (www.site1.com,
www.site2.com, www.site3.com, etc)
Each site needs its own database, and each
Thanks for all the ideas, but I think everyone misunderstood my
question.
I only want 1 app directory, running anywhere from 2 - 1000 websites.
That way if a bug is found in lets say a blogController, one source
code update is made, and all blogs are updated.
On Jan 10, 3:28 pm, Robby
bump :)
On Jan 6, 10:31 pm, Travis [EMAIL PROTECTED] wrote:
Hey everyone,
I'm trying to generate a list of employees and in that list I want to
show the customer which that employee belongs to. In my db I have an
employees table and a customers table and each employee has a
customer_id
Thanks Chris, but the problem is that when I do a findAll() or a
pagninate() I'm not getting data from both tables even though I have
set my recursive var and my associations. Any suggestions?
On Jan 7, 9:13 am, Chris Hartjes [EMAIL PROTECTED] wrote:
On Jan 6, 2008 11:31 PM, Travis [EMAIL
by default.
If you're still not convinced then just write a small sql query and
call it like:
$data = $this-Customer-query($sql);
Adam
On Jan 7, 11:27 pm, Travis [EMAIL PROTECTED] wrote:
bump :)
On Jan 6, 10:31 pm, Travis [EMAIL PROTECTED] wrote:
Hey everyone,
I'm trying to generate
that associations can be turned off, or if you see me
following some non-standard convention.
And I am on version 1.2.6311 beta.
Thanks
Travis
class Customer extends AppModel {
var $name = 'Customer';
var $hasMany= 'Employee';
var $recursive = 1;
}
class
that lists all customers ,so that in the Employee/index file I can
generate a dropdown to select the customer to sort the data by.
I haven't been able to find any examples of something like this
anywhere I have looked.
Any help would be appreciated.
Travis
Hey everyone,
I'm trying to style a form a certain way and need to be able to style
a label, so I am using the following code
?php echo $form-label('Employee/name','Employee Name',
array('class'='prefield'));?
?php echo $form-input('Employee/name',array('label'));?
The problem is, is that the
that worked. thanks alot!
On Jan 6, 1:39 pm, Robby Anderson [EMAIL PROTECTED] wrote:
Try adding the false value to the label key in the second parameter,
like this:
?php echo $form-input('Employee/name',array('label' = false));?
--~--~-~--~~~---~--~~
You
you want to access Customer model in
employees_controller ?
just add :
var $uses = array('Customer');
or
var $uses = array('Employee', 'Customer');
On Jan 7, 2:00 am, Travis [EMAIL PROTECTED] wrote:
Hi everyone,
I have two models, Employee and Customer. Employee belongsTo
Customer
Hey gwoo, you are right. I had commented out an association in my
customer_model, when I uncommented it and took out the var $uses, it
still worked.
thanks for the help
On Jan 6, 5:53 pm, gwoo [EMAIL PROTECTED] wrote:
No you do not need var $uses if you have associations. $this-Employee-
Hey everyone,
I'm trying to generate a list of employees and in that list I want to
show the customer which that employee belongs to. In my db I have an
employees table and a customers table and each employee has a
customer_id field. The problem is, I want to show the customer.name
field, not
HI,
I'm trying to update a record through the controller action customers/
edit/id_number. This loads a form prepopulated with the customer data
associated with id_number. The form posts to customers/edit.
The id_number field is an auto increment integer that is the primary
key on the table.
I tried that, but it didn't resolve the problem.
On Jan 5, 6:59 pm, Robby Anderson [EMAIL PROTECTED] wrote:
In your model declaration, did you use the primaryKey property?
var $primaryKey = 'id_number';
On Jan 5, 5:51 pm, Travis [EMAIL PROTECTED] wrote:
HI,
I'm trying to update
PM, Travis [EMAIL PROTECTED] wrote:
When I use $this-Customer-Save() this is the message I recieve ...
Query: INSERT INTO `customers`
(`name`,`street`,`city`,`state`,`zip`,`phone`,`id`,`modified`,`created`)
VALUES
('thomas','','Lafayette','LA','70517','337-555-','0','2008-01-05
17
to be passed, such as
test.html?height=300width=300. How do I pass those parameters to a
link while using cake?
Any help would be greatly appreciated.
Thanks,
Travis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
$html-link('Link Title','test.html?
height=300width=300'); ?
--
Marc Grabanskihttp://marcgrabanski.com
On Jan 4, 9:40 am, Travis [EMAIL PROTECTED] wrote:
Hi everyone,
I'm new to the group here. I have been out of development since 2004,
so I'm just getting back into the swing
Ok,
So this is completely weird ... anyone ever seen this before, maybe
I'm doing something wrong...
whenever I go to mydomain.com/employees/index/ the layout that I have
selected in the index function of my controller loads, but when I
click a pagination link like
On Oct 31, 10:09 am, keymaster [EMAIL PROTECTED] wrote:
For those trivia lovers out there...
Here is a simple Lin*x command I found on the web and tweaked for
cake, to count the number of lines of cake code you've written.
Run it in the app directory.
It lists all code files, the number
.
--
Travis
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options
On Oct 9, 3:28 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Cake creates a new session. Check PHP session_name('identifier')
function.
Check config/core.php file. You will find CAKE_SESSION_STRING
constant. Copy the parameter into application script in myfolder
like this:
I am trying to gather profile information in my users controller by
using this function:
function profile($username) {
$this-User-username = $username;
$this-set('user', $this-User-read());
}
However, when I visit http://localhost/users/profile/
username_goes_here the query
I'm interested in this as well, any suggestions? Thanks!
On Jul 19, 11:51 pm, Martin Schapendonk [EMAIL PROTECTED]
wrote:
Hi,
What would be a nice way to callstoredproceduresand capture their
output/return value from CakePHP?
Regards,
Martin
--
Martin Schapendonk, [EMAIL PROTECTED]
As far as I'm aware there aren't existing helpers/components that
would accomplish this.
It would require at least a helper and a component to make it work
smoothly -- it shouldn't be too hard to accomplish.
Do share in a bakery article if you take this path.
--
Travis
I was wondering if there were any CakePHP based components that would
allow me to build dynamic data entry views based on values in a
database such that I can enter data and store it in a generic table.
For example, if I have a table 'Attributes' that has an attribute
name, and the type of
, but if I'm getting
the right impression the
ConfComponent:http://bakery.cakephp.org/articles/view/confcomponent-db-based-config...
is what you're looking for. I use it extensively, its a great
database based configuration tool.
On Aug 23, 10:31 am, Travis [EMAIL PROTECTED] wrote:
I was wondering
mean to have the
core support for fields in such a format:
data[Model][?= $i; ?][id]
I don't think it's trivial. I wonder if the devs consider this too
edge case, it would surely be slick.
--
Travis
--~--~-~--~~~---~--~~
You received this message because you
On Jul 12, 6:07 pm, Geoff Ford [EMAIL PROTECTED] wrote:
I would use a beforeFilter and test for $this-params['admin'];
function beforeFilter(){
if (isset($this-params['admin'])) {
$this-layout = 'admin_layout_name';
}
}
Geoff
--http://lemoncake.wordpress.com
Yeah, that's
On Jul 12, 3:17 pm, Mech7 [EMAIL PROTECTED] wrote:
Yes but is it possible to do this for all admin pages?
On Jul 12, 8:45 pm, Michael Augustyniak [EMAIL PROTECTED]
wrote:
Mech7 wrote:
I am using the /admin for tasks like editing / adding / deleting only
I am wondering is it possible
Migurski's json class.
See this forum post for a howto:
http://extjs.com/forum/showthread.php?t=2362
--
Travis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
This is not CakePHP specific:
see http://www.google.com/search?q=+open_basedir+restriction
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
updates much more simple.
--
Travis
--~--~-~--~~~---~--~~
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
for the simple stuff but I think if you treated all
the fields in the same manner you could gain some simplicity.
Anyhow, it seems like most of this could be accomplished with a
component and a small method in a controller -- without core
modification.
--
Travis
);
}
}
}
return $results;
}
(in the bin paste as well)
Not very clean but as far as I can tell it's what you have to do
(aside from putting all the logic in AppModel or in your model
directly).
Comments encouraged.
--
Travis
addition (or
method addition) that'd rock.
6. I'd add in permission checks -- getting it to the state of drop in
and hit the browser would be pretty slick.
Great stuff!
Get a few kinks out, an little install process and you've got a pretty
sweet app.
--
Travis
.'),
),
);
Rule can be an array as to pass parameters to the method (i'm bet
mariano is covering all this though).
There doesn't appear to be good control of ordering yet it just uses
the last one in -- 'last' isn't being used as far as I can tell.
Pretty slick nonetheless.
Regards,
Travis
.x pagination information while 1.2 has pagination
integrated -- if you bake a default controller and views you can see
an example of the 1.2 pagination in action.
--
Travis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
directory. You can either re-implement a different pages controller,
copy and modify the existing one, or name your controller something
else.
Happy Baking,
--
Travis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
of the main methods
(TextileThis and TextileRestricted).
--
Travis
--~--~-~--~~~---~--~~
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
but discarding it
because of tone isn't cool.
Why not, yeah it's a workflow problem, you might check trac for a
feature ticket and create one if it doesn't exit or the like.
Just kind of disappointed at the tone of the response I guess =/
--
Travis
--~--~-~--~~~---~--~~
You
data.
You may have a compelling reason but you would be able to simplify
your current models sustaintially if you follow convention for table
names and relationship field names.
--
Travis
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Wouldn't it be better to preload the data into JSON (or similar) than
to make an additional round trip to the server for every change of a
combo box?
For small sets of data, yeah. Generating a new request allows for
greater expansion though.
--
Travis
an optional __show_call=true parameter to var_dump
$parameters before the call.
I put some initial doc here (feel free to email me with
additions/changes to the article):
http://bakery.cakephp.org/articles/view/138
Travis
--~--~-~--~~~---~--~~
You received this message
.
http://cakeforge.org/snippet/download.php?type=snippetid=257
Travis
--~--~-~--~~~---~--~~
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
On 11/2/06, Travis Cline [EMAIL PROTECTED] wrote:
Whoops!
Whoops again.
A couple problems/enhancements.
If there are parameters after the array parameter that are passed in
the order in the actual call is off.
Hopefully you get the idea, feel free to up a new version seb.
It might make sense
approach the $html-css issue, just require rel be
passed if you want additional parameters?
Travis
--~--~-~--~~~---~--~~
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
)
Thoughts?
Travis
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options
88 matches
Mail list logo