Just browsed the source at CakePHP and the erroneous code is not
present there, but at line 422 it reads:
'loginError' = __('Login failed. Invalid username or password.',
true),
So I suggest that you correct the Auth component yourself (you have an
old version of CakePHP) or upgrade to a newer
Hi,
I had change my website to one server to another. my website is in
Cakephp1.1. It was working fine at the old server however when i shift
it to another new server the css and images are not loading. The path
for images was img/imagename.jpg BUT it is not working however if i
change it to
Hi, i put some stress test on Cake-based prj this morning. I found
that, when the request num reaches a certain num, the db connection
just lost when the data pushed into db. I tried to catch the error,
but failed. I'm wondering wehtere there is anyone faced the same
problem with me ever before?
i already did something similar, but it doesn't work as intended
because data in Item model remains the same as before spread
On 5 Mag, 17:22, brian bally.z...@gmail.com wrote:
Maybe this would work.
function beforeSave()
{
if (isset($this-data['Items_Order'])
I forgot to mention that, before saving any order, i need to check
that the order is not empty (has one item at least)
On 5 Mag, 17:22, brian bally.z...@gmail.com wrote:
Maybe this would work.
function beforeSave()
{
if (isset($this-data['Items_Order'])
http://www.milesj.me/blog/read/32/cssjsasset-compression-in-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
In response of Karim's request...
The standard way of implementing translations in the default cake core
is, to my opinion, very resource intensive. It uses a lot of sub-
queries when a lot of fields in a table need translations.
At this stage I'm using the following setup in my solutions:
Hello ,
There is easy solution here :
here you should
First:
make association
subscribers has many subscriber_contacts and
subscriber_contacts belongs to subscribers
Second:
# find IDs of friends here
$friends = $this-Subscriber-SubscriberContact-find(’list’,
array(’conditions’
Hello.
I have searched all over the web about the The requested URL was not
found on this server and still can't solve the problem. It's rather
strange, because with one parameter it works (page is displayed) and
with other - it doesn't.
You can see it here:
http://www.gurufreebies.com/icons
Hi,
I hope someone has a hint for me.
I have a controller named 'questions' and I'd like to set up the
follwing route:
Router::connect('/questions+answers/*', array('controller' =
'questions', 'action' = 'view'));
Unfortunately it brings up a missing controller error, when clicking
on a link.
Well... making progress but still not there.
Right now I've got:
Router::connect(
'/*',
array(
'controller' = 'nodes',
'action' = 'view',
),
array('*' = '(!users|products)')
This half works - the pagination is fixed and something
Hi Brian Dr Loboto
Both of you are absolutely correct, so thanks! I totally misunderstood
the manual and was got it into my head that /sections/view would be
read from /app/views as /app/views/sections/view (DUH) and using $this-
viewPath simply didn't cross my mind.
Cheers Guys.
Hi everyone,
I'd like to add some dynamically generated CSS to my document head
from within an element, is that possible? Ideally I'd like to insert
something like:
style type=text/css media=screen
#navigation-holder a#logo span {
background:transparent url(../img/logo.jpg) no-repeat left
Hi,
I am new to CakePHP and I have this question (there's nothing i could
find in other post):
I have one controller by the name radar_verbatims_controller. In the
controller there is an index function.
On the index view page, there are a few elements which communicate
with the index function
with the release of 1.2.3.8166 that fixes that nasty xss vulnerability
( https://trac.cakephp.org/ticket/6336 ) i feel compelled to upgrade
from an earlier build of 1.2. i am not sure of the best way to go
about this without losing code i have already made.
for example, i have added some things
Hello Experts,
Trying out a module where in donations for a social cause will be
accepted through a webform. For every donation record we need to
accept the donor_id,cause_id,amount being donated. In the Donations
Add form instead of displaying the actual donor_id we want to display
its
Uh, you're not supposed to touch anything in the cake folder. Your
app_controller.php should be inside your app folder, i.e. ~/app/
app_controller.php
As far as other upgrading go, If you're using 1.2 you can simply
overwrite everything in ~/cake and it should work without a problem.
Just don't
You're probably missing the correct display field:
class Donor
{
var $displayField = 'first_name';
}
and
class Cause
{
var $displayField = 'cause_title';
}
Note that 'cause' is superfluous in 'cause_title'. Why not just
'title'?
On May 6, 4:22 pm, swiftguy
Always upgrade on a development server and test first. Upgrading can
break things you wouldn't expect. For example, the recent change of
the alphanumeric validation rule to support i18l characters broke the
automatic Javascript error checking I use (the new regex isn't valid
in JS). Instead of
On Wed, May 6, 2009 at 2:27 AM, CakeMan narula.vi...@gmail.com wrote:
Hi,
I had change my website to one server to another. my website is in
Cakephp1.1. It was working fine at the old server however when i shift
it to another new server the css and images are not loading. The path
for
Check your Apache conf. I'll bet the problem is this line:
Alias /icons/ /var/www/icons/
This is from my desktop box:
$ grep icon /etc/httpd/conf/httpd.conf
# require it to be present in the URL. So /icons isn't aliased in this
# example, only /icons/. If the fakename is slash-terminated,
Why not just put that in your regular stylesheet? If you're trying to
override an existing style, you can use a class.
Anyway, have a look at the $html-style() method:
http://api.cakephp.org/class/html-helper#method-HtmlHelperstyle
Also, your path can be absolute - url(/img/logo.jpg)
On Wed,
Nifty! I'll give this a shot!
On May 5, 6:57 pm, brian bally.z...@gmail.com wrote:
You can create a method in each model and place the find details
there. Then, from the controllers:
$foo = $this-YourModel-yourMethod(...)
Fat models, thin controllers, as the saying goes.
On Tue, May 5,
Hi All,
I'd like to add an onChange event for a checkbox, basically this would
trigger a $form-submit. The radio Button and Select have the
$attributes parameter which allows this but unfortunately for me, it's
not the case for the checkbox.
I also tried to do it in html:
input type=checkbox
I don't think there'd be any problem at all with using set() in
another function. All it's doing is registering some view vars.
You might also want to consider putting some of your code in the
model, or completely reassessing how the controller should work.
On Wed, May 6, 2009 at 8:19 AM,
thanks for the tip..i didn't exactly know that you shouldn't mess with
the /cake/ dir
does the same apply to the /vendors folder as opposed to /app/vendors?
On May 6, 10:22 am, dr. Hannibal Lecter lecter...@gmail.com wrote:
Uh, you're not supposed to touch anything in the cake folder. Your
I generally rename the dir to, eg. cake_1.2.2.8120 like so:
app/
cake_1.2.2.8120/cake/
... and update index.php to point to it. That means I can switch back
very easily and always know exactly which version I'm running. Once an
upgrade is known working, I just get rid of the older version.
On
Maybe put a backslash '\' before the '+', let me know if this works,
I doubt it though...
--~--~-~--~~~---~--~~
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
On Wed, May 6, 2009 at 11:35 AM, JamesF usaexportexpe...@gmail.com wrote:
thanks for the tip..i didn't exactly know that you shouldn't mess with
the /cake/ dir
does the same apply to the /vendors folder as opposed to /app/vendors?
No, the vendors dir is for 3rd party code. Put whatever you
On Wed, May 6, 2009 at 11:17 AM, Stu greenmushroo...@gmail.com wrote:
Hi All,
I'd like to add an onChange event for a checkbox, basically this would
trigger a $form-submit. The radio Button and Select have the
$attributes parameter which allows this but unfortunately for me, it's
not the
Hi,
after more than 2 years of hard/heavy work we are really pleased to announce
the first public beta release of BEdita 3 (pronounced [bi'εdita]), a
semantic content management framework based on CakePHP.
http://www.bedita.com
http://www.bedita.com/beopen
[our website is still work in
Hello everybody,
i am really desperate.
I wrote a SEO Component which automatically tries to read SEO Relevant
Tags from the Database like Title, Keywords, Description and even the
URL. Works great so far.
But for Categories i want to have the whole CategoriePath for the
Title (for Example
Hi,
I want to upload video on youtube via Cakephp.
I haven't find any stuffs. Kindly help with links or sample code
Thanks
Nipun
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group,
Youtube api?
On May 6, 3:13 am, NipunAmbastha nipunambas...@gmail.com wrote:
Hi,
I want to upload video on youtube via Cakephp.
I haven't find any stuffs. Kindly help with links or sample code
Thanks
Nipun
--~--~-~--~~~---~--~~
You received this message
Does the model implement TreeBehavior? I think this should work:
$var_model = $this-Controller-modelClass;
if (!empty($data[$var_model]['parent_id']))
{
$id = $data[$var_model]['id'];
$parent_id = $data[$var_model]['parent_id'];
$path =
I have made a couple customizations to CakePHP proper, first in 1.1.x and
then a few less in the 1.2.x series. The way that I handle upgrades is
within a single commit in my repository covering the complete change, in
this case 1.2.2 to 1.2.3.
You can do this pretty easily with KDiff3
Thanks for the post..
I followed the instructions...all set up no problems but now a page that
took 1.5 seconds to load originally is taking 18+ seconds after adding this.
And when I uncommented Configure::write('Asset.filter.css', 'assets.php');
none of my background images showed up.
Ideas?
So, this was great but I'm wondering if I can go a bit further with
this.
All these tables have queries that are very similar, so similar that I
could use exactly the same code in most of them, like here's an
example:
[code]
function getByKit($type, $id)
{
$rows = $this-find($type,
Alright, thx Brian, I'll try it out.
On May 6, 11:41 am, brian bally.z...@gmail.com wrote:
On Wed, May 6, 2009 at 11:17 AM, Stu greenmushroo...@gmail.com wrote:
Hi All,
I'd like to add an onChange event for a checkbox, basically this would
trigger a $form-submit. The radio Button and
any good links for a basic SVN software primer out there? maybe
something cake related
On May 6, 12:45 pm, Stephen Cuppett st...@cuppett.com wrote:
I have made a couple customizations to CakePHP proper, first in 1.1.x and
then a few less in the 1.2.x series. The way that I handle upgrades is
Hey!
Is there a way to limit $paginate-numbers() ? I tried:
$paginate-numbers( array('limit'=3) );
Regards,
Benedikt R.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send
Thank you John!
It works now, but only is only deleted one recordi would need to
delete all the records with checkbox=true
Any idea?
Thank you very much again
On Apr 17, 11:56 am, John Andersen j.andersen...@gmail.com wrote:
Corrected as I see it :)
On Apr 17, 11:10 am, kryska
I followed along with the blog tutorial and got that working with out
a problem. Now I'm modifying the blog tutorial for my own purposes
since the basic technique was the same for this particular part of the
project but now the fields are not validating. When I had it as
notEmpty it still
oleonav,
Could you please specify exactly what your DB schema is. I'm not sure
if you have 2 tables a translate table (and model) and a page
table (and model) or if you are really just working with 1 page
table (and model). Can you confirm?
--~--~-~--~~~---~--~~
I think it's :
$paginate = array('numbers'=3);
Cheers
--~--~-~--~~~---~--~~
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,
I have a table taxes and I'm using the form helper and it is putting
the form data into an array $this-data['Taxis']['feildname']. The
problem is that when I call $this-Tax-save($this-data)); the insert
sql statement doesn't have any of the values that was submitted via
the form.
Any ideas on
Wait,
did you mean the number of results displayed by page? If so :
$paginate = array('limit'=3);
Cheers
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
Hey all. I can't seem to find this answer anywhere. I have quite a
few cakephp sites running and I'm in the process of optimizing a
rather large site. We're doing some view-caching, etc., and in the
process I've discovered that my folder here:
/app/tmp/cache/persistent/
Has only one file in
I have been running the ySlow feature to improve performance and up to a B
rating and things are loading much faster.
i used the minify helper as in the Bakery but it shows, i have echo
$minify-js('prototype', 'scriptaculous', 'effects'); in my layout.
Does anyone know if it is possible to do
You must be doing something wrong.
Are the files being cached to the /assets/ folder?
--~--~-~--~~~---~--~~
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
In your AppController file, add this line:
var $persistModel = true;
In your AppModel:
var $cacheQueries = true;
On May 6, 1:24 pm, hookjd jay.dys...@gmail.com wrote:
Hey all. I can't seem to find this answer anywhere. I have quite a
few cakephp sites running and I'm in the process of
I am using the
http://bakery.cakephp.org/articles/view/minify-helper-for-cakephp minify
Its doing what it does as I can see the js minified but I have the scripts
used hard coded into the layout echo $minify-js('prototype',
'scriptaculous', 'effects');
But I would rather control that in the
Theres no point in using the minify helper, if your doing the tutorial
I sent you. Either one of the other.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
Using private function, perhaps.
function index(){
$this-_newFunctionOne();
$this-_newFunctionTwo();
}
function _newFunctionOne(){
...
}
function _newFunctionTwo(){
...
}
On Wed, 2009-05-06 at 05:19 -0700, tienzyee wrote:
Hi,
I am new to CakePHP and I have this question (there's
I am only using the Bakery one.
-Original Message-
From: Miles J [mailto:mileswjohn...@gmail.com]
Sent: May-06-09 8:37 PM
To: CakePHP
Subject: Re: Using Minify
Theres no point in using the minify helper, if your doing the tutorial I
sent you. Either one of the other.
Here's the page on which the problem occurs:
http://www.metroatlantaproject.org/registrations/select_a_church
IE is the only browser that has problems with it. When you use IE to
choose a church from the drop down menu and click the continue
registration process button, it spits back an error
I have tried various combinations for validation still nothing is
working.
This is my last attempt and it's still not validating an empty field,
I still get an empty database value (new id no content - instead of an
error message)
?php
class Category extends AppModel
{
var $name =
Hi,
I am working on a website where i need to get a list of articles from
a database, and the original url is something like
http://localhost/articles/article/Article Title here
what im trying to do is reroute it so I can access it with something
like
http://localhost/view/Title here
but I
Are you sure that cake is finding your model? pr($this-Category);
inside your controller. If you see an AppModel instance rather than a
Category instance then you know cake is unable to find the model.
Also, make sure that the form input is correctly sending the fields
you are expecting. If you
+ in URL is encoded , get rid of it.
On May 6, 4:02 pm, volka volker.b...@googlemail.com wrote:
Hi,
I hope someone has a hint for me.
I have a controller named 'questions' and I'd like to set up the
follwing route:
Router::connect('/questions+answers/*', array('controller' =
Key in data array should be same as model alias. If your model named
Tax it have same alias Tax by default and require $this-data['Tax']
['feildname'].
On May 7, 2:41 am, paul...@gmail.com paul...@gmail.com wrote:
I have a table taxes and I'm using the form helper and it is putting
the form
Output $this-data in controller and check actual data you try to
save.
On May 7, 5:35 am, matalina matal...@gmail.com wrote:
I have tried various combinations for validation still nothing is
working.
This is my last attempt and it's still not validating an empty field,
I still get an empty
app_model.php
On May 7, 12:00 am, Nancy nancy.milli...@gmail.com wrote:
So, this was great but I'm wondering if I can go a bit further with
this.
All these tables have queries that are very similar, so similar that I
could use exactly the same code in most of them, like here's an
example:
You say you want a *list* of articles but then use an example with a
title, suggesting you want a route for a specific article. If it's the
latter, you can do:
Router::connect(
'/view/:article_slug',
array('controller' = 'articles', 'action' = 'view'),
array(
Hello
I'm using the TextImage helper.
When setting the ALT text for the image tag, the helper replaces my
text content with the alt text.. So the alt text shows instead.
I've tried looking at why without any success.
To use the helper, I'm doing this:
?php
/* this generates an image using GD
You could use private functions in the controller or if the code lends
to it make your models fat.
Just google something like cakephp fat models skinny controllers
Hope that helps.
http://wiltonsoftware.com
--~--~-~--~~~---~--~~
You received this message
So please tell us what you have done to clarify, where the problem is?
- is it at the client side?
- is it at the server side?
- is it with javascript?
- is it with PHP (assumes CakePHP)?
What have you done?
Enjoy :)
John
On May 7, 1:30 am, Daniel Hammond dani...@northsideumc.org wrote:
67 matches
Mail list logo