Problems after moving to another server and PHP version - Fatal Error Error: include(): Cannot redeclare class debugger

2014-12-02 Thread Anna P
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:

Problem with tree data - find('threaded') displays all, but getting threaded data from node (or using children() function) does not return all records

2014-10-07 Thread Anna P
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(

Re: get the id's from checkbox list

2014-10-07 Thread Anna P
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

Re: get the id's from checkbox list

2014-10-07 Thread Anna P
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

Re: cakePHP File Download was not found or not readable

2014-01-24 Thread Anna P
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

Re: cakePHP File Download was not found or not readable

2014-01-23 Thread Anna P
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:

Paginator and multilingual routes

2013-10-02 Thread Anna P
- 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

What are the cookies set by CakePHP automatically (cookie named CAKEPHP) for?

2013-03-22 Thread Anna P
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

Re: ajax Update in a page with 2 divs

2013-03-22 Thread Anna P
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

Re: What are the cookies set by CakePHP automatically (cookie named CAKEPHP) for?

2013-03-22 Thread Anna P
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

Re: How to change order only for child elements in find('threaded').

2012-11-27 Thread Anna P
() 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

How to change order only for child elements in find('threaded').

2012-11-26 Thread Anna P
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

How to get posts that match specified several tags

2012-10-22 Thread Anna P
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

Re: CakeEmail SMTP syntax error 555 (#5.5.4) while sending e-mail to multiple users (with the use of bcc array)

2012-08-06 Thread Anna P
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

Re: header information in outlook

2012-08-02 Thread Anna P
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

CakeEmail SMTP syntax error 555 (#5.5.4) while sending e-mail to multiple users (with the use of bcc array)

2012-08-02 Thread Anna P
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

Re: header information in outlook

2012-07-30 Thread Anna P
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

Re: Problem with CakeEmail - rewrite default config and bcc delivery does not work

2012-06-19 Thread Anna P
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',

Problem with CakeEmail - rewrite default config and bcc delivery does not work

2012-06-18 Thread Anna P
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',

Web conference scripts suitable for CakePHP ?

2012-02-08 Thread Anna P
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

Data validation in multilingual website (with i18n)

2012-01-23 Thread Anna P
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

Problem with saveAll translations within one form - CakePHP multilingual website

2012-01-23 Thread Anna P
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

CakePHP 2.x - Call to undefined method View::fetch()

2012-01-16 Thread Anna P
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

Re: CakePHP 2.x - Call to undefined method View::fetch()

2012-01-16 Thread Anna P
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

CakePHP AJAX auto-refresh div in specified time interval - is it possible?

2011-10-12 Thread Anna P
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

Help with query (or subquery?)

2011-08-09 Thread Anna P
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,

how to set session variable after render?

2010-06-03 Thread Anna P
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

Re: CakePHP 1.2.6 - problem with displaying form error messages

2010-04-26 Thread Anna P
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

CakePHP 1.2.6 - problem with displaying form error messages

2010-04-23 Thread Anna P
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' =

CakePHP + JS/AJAX - performing actions on browser window close - is it possible?

2010-03-10 Thread Anna P
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

How to run CRON job with the setup on a virtual server?

2009-12-15 Thread Anna P
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

Is it assumed that you should know PHP well before starting with Cake or can you disregard this fact?

2009-10-17 Thread Anna T
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

Re: Allowed memory size exhausted - on clean cakephp install

2009-08-14 Thread Anna P
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

Allowed memory size exhausted - on clean cakephp install

2009-08-13 Thread Anna P
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

Re: How to set 301 redirect in htaccess for domain .com.pl to redirect to .pl

2009-06-08 Thread Anna P
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

How to set 301 redirect in htaccess for domain .com.pl to redirect to .pl

2009-06-07 Thread Anna P
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$

Re: How to set 301 redirect in htaccess for domain .com.pl to redirect to .pl

2009-06-07 Thread Anna P
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

Re: findAllThreaded root hack for version 1.2.x

2009-05-23 Thread Anna P
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

findAllThreaded root hack for version 1.2.x

2009-05-19 Thread Anna P
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

Re: Strange Reguested URL not found problem.

2009-05-08 Thread Anna P
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.

Strange Reguested URL not found problem.

2009-05-06 Thread Anna P
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

Simple chat between two persons? Please help

2009-03-25 Thread Anna P
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

Ajax form FIELDS validation :-) How to?

2008-11-27 Thread Anna P
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

How to update two divs with $ajax-link ??

2008-10-09 Thread Anna P
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!

Re: How to update two divs with $ajax-link ??

2008-10-09 Thread Anna P
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

Validating only several fields in model

2008-10-01 Thread Anna P
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

select options attributes in 1.2

2008-03-10 Thread Anna P
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

findAllThreaded hack with root doesn't work

2008-02-12 Thread Anna P
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

Re: Two dependent select tags with data from DB (ajax?) - please help:)

2008-02-06 Thread Anna P
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

cakephp losing session after redirect

2008-02-06 Thread Anna P
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

Two dependent select tags with data from DB (ajax?) - please help:)

2008-02-01 Thread Anna P
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

Upload behavior does not work

2007-12-11 Thread Anna
$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

Re: form helpers not populating

2007-12-11 Thread 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

Blank page after form submitting

2007-09-19 Thread Anna P
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:-/

Re: Blank page after form submitting

2007-09-19 Thread Anna P
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

Re: Blank page after form submitting

2007-09-19 Thread Anna P
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

PHP session doesn't work outside controller...why?

2007-09-19 Thread Anna P
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

Re: is_file returns false - while the file exists

2007-09-05 Thread Anna P
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

Re: wrong coding in layout variables from beforeRender function

2007-09-04 Thread Anna P
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

Re: wrong coding in layout variables from beforeRender function

2007-09-04 Thread Anna P
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

Re: wrong coding in layout variables from beforeRender function

2007-09-04 Thread Anna P
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

Re: is_file returns false - while the file exists

2007-09-04 Thread Anna P
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

wrong coding in layout variables from beforeRender function

2007-09-03 Thread Anna P
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

Can any1 help? CAKEPHP= a lot of numbers in url and js window not opening in IE

2007-08-24 Thread Anna P
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

Re: Can any1 help? CAKEPHP= a lot of numbers in url and js window not opening in IE

2007-08-24 Thread Anna P
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

How to set title of home page that doesn't have a controller? (../views/pages/home.thtml)

2007-08-06 Thread Anna P
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

Re: submitTag - how to pass the name of submit button?:)

2007-08-02 Thread Anna P
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