I've already done that, several times.
On top of this, the logs show no errors at all.
On Feb 3, 7:21 pm, Braindead markus.he...@gmail.com wrote:
Did you already delete the cached files? I guess this should solve
your problem.
--~--~-~--~~~---~--~~
You
Excuse me for barging in but if plugins suport their own images and
css why not custom cakeError handlers.
See topic:
http://groups.google.com/group/cake-php/browse_thread/thread/0f6ffe4256827b6f#
On Feb 4, 5:07 am, mark_story mark.st...@gmail.com wrote:
This has worked for quite some time
I've been using MySQL Workbench. Does everything I need.
http://dev.mysql.com/workbench/
On Feb 4, 7:13 am, Wayne Fay wayne...@gmail.com wrote:
I was wondering if anyone has any recommendations for a database
design tool. I was hoping to use an OSS product.
I generally use Squirrel SQL,
I wouldn't call it normal. I am not sure there is a normal collation.
If you state nothing else MySQL will choose utf8_general_ci so that
would be the default.
Binary collation is the collation for non-lingual text. Every
character counts and order clauses cause them to be ordered by their
I think you need to step out of ModelBaker and go over the cakephp
docs, specifically the small Blog tutorial.
http://book.cakephp.org/view/219/Blog
hth
jon
Hi Jon,
Thanks, but it doesn't really help, but it seems to be the standard
answer that everyone is rolling out lately :(
@pcdinh: The source repository of CakePHP is primarily a tool meant to
assist the *developers* of CakePHP, not the users. Those who wish to
contribute to the development of CakePHP will find Git to be a more
powerful and social tool than SVN.
What personal need to you have to interact with
I don't think you can decide the direction in that way. Even though
sortDir() has an options parameter and a directions key it looks
for when you use sort() the options do not get passed along to
sortDir()
http://api.cakephp.org/view_source/paginator-helper/#line-163
Auth should hash the password anywhere.
It looks for $this-data['User']['password'] (or whatever you have
changed it to) on every request.
It will not hash $this-data[0]['User']['password'] for example.
You wrote resetPassword controller. A typo right? Otherwise check
that Auth is included in
I have a situation where i want a certain helper included in all of my
controllers except one.
I would like to be able to put the helper in my app_controller and
explicitly remove it from the one controller that doesn't use it
rather than having to manually add it to all but one of my
Please, paste here the console output.
On Feb 4, 2:54 am, Mech7 chris.de@gmail.com wrote:
I have not used cake for a while.. and now trying to pick it up
again,, but when I do..
#cake bake controller articles
It works.. when i do..
#cake bake controller articles -scaffold
It
I used the form helper and it doesn't change anything.
My form looks like this:
$form-create('ImportFile', array('action' = 'add', 'type' = 'file'));
$form-file('ImportFile'); ?
$form-end();
Which should and did work.
But now I get something like this in $_FILES:
Array (
[data] = Array
Hi, I'd like to change the lifetime of a session variable to 30
minutes for example,
how can you do it? thks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
Cake automatically load the helpers defined in app_controller even if you
define var $helpers in especific controller.
On Wed, Feb 4, 2009 at 9:26 AM, maxmil max...@gmail.com wrote:
I have a situation where i want a certain helper included in all of my
controllers except one.
I would like
http://book.cakephp.org/view/44/CakePHP-Core-Configuration-Variables
On Feb 4, 9:30 am, Matthieu matthieu.aussag...@gmail.com wrote:
Hi, I'd like to change the lifetime of a session variable to 30
minutes for example,
how can you do it? thks
thks, I checked inside the core file, I didnt see it, but I should
have been more persistent, I just found it, thks!
On 5 fév, 00:32, RodrigoRM rodrig...@gmail.com wrote:
http://book.cakephp.org/view/44/CakePHP-Core-Configuration-Variables
On Feb 4, 9:30 am, Matthieu
I don't know if it is the right way... but the beforeFilter would be
the first place to try. I can imagine that not working so instead you
can override the constructor of that one controller and remove the
helper from the helpers array there. At least it worked for modifying
components under Cake
Remove it from the $helpers member variable in the controller's
`beforeFilter` method:
class WhateverController extends AppController {
function beforeFilter() {
foreach($this-helpers as $k = $v) {
$helper = is_int($k) ? $v : $k;
if ($helper == 'Unwanted') {
I have been using a modified DBO for MySQL which does the translation
automatically if you write ... AS Modelname__fieldname. I am not
really sure about the downside to using it but it has not given me any
problems with that project that I am aware of.
It is called dbo_mysql_ex and wirrten by
On Feb 4, 11:14 am, Chris Mc cmcclel...@yahoo.com.au wrote:
I think you need to step out of ModelBaker and go over the cakephp
docs, specifically the small Blog tutorial.
http://book.cakephp.org/view/219/Blog
hth
jon
Hi Jon,
Thanks, but it doesn't really help, but it seems to be
djiize wrote:
- the form and the field have the same name ImportFile = conflict ?
That did it. I renamed the field to import and it worked.
The really strange thing is that it _has_ worked with ImportFile.
Thanks a lot!
Regards
Guenther
--~--~-~--~~~---~--~~
First http://book.cakephp.org/view/172/Authentication has the perfect
example of how to just get login working, though I think you were
saying you have that working.
Next, use the session component instead of interacting with php build
in session functions this allows everything to stay in
On Feb 4, 11:41 am, Chris Mc cmcclel...@yahoo.com.au wrote:
waves the don'tknowwhatI'mdoingandI'mjustguessingwhattodo flag rather
clearly.
Which is why I've been admitting that from the start.
You can't admit a problem/failing, ignore what people tell you to do
to address it, and expect
I don't think so, I have the following 2 lines in routes.php
Router::connect('/login', array('controller' = 'user', 'action' =
'login'));
Router::connect('/logout', array('controller' = 'user', 'action' =
'logout'));
For 1.2.0.7962 the auth component startup function evaluates both $url
and
Yes that was a typo. Both the actions are in the User controller, and
Auth is enabled for all actions of the controller, through the
beforefilter method.
As soon as I can I'll do a further check to the $this-data array
printed by the debug function to verify that it matches the structure
you
Hi Alfredo, thanks for your support, I really appreciate it.
I cah do some test this evening, but I'm not sure on what you suggest
to do. I mean, I can remove acl tables and component and keep auth in
place but I'm pretty sure that in that way is going to work and I
agree with you that the issue
I posted a similar query here last week. I was hoping to use Set class
to do the same. I guess grigri wasn't around ;-)
Sorry mate, must have missed that one. I haven't been checking this
group as often as I used to.
afaik, there's no way to do this with the Set class alone :( There are
some
In my opinion, if you are on a *nix-system, there is no reason
whatsoever to use Subversion.
Git is so much better it's almost ridiculous. On Windows, I don't
know, but I've heard Git is
getting there...
At work we, unfortunately, switched from Subversion to Perforce.
Perforce is arguably a
This is cool http://code.google.com/p/wwwsqldesigner/ , demo here:
http://ondras.zarovi.cz/sql/demo/?keyword=default
On Wed, Feb 4, 2009 at 7:35 AM, RichardAtHome richardath...@gmail.com wrote:
I've been using MySQL Workbench. Does everything I need.
http://dev.mysql.com/workbench/
On Feb
Hello together,
i installed the search_index correct(http://code.google.com/p/
searchable-behaviour-for-cakephp/). I workes very fine. :) So now i
tried to search, on an empty
table. How can i get if the result is normally empty. For example the
word is not in DB Table
I tried it so in the
hello guys !!
i have a problem for viewing the image from the url link saved in
database ? how to do that ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
Hi, do you mean to store them so that you're able later to idneitfy
them as being in french?
If so, I think it's similar to what I'm trying to do on my site. One
way to use a single model and db table to store data in different
langauges, is just to have a column to store the language of the
Hi !
I'm new with Cake and with gettext.
I read [1] and [2] but I'm still lost ^^
I don't understand how to choose the default language used in whole
application.
I name my locale dirs with the tree letter convention, I have eng and
fre at the moment.
The application doesn't require live
Hopefully this will shed some light on the things that are not covered
in the manual:
http://teknoid.wordpress.com/2008/11/28/cakephp-url-based-language-switching-for-i18n-and-l10n-internationalization-and-localization/
On Feb 4, 9:50 am, Elianora delphine.ca...@gmail.com wrote:
Hi !
I'm new
Hello to all,
I'm having trouble with the code that I'm working with I have two
tables named users and profiles
the user table holds the value for user account creation and logging
in the profiles table hold the additional information of the user.
There are cases that I need to update the
Are you using different prefixes for the tables?
How are you sure you can connect to the DB?
Have you tried turning on debugging?
On Feb 4, 4:24 am, hellfish ruicruz...@gmail.com wrote:
I've already done that, several times.
On top of this, the logs show no errors at all.
On Feb 3, 7:21
read the manual.
http://book.cakephp.org/
On Feb 3, 12:41 pm, monirr muni...@hotmail.com wrote:
ok here is my problem i'm new to cake and i bulid every thing ok so i have
categories and recipes categories has many recipes , recipes belongs to
categories i wanna access recipes by
Hello all..
I am working on a matrimonial site which is multilingual..
I want that when new user register himself his with information, it
will store be store in language he choose initially..
say suppose user select french language initially.. and then register
himself with data in french..
(At the risk of seeming like an evil bastard)
You know, I think we should put that message on some sort of a auto-
responder here and just go for a beer or something.
On Feb 4, 5:09 pm, Smelly_Eddie ollit...@gmail.com wrote:
read the manual.
http://book.cakephp.org/
On Feb 3, 12:41 pm,
That worked a treat!
This is the code i used
$i = array_search('UnwantedHelper', $this-helpers);
unset($this-helpers[$i]);
Thanks
On Feb 4, 12:51 pm, grigri j...@hendersonwebdesign.com wrote:
Remove it from the $helpers member variable in the controller's
`beforeFilter` method:
class
Something like this should work:
(code not tested, but theory sound)
class Customer extends AppModel {
var $validate = array(
'country_id' = array(
array(
'rule' = array('custom', '/^[a-z]{2}$/'),
'required' = true,
'message' = 'Please select the country that
maybe see output of the Form Helper in general
I think it's
input type=text name=data[model][field] /
see data[model][field] here? you need to format your names this way
to automatically populate $this-data var
maybe just data[field] suffice, but I don't know as I always use
FormHelper, you can
Can you post the output of the FormHelper ? Here or better on the
Cakebin ?
I see 2 things:
- the names ImportFile with a caps in the middle = will often
produce import_file variable
- the form and the field have the same name ImportFile = conflict ?
On 4 fév, 12:30, Günther Theilen
waves the don'tknowwhatI'mdoingandI'mjustguessingwhattodo flag rather
clearly.
Which is why I've been admitting that from the start.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this
I thanks! I did! However, I have this error:
Error: NotesController Create the class below in file: app \
controllers \ notes_controller.php
I created the file and put the class! But it does not work ...
I think I will give up the XAMPP
On 16 jan, 05:01, ezekfred ezekf...@wanadoo.fr wrote:
Are you sure your models validate when you try to save on edit? Change
your code to test if they validate before saving. That might lead you
to the problem.
On Wed, Feb 4, 2009 at 4:46 AM, xeroxss xero...@gmail.com wrote:
Hello to all,
I'm having trouble with the code that I'm working with I
On Wed, Feb 4, 2009 at 7:02 AM, grigri j...@hendersonwebdesign.com wrote:
Something like this should work:
(code not tested, but theory sound)
class Customer extends AppModel {
var $validate = array(
'country_id' = array(
array(
'rule' = array('custom', '/^[a-z]{2}$/'),
On Wed, Feb 4, 2009 at 9:20 AM, radis...@googlemail.com
radis...@googlemail.com wrote:
Hello together,
i installed the search_index correct(http://code.google.com/p/
searchable-behaviour-for-cakephp/). I workes very fine. :) So now i
tried to search, on an empty
table. How can i get if the
I've been searching for a way to implement nested routes in cakephp.
I've seen a few threads on this (for example
http://groups.google.com/group/cake-php/browse_thread/thread/abd4ffcb3eb363a7/e33566a2a8182b46?lnk=gstq=nested+routes#e33566a2a8182b46)
but they've all been at least a few years old
Thanks a lot it runs very well
many greetings
marcus radisch
--~--~-~--~~~---~--~~
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
@Brian
Yes I have check the data validation, in fact I can create a new user
successfully inserting the required data without problem If I use the
create_user function call supplying and removing the required data to
check the validation.
If I change the code instead of updating the profile
I need to limit the amount of characters returned on a field.
I have tried using 'fields'=array('LEFT(field,200) AS \'field\'') but
I get an undefined index: field error when I do this.
Any suggestions would be greatly appreciated.
--~--~-~--~~~---~--~~
You
Maybe it will help someone in the future.
Undefined variable: javascript [APP\views\layouts\default.ctp, line 8]
Fatal error: Call to a member function link() on a non-object in
xy\default.ctp on line Y
If one helper can't be loaded (typo), no helper will be loaded. So if
it says javascript
On Wed, Feb 4, 2009 at 11:51 AM, Dwayne dwayne.kristjan...@gmail.com wrote:
I've been searching for a way to implement nested routes in cakephp.
I've seen a few threads on this (for example
2 ways about it.
One, switch on debug=1 (atleast) in core.php. This should give you
the query and some indication on how to fix it.
Two, if the idea is to limit the amount of characters displayed in the
view, then handle it in the index.ctp like this
echo
Looks like a good start.
I've been meaning to tweak some queries to make use of SQL_CACHE as
well ... maybe that could be a feature request for the core.
Shouldn't be too hard to add a class var $sql_cache and have it be of
type bool to be able to model-specific caching on SELECT statements.
This is according to the documentation:
=
If you need to use SQL operators such as in (MySQL) DISTINCT, MAX,
MIN, etc... you can specify it as part of the 'fields' key, as such:
$this-Product-find('all', array('fields'='DISTINCT
(Product.name) AS
Today I was on the subway thinking to everything but Cake when I
understood what I was doing wrong and I can't believe it-.-
After completing the ACL tutorial and when redoing it I cleaned my
acos table leaving only the root 'controllers' record. I thought that
having permission on it allowed
Hello together,
i tried it since my start with cakePHP. How get i my forms in an
normal view. Textfield and the button, all what can in this time is
to build an form where the textfield is over the button..
many greetings
Marcus Radisch
--~--~-~--~~~---~--~~
You
Hi I want create PDF file with lib. TCPDF. When i dont use Auth
component all is ok and call url return PDF file, but wheh I use Auth
componet in app_controller, call url dont return PDF file, sure im
login. Please help me, i dont know where is problem.
THX!
Source of app_controller:
?php
class
Glad you figured it out Andrea, way to go.
Regards,
Alfredo
On Wed, Feb 4, 2009 at 2:30 PM, Andrea Cardinale mirt...@gmail.com wrote:
Today I was on the subway thinking to everything but Cake when I
understood what I was doing wrong and I can't believe it-.-
After completing the ACL
I am using Rad Upload in the admin section of my website, and in order
to get it to work, I have to set Session.checkAgent to false. In the
cake docs it says:
'When set to false, CakePHP sessions will not check to ensure the user
agent does not change between requests.'
Can someone explain why
Thanks for your response, it was helpful. Sounds like the word Helper
is just what it says it is, and that's it. Helpers can't do the full
job, but they help out where they can. I'm starting to realize that
now with Cake.
On Jan 28, 7:46 pm, Sidney aussiealthomp...@gmail.com wrote:
I'm not sure
Awesome, can you give an example/snippet of overriding the datasource
to do just that?
--~--~-~--~~~---~--~~
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
Hello,
Just a little question, if I get a parameter in a method, like
function index($id==null) {
$this-post-findById($id);
}
Do I have to sanitize $id? I just thought that CakePHP protects params
from being used for SQL-injections of any kind, doesn't it?
Thanks in advance,
mee
Can anybody help with this?
On Feb 4, 1:27 pm, gkc gerardkco...@gmail.com wrote:
This is according to the documentation:
=
If you need to use SQL operators such as in (MySQL) DISTINCT, MAX,
MIN, etc... you can specify it as part of the 'fields' key, as
I believe that the checking is preventing the hijack of someones
session. And if the User Agent changes during the same session that's
most likely due to a hijacked session so cake prevents that.
On Feb 4, 3:18 pm, ncherro nche...@gmail.com wrote:
I am using Rad Upload in the admin section of
hello,
i have a Users controller.
i'm trying to send application/xml data to my cake app's
AppController. I can see the xml object in my user controller action
when i debug($this-data). However when i debug this-data in my
beforeRender method in AppController, i get an empty array??? where in
echo $html-image($this-data['Model']['image_url'], array
('alt'='description'));
Make sure you have pulled the image url into a view var first (like
$this-data or by using $this-set() in your controller), and also
make sure the htmlhelper is activated in your controller under the
$helpers array.
I believe it cleans/sanitizes the data automatically before the query
is made.
On Feb 4, 3:01 pm, Mee mee@gmail.com wrote:
Hello,
Just a little question, if I get a parameter in a method, like
function index($id==null) {
$this-post-findById($id);
}
Do I have to sanitize $id? I
Is easy share powered by cakephp?
--~--~-~--~~~---~--~~
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
ind dbo source drivers, there is a value() method, which... if you
take a peek at the source will say that it:
Prepares a value, or an array of values for database queries by
quoting and escaping them.
On Feb 4, 6:01 pm, Mee mee@gmail.com wrote:
Hello,
Just a little question, if I get a
I have attempted to implement the PHP Speedy helper found on the
bakery at:
http://bakery.cakephp.org/articles/view/phpspeedy-helper
If I have the debug set to 0 then none of my javascript or css is
affected. If I alter the helper to allow for debug to be 1 then I get
the following errors:
I had the same problems
I wish there was a way to make this work with security level = high
but I didn't figure it out.
It seems to be very random.
But in general the problem seems to be having 2 requests very quickly
after each other
On Jan 26, 3:18 pm, Alfredo Quiroga-Villamil
like you said, I use the database session,It get a good result,
but only in subdomain( http://sub.mysite.com ) ,It is get a good result,
in domain( http://mysite.com ),It can't been use
still,
the 2 domain used the same DocumentRoot , same VirtualHost setting.
I saw the
Has anybody used any sort of 3rd party User/Membership Management
tools?
I am not talking about just a basic ACL... I have that and use it
pretty effectively.
I'm looking for the ability to have payment accounts with recurring
billing and membership services for a website. I have found a
Suppose I define a variable in one .ctp file..i.e header.ctp $veryimp
and if I renderelement another subheader.ctp file inside the
header.ctp file
How can I access the value of $veryimp from the new subheader.ctp
file ?
Is it possible if not what is the workaround to define GLOBAL
variables
Ok, teknoid, Miles, thanks a lot! :)
On Feb 5, 4:07 am, teknoid teknoid.cake...@gmail.com wrote:
ind dbo source drivers, there is a value() method, which... if you
take a peek at the source will say that it:
Prepares a value, or an array of values for database queries by
quoting and escaping
You can pass the variable to the element like so:
$this-element('view', array('veryimp' = $veryimp));
On Feb 4, 9:42 pm, Malcolm Krugger chennaiprogram...@gmail.com
wrote:
Suppose I define a variable in one .ctp file..i.e header.ctp $veryimp
and if I renderelement another subheader.ctp file
Hi,
everyone.
when use the Configure::write('debug', 2);I don't want to print the debug
info to the web page,
I want to print the debug info to other file.
can i do this?
I can't to login use the (auth), anything info can 'echo' to tell me, why is
it that can't be login
Thanks
2009/2/5
Is there an example somewhere I can see where multiple checkboxes are
arranged in a html table with say 3 columns ?
I'm using the
$form-input('choice', array('type'='select',
'multiple'='checkbox', .
Malcolm
--~--~-~--~~~---~--~~
You
Thanks
I have many view files that may use the same variables again and
again
SO I do not want to define these variables so many times ?
Is there a shortcut ?
These variables are pure html e.g
$veryimp = tdb;
etc
Malcolm
On Feb 5, 11:14 am, Miles J mileswjohn...@gmail.com wrote:
I have this method that updates login information on a user. It all
works, except I cant figure out how to get the mysql NOW() to work.
Any ideas?
function updateLogin($user, $ip) {
$data = array();
$data['currentIP'] = $ip;
$data['lastLoginTime'] =
you could do:
$data['currentLoginTime'] = date('Y-m-d H:i:s');
On Feb 5, 2009, at 1:56 AM, Miles J wrote:
I have this method that updates login information on a user. It all
works, except I cant figure out how to get the mysql NOW() to work.
Any ideas?
function updateLogin($user, $ip) {
Hello,
i have the following data POSTed to my cake app as application/xml
content-type:
UserloginUsername/loginpassPass/pass/User
simple enough. Now, I want to do a Set::reverse(new Xml($this-data));
in the beforeFilter method in AppController.php, but when i debug
($this-data) in
Oh derr, that totally didn't cross my mind. Thanks!
--~--~-~--~~~---~--~~
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
Running ps aux | grep httpd returned the following:
root 5886 0.0 4.0 205960 20460 ?S20:33 0:05
gedit /home/jason/Desktop/httpd.conf sudo gedit /etc/apache2/
apache2.conf
jason 7801 0.0 0.1 7452 880 pts/0R+ 22:08 0:00 grep
httpd
I ran chown -R jason
Hi!
Is there as way to define default conditions in the model?
Let's say I have a model with a field active which can be 0 or 1.
In most queries I need the condition active = 1 but sometimes I need
the condition active in (0,1).
Is there a way to define active = 1 as the default condition for
Following code snippet may help you
function beforeFind($queryData)
{
$conditions = $queryData['conditions'];
if (!is_array($conditions)) {
if (!$conditions) {
$conditions = array();
} else {
$conditions = array($conditions);
}
}
OK, thanks.
But I thought maybe there was a way to do something like
var $conditions = array('active' = 1);
in the model, as I can to with $order or $displayField.
But that doesn't seem to work.
Amit Badkas wrote:
Following code snippet may help you
function beforeFind($queryData)
{
I set AllowOveride All for the following files with no difference
after restarting apache
/etc/apache2/sites-available/default
DocumentRoot /var/www/
Directory /
Options FollowSymLinks
AllowOverride All
/Directory
Directory
Though my research,
if I use the (http://www.mysite.com), I can login very good[ in the status
of have no cookie]
but use the (http://mysite.com), i cann't login [in the status of have
no cookie.]
the error is user or password is not found
2009/2/5 Rimoe meiyo...@gmail.com
91 matches
Mail list logo