Hello.
Recently the application I've created with CakePHP 2.3.0, and which was
settled on a server with PHP 5.3.3-7, has been moved to new environment,
based on PHP 5.4.34-1 version.
On the new environment a fatal error occurs:
Error: include(): Cannot redeclare class debugger
File:
Hello.
I have a Comment model, which uses the Tree Behavior.
Comments are related to Post model, with the use of post_id field in
comments table.
The problem is, as described in topic - when I use the find('threaded')
function like this:
$comments=$this-Comment-find('threaded',
array(
Hello.
I think you need to add some index to the checkboxes (so it would be rather
an array), because if there are several items in $tutor variable, you keep
creating checkboxes with the same name - data[*Model*][available]. So every
checkbox has the same name and you keep overwriting them if
Oh, and if it did not work as expected, try putting a model name before the
available in the checkbox.
Let's say that you use the Tutor model - the code should look like this:
echo $this-Form-checkbox('Tutor.available.'.$i, array('value' = $id,
'checked' = 0, 'hiddenField'=false);
or without
Thanks for suggestion, but I already tried that.
The files folder has 0777 permissions.
I also tried to change files attributes to 0777, but the problem still
occurs.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this
Had anyone else same problem?
I'm using ver 2.4.4 and I have problems with forced downloading files.
When I click a download link, which in generalization does this:
- the /blog/suche/ links are in pagination.
How to fix this? In such way that in the german version, paginated links
will also be german?
Regards and many thanks for help.
Anna
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received
Hello.
I have following question - what are the cookies, which are set
automatically by CakePHP, for?
By cookies set automatically I mean the cookie named CAKEPHP with some
hashed value.
I do not use any cookies in my application (but I use sessions) and I
wonder why is there always a CAKEPHP
Hello.
When I have to update two (or more) different elements, but both of them
with different content, I simply only set 'update' in a form on a element
where I have to display more complex data (for example from database), and
then I update second div using JavaScript (in a view of updated
at is the *session*
cookie.
The hashed value it contains is the session id.
AD
On Friday, 22 March 2013 10:01:56 UTC+1, Anna P wrote:
Hello.
I have following question - what are the cookies, which are set
automatically by CakePHP, for?
By cookies set automatically I mean the cookie
() to create the threaded array.
So, perhaps the simplest approach would be to use 'ASC' by default,
then test for $sort _after_ you get the results back. To switch to
descending order for just the parent comments, run the result through
array_reverse().
On Mon, Nov 26, 2012 at 5:10 AM, Anna
Hello.
I got problem with setting up an order for child elements different than
for parent elements.
I have a blog with comments. Users can switch between comments order -
comments can either be sorted descending or ascending.
The problem is, when the order is set to descending, also the child
Hello.
I'm creating a search engine for a blog and I've got a problem with
selecting posts based on a given, several tags.
I have following models:
- Post (posts)
- Tag (tags)
- PostsTag (posts_tags)
In Post model there is a hasAndBelongsToMany relationship with Tag model
defined.
Let's
It turned out that mail server had limit on number of recipients in one
e-mail (I tried to send one mail to 200 e-mail addresses, the limit was 100
recipients).
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site
I didn't manage to solve the problem using the Mail transport.
However, I switched e-mail transport to Smtp and now it works fine.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help
Hello.
I have following problem: I use Smpt method to deliver e-mails from website.
E-mails which are sent to just one recipient (for example: message with
registration confirmation, message with new password, etc.) work just fine.
The problem is when it comes to send message to multiple
Has somebody solved that issue or know what causes the problem?
I use Outlook Express 6 on XP and it displays e-mail messages correctly
(they are sent as both - text and html).
But with Outlook on Windows 7 e-mail displays header information, and
content in both formats.
I use CakePHP 2.0.5
I managed to switch to a newsletter layout by creating another
config in app/Config/Email.php :
public $newsletter = array(
'transport' = 'Mail',
'charset' = 'utf-8',
'headerCharset' = 'utf-8',
'layout' = 'default',
Hello.
I have set following default config in app/Config/email.php :
public $default = array(
'transport' = 'Mail',
'charset' = 'utf-8',
'headerCharset' = 'utf-8',
'layout' = 'default',
'emailFormat' = 'both',
Hello.
I'm searching for a open source scripts / solutions for on-line web
conferences (like BigBlueButton.org).
Has anyone integrated such solution into CakePHP website?
What scripts or software, which is easy to integrate, would you
recommend?
I need this for an online webinars.
Thank you in
Hello.
I'm building an multilingual website in CakePHP 2.0.5 with the use of
I18n.
My question is: how can I define (in model class) validation rules, so
they apply to specified language version (locale)?
I have an i18n table, languages table (id,code), subpages table
(id,created)
While adding
translate only two fields (name and link, based on the name). The same
situation with editing - only link translation is being updated, and
name isn't.
Anyone has a clue? Or maybe there is some better solution to create
and update dynamic translations with the use of one form?
Regards,
Anna
--
Our
in Cookbook.
Anybody knows what could be the problem?
Thanks in advance for help!
Anna
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions
to fetch
function, as wrote in Cookbook.
Anybody knows what could be the problem?
Thanks in advance for help!
Anna
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
others
Hello there.
I have a question - is it possible to autorefresh content of specified
element (such as div) in given time interval (for example: 10
seconds)?
I need AJAX to do this, because refreshing should result in fetching
the data from database.
I have an CakePHP app, let's call it online
Hello.
It's maybe not such a CakePHP question, but rather regarding a rather
complex (for me) SQL query.
I have a table storing e-mail addresses to which has been sent an
invite to a website:
CREATE TABLE IF NOT EXISTS `recomm_emails` (
`id` mediumint(7) unsigned NOT NULL AUTO_INCREMENT,
wanted to set function afterRender() in AppController and there set
a session variable to switch between showing/not showing animations,
but it seems there is no such function in 1.2.X
How can I accomplish this?
Many thanks in advance,
Anna
Check out the new CakePHP Questions site http://cakeqs.org
Hello. What do you mean by manually?
I don't want to save data to database with just checking if data is
not empty. I want to validate entered data and display errors before
saving to database table.
As I wrote, in model I supply which fields I want to validate - I
supply rule for field and
Hello all.
I have a problem with displaying error messages after form validation.
Model user.php:
var $validate = array(
'fname' = array(
'rule' = array('custom','/^[A-Za-z\ ]{2,30}$/'),
'message' = 'Supply real first name',
'allowEmpty' = false,
),
'lname' =
clicks No, before window is closed, some
actions are performed on Database (order and all its relative
information is deleted).
Many thanks in advance!
Anna
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message
Hello.
I would like to set a CRON job for my application.
In my server administrative panel I want to define the path for the
CRON job.
The problem is, that I cannot give path as URL (like /mysite.com/users/
some_cron_function), but I have to specify physical file that is on a
server (full path to
basics and don't have experience at all in
Php.)
So for short: Is it assumed that you should know PHP well before
starting with Cake or can you disregard this fact?
Thank you in advance.
Anna T
--~--~-~--~~~---~--~~
You received this message because you
OK, thanks for help, it seems that I have NO configuration file on my
server.
--~--~-~--~~~---~--~~
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!
I am moving my web application to dedicated server.
I uploaded all of my app files and voila - under server IP I got blank
page. So I've figured out to install clean cakephp version first and
see if it works there. I uploaded Cakephp 1.2.4.82.84 version and it
displayed me Cake's welcome
Thank you for suggestion, but that doesn't seem to work either. Still
when I enter .com.pl it doesn't redirect me to .pl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send
Hello.
I have two domains with the same content. Let's say that it's - www.domain.pl
and www.domain.com.pl
I want to redirect .com.pl domain to .pl
How to set 301 redirect in htaccess file?
I tried like this:
IfModule mod_rewrite.c
RewriteEngine on
RewriteRule ^www.domain.com.pl$
I also tried following:
IfModule mod_rewrite.c
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?domain.com.pl(.*) [NC]
RewriteRule ^(.*)$ http://www.domain.pl/$1 [R=301,L]
RewriteRule^$ app/webroot/[L]
RewriteRule(.*) app/webroot/$1 [L]
/IfModule
But it doesn't seem
anyone?:)
--~--~-~--~~~---~--~~
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
want to get all children from?
Thanks in advance,
Anna
--~--~-~--~~~---~--~~
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
Thanks for a hint, I didn't realize it could be that kind of problem.
I just changed link from icons to web-icons and voila :-) It
works. Thanks again!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
for any suggestions:)
Anna
--~--~-~--~~~---~--~~
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
cake-php+unsubscr
Hello.
I'm looking for simple chat code for CakePHP 1.2. The chat must be
only between two logged persons (it's not a general chat for everyone,
but a kind of private messaging). If anyone could help I would be very
appreciated.
Anna
--~--~-~--~~~---~--~~
You
Hello! I have a register form with several fields, which I want to
validate in real-time using ajax. Let's say that form has 4 fields:
login_name, pass, confirm_pass, email.
Validation rules in model User are: login - from 3 to 20 letters, pass
- the same, email - VALID EMAIL.
What I want is to
Hi!
I have a problem with updating divs with ajax component. I use $ajax-
link to update one div which holds picture thumbnail and link to its
original size and I have to update another div with just link to the
picture.
How can I update two divs with one $ajax-link ?
Cheers!
Hi again!
I tried this way:
?php echo $ajax-link('Frame product', '/products/frameimage/'.
$p['Product']['id'], array('update' = array('p-image','p-link')); ?
so as the second argument I gave link.
But the problem is that I want to update two divs with two different
things (so I want to call two
Hi!
I have an issue with data validation.
I have model Administrator with fields : firstname,lastname,password
In Administrator model I set validation for every field (let's say
firstname can't be empty, lastname can't be empty and password can't
be empty and can consist only letters).
I want
how do I set options attributes in select helper in 1.2?
:)
--~--~-~--~~~---~--~~
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
Hi! I used hack for findAllThreaded function from this group - I
replaced cake's function with:
function findAllThreaded($root = null, $conditions = null, $fields =
null, $sort = null) {
return $this-__doThread(Model::findAll($conditions, $fields,
$sort), $root);
}
I need this function
belong to the chosen city (it shows
me nothing). Why is that? How to fix this?
Thanks in advance - Anna:)
--~--~-~--~~~---~--~~
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
I'm using version 1.1.18. The problem is: in the login action I set
session variable for user and then redirect. After redirect cakephp is
losing session. I tried with CAKE_SESSION_SAVE - 'php', 'cake' (with
sessions folder writable), CAKE_SECURITY - 'high', 'medium','low'
Nothing works. I
Hello!
I'm wondering if anyone has any simple script or knows good tutorial
about two dependent select tags.
I use and understand a little of JS, but AJAX is too much for me.
I just need this one functionality from AJAX - I have two tables:
cities (id,name) and districts(id,city_id,name)
I want
$html-file('Upload/filename',
array('size'='80') )?
?php echo $html-tagErrorMsg('Upload/filename', 'You must
specify a path on your disk') ?
/p
p
?php echo $html-submit('Upload') ?
/p
What could I be doing wrong?
XOXO
Anna
I tried something just like that yesterday:
$user = $this-requestAction('mshows/edit/5');
It did not work for me, it does not process the id = 5 and send back
the data
even though that works if you type mshows/edit/5 in the address bar.
You have to fetch the data in your controller and send it
Hi, as in the topic - when I submit form (customer registration for
example), cake php displays me blank page (without title and any
content at all), although the form action, routes, URL - are good.
My DEBUG is 3.
Anyone please help cause it's driving me crazy:-/
Thank you for answer:) I solved my problem by putting into controller
$this-render();:
function register() {
$this-render();
//.code...;
}
Don't know why it didn't render the page correctly..
--~--~-~--~~~---~--~~
You received this message
That's what I thought. Oh, and I made a mistake, I use $this-render()
and the end of the code in controller:-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Hi again. Anyone had this thing? I use PHP sessions and in login()
action, when user is authenticated i set:
$_SESSION['login']=$this-data['User']['login']
Under this line i use: var_dump($_SESSION) to check if the variable
was set. And it is.
The problem is, it doesn't exist outside the users
Thank you!
if(file_exists(IMAGES_DIR. 'upload' . DS . 'filename')) worked for
me.
Thank you once again:-))
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
No, I don't use js (as for now).
--~--~-~--~~~---~--~~
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
Yes, there is UTF-8 in layout, DB stores data in UTF-8, encoding for
connection with DB is set to UTF8, in cake there is UTF8 set for DB
connections, I use UTF8 editor it's driving me crazy!:[
--~--~-~--~~~---~--~~
You received this message because you are
Yes it is:]. In fact, in the layout I use:
?php ini_set('default_charset', 'utf-8');
header('Content-Type: text/html; charset=utf-8');?
at the beggining, so the browser knows what the encoding is.
--~--~-~--~~~---~--~~
You received this message because you are
OK so how to use it? When I try
if(is_file(../img/upload/photo_file1_.$item['Item']
['id']..jpg)): (the path, which img src just gives me the right
image)
it doesn't work as well.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi! Anyone has an idea how to solve my problem?;-)
I insert data to database using FCK editor, the data in DB looks OK.
My DB has all the fields in UTF8, in database.php i set encoding =
'UTF8', in app_model.php I have 'set names utf8'. In the views where I
display subpages and it's titles
Hi. To make it quicker, I'm giving you an url to my site where the
problem exists:
http://wolos.pl/galeria/slub/nasza-sesja
When I try to open a photo in IE it gives me error... in FF works fine
code for each pic looks like:
a href=#
onclick=window.open('http://www.wolos.pl/zdjecia/?php echo
ok I managed windows in IE
but the browser still gives me URL with CAKEPHP numbers. don't want to
see that in my adress bar, how to get rid of it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To
Hi:) I have one question. For each page i set title in that page's
controller using $this-pageTitle = ''
But how do I set the title of home page (that lays in views/pages/
home.thtml) that shows up when i go to 'http://www.mysite.com' or
'http://www.mysite.com/index.php' ? That home page
Why yes, it worked:-) Thank you very much!:)
--~--~-~--~~~---~--~~
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
67 matches
Mail list logo