Yes, I would say most people use the controller/action/params type
urls.
Most people's thoughts about passing the action through a POST instead
of a GET to make it more secure are moot. You can fake (and modify
variables) in a POST request just as easy as you can with GET.
Your post indicates
Hi! Very interested. Where could we see the component for FX.php to be
able to integrate cakephp+fm.
I am also wondering if FX.php will ever work for FM 9 and 10.
Louie
On Apr 12 2006, 7:48 pm, bdb amfm...@gmail.com wrote:
I have hacked together a version of The Cake Blog Tutorial from
Hi _k10_,
To add more to Brians method, it would be a good practise to set the
model instance to a variable (who's name is the name of the Model) if
you plan to use the model more than once.
Actually, that's incorrect. By using ClassRegistry, cake checks for
both the required file and
Hi there,
My CakePHP app is working fine in firefox. In ie7, though, no css or
pictures display, suggesting that Cake is looking in the wrong place
for these files, and links appear without localhost -
http:///appname/controller/action rather than
http://localhost/appname/controller/action.
Hi
I have this problem .
I do a save operation on a model inside an action of my controller.
If i do a read operation on the model of the ID object that I do to
save later I get that the $this-data contains the data that I have
read with read operation.
I have made some errors or there are
i'm trying to... but i'm not a very skilled programmer T_T
On 12 Gen, 18:38, brian bally.z...@gmail.com wrote:
I seem to recall seeing that behavior quite some time ago. You could
modify it to bring it up to 1.2 level and add the desired
functionality.
On Mon, Jan 12, 2009 at 11:07 AM,
Hey,
Does anyone know how to sort a table based on any collumn a user has
selected and also paginate that table. I did it once before, im in a
bit of a hurry so i cant look right now.
Thanks,
Forrestgump
--~--~-~--~~~---~--~~
You received this message because you
strtoupper was just an example.
anyway...
imho even a simple format like this should be handled by the model
On 12 Gen, 21:56, Miles J mileswjohn...@gmail.com wrote:
Minor things like that could also be done in the view :p
--~--~-~--~~~---~--~~
You received
that worked. thank you very much
On 12 Gen, 19:42, Webweave webwe...@gmail.com wrote:
You just need to set the recursive level to fetch the data that is not
directly related. See:http://book.cakephp.org/view/439/recursive
Set it before you do your find, or in the individual action.
On Jan
In my add view when i kept all the fields blank and click on submit
button it will display a message record added successfully instead of
that i wan't to display my validation message and page should not be
redirect to other page
how to do this here is my add function code
If you don't like the default {controller/action/params} shape then CakePHP
accepts your own custome URLs by using URL Routes, check this out Custom
URLs from the Site
Roothttp://bakery.cakephp.org/articles/view/custom-urls-from-the-site-root
.
Moreover, having controller name, action, and params
You're mixing and matching cake ORM and raw mysql functions - not a
good idea. You're just _asking_ for trouble with that.
Just use bake to get a standard cakey add method, then add in your
bits and bobs. Most of the code in your controller would be better off
in the model, imho.
Also, long
Hi Bakers,
These are my model relations, in general terms:
[ModelA] belongsTo [ModelB] belongsTo [ModelC] belongsTo [ModelD]
I'm calling ModelA-contain(...)
In my contain I'm successfully retrieving fields all the way down to
Model D.
However, when it comes to ordering, I get errors when
You could try looking at the linkable behavior:
http://rafaelbandeira3.wordpress.com/2008/11/16/linkable-behavior-taking-it-easy-in-your-db/
It looks promising, but I haven't used it (yet) and can't guarantee it
will handle your use case.
If not, you could re-bind manually to the deeper
I am using this:
$this-Swiftmailer-smtpType = 'tls';
$this-Swiftmailer-smtpHost = 'smtp.gmail.com';
$this-Swiftmailer-smtpPort = 465;
$this-Swiftmailer-smtpUsername = 'u...@riverstarcincy.com';
$this-Swiftmailer-smtpPassword = 'pass';
$this-SwiftMailer-from = 't...@test.com';
here is what I am using
$this-Swiftmailer-smtpType = 'tls';
$this-Swiftmailer-smtpHost = 'smtp.gmail.com';
$this-Swiftmailer-smtpPort = 465;
$this-Swiftmailer-smtpUsername = 'usern...@riverstarcincy.com';
$this-Swiftmailer-smtpPassword = 'password';
$this-SwiftMailer-from = 't...@test.com';
This works for me (in the controller):
$old_output = $this-output;
$this-output = '';
$this-render(ACTION, LAYOUT);
$new_output = $this-output;
On Jan 9, 7:40 pm, mmm min...@gmail.com wrote:
hi group,
i wounder how can i render content to buffer, what i have so far is:
ob_start();
I am using this:
$this-Swiftmailer-smtpType = 'tls';
$this-Swiftmailer-smtpHost = 'smtp.gmail.com';
$this-Swiftmailer-smtpPort = 465;
$this-Swiftmailer-smtpUsername = 'u...@riverstarcincy.com';
$this-Swiftmailer-smtpPassword = 'pass';
$this-SwiftMailer-from = 't...@test.com';
I am using this:
$this-Swiftmailer-smtpType = 'tls';
$this-Swiftmailer-smtpHost = 'smtp.gmail.com';
$this-Swiftmailer-smtpPort = 465;
$this-Swiftmailer-smtpUsername = 'u...@riverstarcincy.com';
$this-Swiftmailer-smtpPassword = 'pass';
$this-SwiftMailer-from = 't...@test.com';
I am using the following route
Router::connect('/:language/:controller/:action/*',
array (),
array ();
as the only rule in the routes.php and still
$url = Router::url(array
('controller'='example','action'='index','language'='en','show_all'='true'));
yields
I am using this:
$this-Swiftmailer-smtpType = 'tls';
$this-Swiftmailer-smtpHost = 'smtp.gmail.com';
$this-Swiftmailer-smtpPort = 465;
$this-Swiftmailer-smtpUsername = 'u...@riverstarcincy.com';
$this-Swiftmailer-smtpPassword = 'pass';
$this-SwiftMailer-from = 't...@test.com';
I am using this
$this-Swiftmailer-smtpType = 'tls';
$this-Swiftmailer-smtpHost = 'smtp.gmail.com';
$this-Swiftmailer-smtpPort = 465;
$this-Swiftmailer-smtpUsername = 'usern...@riverstarcincy.com';
$this-Swiftmailer-smtpPassword = 'passwordhere';
$this-SwiftMailer-from =
Hi,
I am having a fair amount of success with ModalBox after playing
around with it for a couple of days.
http://www.wildbit.com/labs/modalbox/
My reason for wanting to use modal windows in my app is that the
following models can all have unlimited Telephone Numbers
Organisation, Person,
Router::connectNamed(array('show_all'));
--~--~-~--~~~---~--~~
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
It doesn't redirect to a controller if that's what you mean. It does
nothing special, I see my home.ctp.
The session is destroyed when I simply go to index.php with no data
in the url.
The fix in the linjk in my second post fixes it, but I'd like to know
a safer way to fix it. Did i discover
I'm trying to get my plugins schema into SVN. Is there a way to
accomplish this?
Can one generate schema files for plugins?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group,
I need use mysql functions at some model. Ex. i have a table with 3
fields, id (int), date_access (datetime), and checksum (varchar)...
but, i need to apply MD5 (mysql) to field checksum when add a new row.
--~--~-~--~~~---~--~~
You received this message because
Hi,
I'm trying to do some beforesave massaging in my model but it fails
with the error messages:
Notice (8): Undefined index: minor_criteria [APP/models/
arvc_profile.php, line 32]
Notice (8): Undefined index: major_criteria [APP/models/
arvc_profile.php, line 33]
Notice (8): Undefined index:
I'm sorry, I guess I wasn't very clear. I'm trying to run the test
case and fixtures that were supplied in a patch that has since been
applied. Since I'm still running RC3 on a virtualhost on my dev
server, I figured it would be good to run the test and look at the
code to see how it worked.
You wrote this:
$this-data['ArvcProfile']['minor_criteria'] == $minor;
$this-data['ArvcProfile']['major_criteria'] ==
$major;
if ($major 1 || ($major == 1 $minor 1) ||
($minor 3)) {
$this-data['ArvcProfile']
It's not clear to me what you mean. Can you post an example of that
part of your controller action?
On Tue, Jan 13, 2009 at 6:21 AM, marco.rizze...@gmail.com
marco.rizze...@gmail.com wrote:
Hi
I have this problem .
I do a save operation on a model inside an action of my controller.
If i do
class SomeModel extends AppModel {
function beforeSave($options = array()) {
if (isset($this-data[$this-alias]['some_field'])) {
$db = ConnectionManager::getDataSource($this-useDbConfig);
$this-set('checksum', $db-expression('MD5(some_field)'));
}
}
return
Hello Paul,
this one has helped me a lot in using modalbox:
http://nerdnotes.org/2008/02/28/combining-modalbox-cakephp/
On Tue, Jan 13, 2009 at 4:45 PM, WebbedIT p...@webbedit.co.uk wrote:
Hi,
I am having a fair amount of success with ModalBox after playing
around with it for a couple of
This still may be the thing I was thinking of. Though the FROM is not
u...@riverstarcincy.com, the SMTPUsername is. As you're using google's
Apps engine, I suspect that the message is merely being hidden for
that account. At least with gMail and googleGroups (like this one), if
I send a message,
Siegfried,
I've used that very useful article to get my head around the basics
and I have then move on some distance since then.
That article only deals with opening a form and submitting it showing
any error then having it close if no errors. What I have created is a
whole controller's worth
I would love to see what you have done and your code. I am trying to expand
my use of the modal box but not having much luck. Looking forward to it.
Chad
On Tue, Jan 13, 2009 at 12:25 PM, WebbedIT p...@webbedit.co.uk wrote:
Siegfried,
I've used that very useful article to get my head
Would love to share what I have learnt, but would prefer to do so
after I have a fully working example. I will also provide a demo of
it in use the way I am using it as it is quite neat and should be
something most people could use. Also I can get some feedback on it's
positives and negatives
I need to setup quickly a e-shop, and i want to use cakephp, the
alternatives i've seen are:
- bakesale, but seems inactive since some months ago (last commit 7 months ago)
- phpshop2, but has the same problem, and doesn't have stable release
do you have some suggestions?
bakesale is the best
Like grigri says, read the manual and use Cake functionality.
Below is your add function rewritten (completely untested of course)
to use Cake conventions:
function add(){
$this-set('sections', $this-Entry-Section-find('list',array
('fields'='Section.section','Section.id')));
if
Sounds like you are not getting a reverse DNS for localhost. Try using
127.0.0.1 as your host name and see if IE7 works with that (or do a
nslookup on localhost).
On Jan 13, 1:34 am, will will.ev...@the-omni-group.net wrote:
Hi there,
My CakePHP app is working fine in firefox. In ie7,
I wrote a straight forward article on retrieveing images from a db for
inline use and as downloads.
http://edwardawebb.com/programming/php-programming/cakephp/serving-files-cakephp
I think youll find it answers your questions. please comment if you
have any feedback (positive or negative)
On
Just add the field and groupings to the find (http://book.cakephp.org/
view/73/Retrieving-Your-Data)
find('all', array('fields' = array('Group.*', '(COUNT(*)) as
group_count', 'User.username')
'group' = array('Group.id', 'Group.name',
'Group.created', 'Group.modified',
Looks to me like your relationships may not be correct.
Can you post your hasMany/hasOne and belongsTo for each of the models
(User/Project/Topic) ?
On Jan 12, 9:45 pm, Sergei yatse...@gmail.com wrote:
I think I found a bug in generated countercache query:
UPDATE `projects` AS `Project` LEFT
I think I should clarify. I think Adam correctly understood what I was
trying to get at. For further context, look at the blog example code
and how they use the HTML helper to craft the links to actions like
deleting posts, creating posts, etc. So you get a delete link that
when you hover you see
I'm struggling to grasp how data is updated (not inserted) with Cake.
I can create new records just fine, but now I'm trying my first update
and I can't get it to work. Moreover, it might be a special case,
since it's an Auth user and there's no id, per se.
In my login() method, I'm checking
You have to set the id first, in your case it might be:
$this-Administrator-id = $this-Auth-user('id');
$this-Administrator-save($data);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this
Building the products and listings should be easy, a day or 2 worth of
development.
The only thing you really have to research are the payment gateways.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
Why are you using mysql_ functions in your action?
Id first clean up your actions because right now its pretty bad.
find('count') instead of doing your own count query.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
On Tue, Jan 13, 2009 at 3:28 PM, Miles J mileswjohn...@gmail.com wrote:
You have to set the id first, in your case it might be:
$this-Administrator-id = $this-Auth-user('id');
$this-Administrator-save($data);
Therein, as they say, lies the rub. I don't have an id field in my
administrators
Well its easiest to have an id field.
But your right, you would set the primary key. And if that breaks
auth, change the fields for the auth.
http://book.cakephp.org/view/390/fields
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On Tue, Jan 13, 2009 at 4:57 PM, Miles J mileswjohn...@gmail.com wrote:
Well its easiest to have an id field.
But your right, you would set the primary key. And if that breaks
auth, change the fields for the auth.
http://book.cakephp.org/view/390/fields
Thanks. The latter is what I've
Hi All,
I'm new to cakephp and working through my first cake app. I'm
chugging along and am now stumped as to where to put a function I've
written to help decide if a navigation tab should have the
id=selected assigned to the anchor tag.
Basically the gist is I have a ul Navigation bar with
After posts and widgets and before in actions mode, there is
something missing. What do you think it is?
We'll be doing that soon enough. You should now have models,
controllers, and baked views for your users, groups, posts and
widgets.
in actions mode, this authenticates our ARO - groups and
We'll be doing that soon enough. You should now have models,
controllers, and baked views for your users, groups, posts and
widgets.
in actions mode, this authenticates our ARO - groups and users -
against the ACO objects - controllers actions.
After posts and widgets and before in actions
app_controller and app_error are sitting in the app folder. I have
no child beforeFilter()s.
On Jan 12, 12:27 am, Miles J mileswjohn...@gmail.com wrote:
Where did you place your appcontroller? Also try doing a
parent::beforeFilter() in child beforeFilter()s.
This is how I do mine:
// controller action
function login() {
$this-set('activeTab', 'login');
}
// the view
li?php if ($activeTab == 'login') echo ' class=selected'; ?a
href=#Login/a/li
li?php if ($activeTab == 'signup') echo ' class=selected'; ?a
href=#Signup/a/li
Also, your
beforeFilter and beforeRender don't seem to get called for AppError,
but I don't see how that would help anyway. It's not the filter
methods I need to get called, just a component I need included.
Mark
On Jan 12, 1:08 am, Dr. Loboto drlob...@gmail.com wrote:
I call
On Tue, Jan 13, 2009 at 12:59 PM, Webweave webwe...@gmail.com wrote:
Or even easier (although less cake-like, probably more efficient at
the DB level):
'fields' = array('Group.*', '(select count(1) from users User where
User.group_id = Group.id) as users_count')
Genius. I should have
I was able to get the initial cake php page to come up; however, I
had to click on index.php from the app/webroot directory. This then
brought up the cake php page which shows the release notes title.
My understanding is that I should not have to click on the index.php
file. Rather, when I put
A Comment can be related to any other model.
For example Event 123 could have a comment which would look like this:
INSERT INTO comments ('class','foreign_id','name','body') VALUES
('Event',123,'title','comment body');
Or Post 456 may have a comment which would look like this:
INSERT INTO
Hello,
I just installed cake version 1.2.0.7962 and was going through the
blog tutorial when I got the generic index page because there is a
problem with my httpd.conf. I ran locate and found quite a few
different httpd.conf files:
$ locate httpd.conf
Thank you Miles!
That technique is exactly what I was looking for!
Nick
On Jan 13, 5:04 pm, Miles J mileswjohn...@gmail.com wrote:
This is how I do mine:
// controller action
function login() {
$this-set('activeTab', 'login');
}
// the view
li?php if ($activeTab == 'login')
here's my code: http://bin.cakephp.org/view/1065723096
i'm not sure what's wrong. i've followed two different tutorials and
my code makes sense when i compare. i must be missing something. no
errors show up. i'm not sure how to begin debugging. any help would be
great.
hello,
everyone.
I have done every step follow the 10.2 Simple Acl controlled
Applicationhttp://book.cakephp.org/view/641/Simple-Acl-controlled-Application
but when I has added a new user,
the new User can't login in the login.ctp.
(when follow the 10.2 Simple Acl controlled
It is correct.
On Jan 14, 3:02 am, Webweave webwe...@gmail.com wrote:
Looks to me like your relationships may not be correct.
Can you post your hasMany/hasOne and belongsTo for each of the models
(User/Project/Topic) ?
--~--~-~--~~~---~--~~
You received this
They are as follow:
User hasMany Project
Project belongsTo User
User hasMany Topic
Topic belongsTo User
On Jan 14, 10:39 am, Sergei yatse...@gmail.com wrote:
It is correct.
On Jan 14, 3:02 am, Webweave webwe...@gmail.com wrote:
Looks to me like your relationships may not be correct.
Hi,
Is there any best practices turning gzip compression on with Apache
(on shared hosting where php.ini cannot be modified) and Cake?
I've been developing with Cake for quite a while, but not an expert on
Apache. Below is the zlib setting on the server.
zlib.output_compression
I'm not sure what's wrong, either. I'm also not sure how to begin
trying to help without some kind of explanation of the problem. Are
you sure that your code even reaches the send() call? Does your data
contain all the relevant info for sending? Is this running on your
desktop or a remote server?
If todos table has one-to-many relationship with tasks table, what the
data format should be if I want save all of them at once?
//like SaveAll($data)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To
Are your passwords salted correctly and do they match?
--~--~-~--~~~---~--~~
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,
Thanks for your care.
yes, this is my mistake.
I have no give the group3 the good right.
so, can't be use by new user.
Thanks
2009/1/14 Miles J mileswjohn...@gmail.com
Are your passwords salted correctly and do they match?
--~--~-~--~~~---~--~~
You
Yeah I did the same thing. I had to remove the salt because old
passwords would break.
--~--~-~--~~~---~--~~
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
Make sure var $components = array('Email').
And how are you sure its not working, the email is going to a fake
destination? Also if its a local server, a lot of the time mail is not
setup.
Also its Anonymous, not Anonomous.
--~--~-~--~~~---~--~~
You received this
Simple question to anyone who uses CakePHP and jQuery. Do you pass
your post variables as post, or as the arguments of the action?
When you make ajax calls, do you call it like this:
/ajax/delete/123/
Or:
/ajax/delete/
POST: id=123
--~--~-~--~~~---~--~~
You
use your .htaccess file to enable gzipping.
php_value output_buffering On
php_value output_handler ob_gzhandler
_k10_
On Jan 14, 8:05 am, park park@gmail.com wrote:
Hi,
Is there any best practices turning gzip compression on with Apache
(on shared hosting where php.ini cannot be
Heh, thank you Miles for the spelling correction.
The email component is being called. The e-mail is set to go to my
normal account which is my gmail address ($this-Email-to =
'k3ho...@gmail.com';). I never receive any mail when i use my form.
The only logic that could stop send() is if
Its probably because your on localhost. If you dont have a mail server
setup as well on your localhost, no emails will be sent.
I usually have to test my contact once the site goes live.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Hello,
I tried two alphaNumeric validation, but I get a preg_match error.
*Warning (2): preg_match() [function.preg-match]: Compilation failed: PCRE
does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3
[CORE/cake/libs/validation.php, line 847]*
My code
var $validate = array(
Thanks, I'll try.
How do I know it works or not? Is there anywhere I can check gzip is
on?
On Jan 14, 1:00 pm, _k10_ ketan.s...@gmail.com wrote:
use your .htaccess file to enable gzipping.
php_value output_buffering On
php_value output_handler ob_gzhandler
_k10_
On Jan 14, 8:05 am, park
By the way, when I added the following line in .htaccess, a 500
Internal Server Error was thrown.
I was on shared hosting.
php_value output_buffering On
php_value output_handler ob_gzhandler
Any ideas why?
On Jan 14, 1:00 pm, _k10_ ketan.s...@gmail.com wrote:
use your .htaccess file to enable
Add this to your appController:
if (Configure::read('debug') == 0){
@ob_start ('ob_gzhandler');
header('Content-type: text/html; charset: UTF-8');
header('Cache-Control: must-revalidate');
$offset =
81 matches
Mail list logo