Re: php requirements for 3.X

2016-03-22 Thread Andras Kende
Hello Mike, 5.5.31 is greater than 5.5.5.9 so it will work fine. http://book.cakephp.org/3.0/en/installation.html#requirements • PHP 5.5.9 or greater (including PHP 7). Andras > On Mar 22, 2016, at 5:55 PM, MikeK <michael.ko...@gmail.com> wrote: > > Thanks for your

Re: Upgrade manual from 2.7.5 to 2.8.1

2016-03-11 Thread Andras Kende
Hello, Just replace the entire: /lib/Cake/ with the latest version (do backup first just in case) Check the migration guide for changes between your versions: http://book.cakephp.org/2.0/en/appendices.html Andras Kende > On Mar 11, 2016, at 3:43 AM, Nicklas <ekon...@gmail.com&

Re: Console, shell and cronjob woes

2015-06-10 Thread Andras Kende
Hi Paul, The 777 indeed the quick fix of doing it :( try the official: http://book.cakephp.org/2.0/en/installation.html#permissions http://book.cakephp.org/2.0/en/installation.html#permissions or https://www.google.com/#q=cakephp+tmp+777 https://www.google.com/#q=cakephp+tmp+777 Andras

Re: CakePHP project copy to Ubuntu 14.04 LAMP based VPS

2015-05-31 Thread Andras Kende
try to add /webroot to your apache config maybe ? http://piheno.com/css/base.css http://piheno.com/css/base.css - not working http://piheno.com/webroot/css/base.css http://piheno.com/webroot/css/base.css - working… Andras On May 23, 2015, at 11:55 AM, Ádám Domaföldi domafoldi.a...@gmail.com

Re: Mobile browser display issue

2015-05-07 Thread Andras Kende
that’s bootstrap css framework navbar component http://getbootstrap.com/components/#navbar http://getbootstrap.com/components/#navbar resize the the browser window width on desktop to see… Andras On May 7, 2015, at 3:18 PM, heike merkel heikemer...@gmail.com wrote: I have a problem

Re: 3.x: SessionHelper deprecated, what's the new version of this?

2015-04-21 Thread Andras Kende
Try: ?= $this-Flash-render(); ? https://github.com/cakephp/app/blob/master/src/Template/Layout/default.ctp#L49 https://github.com/cakephp/app/blob/master/src/Template/Layout/default.ctp#L49 Andras Kende On Apr 21, 2015, at 8:56 PM, Joe T. thooke...@gmail.com wrote: Looks like

Re: The view for PostsController::index() was not found.

2015-03-04 Thread Andras Kende
from the screenshot looks like you don’t have : /var/www/html/cake/app/View/Posts/index.ctp but /var/www/html/cake/View/Posts/index.ctp The View folder is outside of app folder ? Andras Kende On Mar 4, 2015, at 9:25 AM, Rohit Pal rohitpal...@gmail.com wrote: NO! I haven't done any

Re: Handle validation rule message inside controller

2015-02-23 Thread Andras Kende
if it doesn’t: if ($this-ModelName-validates()) { // it validated logic } else { // didn’t validate logic $errors = $this-ModelName-validationErrors; } Andras On Feb 21, 2015, at 12:50 AM, giuseppe giorgio gioz...@gmail.com wrote: Hi there, i've start to learn cake php yesterday

CakePHP 3.0 howto disable DebugKit on some actions

2015-02-02 Thread Andras Kende
); } Thanks for any help, Andras -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from

Re: Two tables in the same page

2015-01-29 Thread Andras Kende
', 'dependent' = true ) ); } Comment.php ?php class Comment extends AppModel { public $belongsTo = array( 'Post’ ); } Andras Kende On Jan 29, 2015, at 9:45 AM, logintech123 logint...@gmail.com wrote: Hello I am trying to understand Cakephp but i am missing

Re: cakephp 3.0 time and date

2015-01-24 Thread Andras Kende
, 12:48 AM 1/15/15, 12:48 AM becomes: Domain Time Zone Active Created Modified domain1.com US/Pacific 1 2015-01-15 2015-01-15 Thanks, Andras On Jan 24, 2015, at 4:27 AM, mark_story mark.st...@gmail.com wrote: Your format looks incorrect, as you're

cakephp 3.0 time and date

2015-01-23 Thread Andras Kende
-setToStringFormat('-MM-dd'); $dateuser-timezone = $this-Auth-user('time_zone'); $this-set(compact(‘dateuser')); echo $dateuser; = 2015-01-23 Layout/default.ctp ?php echo $dateuser; ? = 2015-01-23 08:16:33?? Thanks, Andras -- Like Us on FaceBook https

Re: Reflectionclass loading class from wrong directory

2015-01-10 Thread Andras Kende
Your could try this: Make sure each app has unique $prefix in core.php https://github.com/cakephp/cakephp/blob/master/app/Config/core.php#L362 https://github.com/cakephp/cakephp/blob/master/app/Config/core.php#L362 Andras Kende On Jan 9, 2015, at 8:11 PM, Ryan de Haast haas...@mweb.co.za

Re: cant send email

2014-12-29 Thread Andras Kende
-config(‘gmail'); or $Email = new CakeEmail(‘gmail’); Andras Kende On Dec 28, 2014, at 11:27 PM, ajt jagguy...@gmail.com wrote: I cant send an email as I get a generic error Error: An Internal Error Has Occurred. In config\email.php I have this for a real gmail account(pswd hidden

Re: Cron Jobs

2014-11-22 Thread Andras Kende
for in the default locations. So I guess you could start from something like: /web/cgi-bin/php5_3 -c /etc/php.ini -q -d register_argc_argv=on $HOME/html/mydomain/lib/Cake/Console/cake.php -app $HOME/html/mydomain/app Notice Andras Kende http://www.kende.com On Nov 22, 2014, at 2:16 PM, Ed Propsner

Re: Unable to load the webpage because the server sent no data

2014-11-19 Thread Andras Kende
CakePHP 1.3 works with php 5.4, I would try these: - change debug = 2 in core.php temporarily and look for errors - delete files inside /tmp/cache/ /tmp/logs and look for errors - make sure you have latest 1.3.20 Andras Kende On Nov 19, 2014, at 5:40 AM, Simon Svast videospotn...@gmail.com

Re: How can I access vendor file in cron or webroot

2014-10-31 Thread Andras Kende
For cron create a shell : http://book.cakephp.org/2.0/en/console-and-shells.html http://book.cakephp.org/2.0/en/console-and-shells.html Load the vendor in a similar fashion as you already doing it in the controller or just require_occe… Andras Kende On Oct 30, 2014, at 9:43 PM, Archana

Re: Warning (512): cake_model cache was unable to write

2014-09-29 Thread Andras Kende
Try deleting the files within app/tmp folders. and adding 'mask' = 0777 to core.php Cache::config('_cake_core_', array(... Cache::config('_cake_model_', array(... https://github.com/cakephp/cakephp/blob/master/app/Config/core.php#L294 Andras Kende On Sep 29, 2014, at 4:02 PM, ajt jagguy

Re: From JQuery (a hidden field value) to PHP

2014-09-16 Thread Andras Kende
$(document).ready(function() { var hiddenField = $(#hiddenField).attr(value); alert(hiddenField); }); Andras Kende On Sep 16, 2014, at 10:20 AM, Cengiz Tuerkoglu cengiz.tuerko...@googlemail.com wrote: Dear Experts, is it possible to read a value of a hidden field

Re: CakePHP 3 controller with prefix

2014-09-08 Thread Andras Kende
' = 'InflectedRoute']); $routes-connect('/:controller/:action/*', [], ['routeClass' = 'InflectedRoute']); }); Andras Kende On Sep 8, 2014, at 1:00 PM, Tiago Barrionuevo tiago@gmail.com wrote: When I'm using a prefix (admin) I get the following error trying to access '/project/admin/user

Re: CakePHP 3 controller with prefix

2014-09-08 Thread Andras Kende
that the :controller and :plugin parameters are correctly lowercased. Andras On Sep 8, 2014, at 3:56 PM, Tiago Barrionuevo tiago@gmail.com wrote: Great, that's it! I just didn't understand it... Isn't it the default cake behavior about controller's filenames (CamelcasedController.php) ? If so I

Re: Basic data fetching

2014-08-28 Thread Andras Kende
; view: ?php echo $this-Form-input('device_id', array('empty' = '-')); ? Andras Kende On Aug 28, 2014, at 6:36 AM, Tristan Plumley plumleytris...@gmail.com wrote: Thanks for the reply. I was actually doing your second example until i decided to build an array manually. The reason

Re: Basic data fetching

2014-08-27 Thread Andras Kende
-find('list',array('conditions' = array('customer_id'=$customerId; http://book.cakephp.org/2.0/en/models/retrieving-your-data.html Andras Kende On Aug 27, 2014, at 12:25 PM, Tristan Plumley plumleytris...@gmail.com wrote: Hello, I'm fairly new to cakephp and have a few pretty basic questions

Re: CakePHP 3.0 orm query question

2014-08-26 Thread Andras Kende
}) * (`lng` - {$lng})) / 180) * {$unit}, 5)], 'having' = distance = $distance, )); Just needed to use associative array, in the fields.. Thanks, Andras On Aug 26, 2014, at 1:10 AM, José Lorenzo jose@gmail.com wrote: $query = $table-find() $query-select

Re: migration issue

2014-08-25 Thread Andras Kende
try this : http://stackoverflow.com/questions/21455700/cakephp-error-call-to-a-member-function-parseaccept-on-a-non-object or try searching the error message in google Fatal error: Call to a member function parseAccept() on a non-object for more results Andras On Aug 25, 2014, at 5:39 PM

CakePHP 3.0 orm query question

2014-08-24 Thread Andras Kende
... Thank you, Andras -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: migration issue

2014-08-23 Thread Andras Kende
Check these : http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::image http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::css 1.3 - 2.0 its changed from $html-image to $this-Html-image etc... Andras On Aug 23, 2014, at 2:47 PM, 'Dallas' via

Re: migration issue

2014-08-23 Thread Andras Kende
.. Andras Kende On Aug 23, 2014, at 7:44 PM, 'Dallas' via CakePHP cake-php@googlegroups.com wrote: Thank you Andras - I did fiqure that out, I also saw that when I transfered my helper folder from previous cake it was labeled helpers - now on every page I have the same error if you could

Re: GET or POST

2014-08-09 Thread Andras Kende
Stave, To keep things simple as possible I would : Edit with a changed id should not save as new record, there is add() for that action.. Manipulating the id in the url should either redirect to index with a flash warning message or throw an error.. Andras On Aug 8, 2014, at 5:21 PM, Steve

Re: GET or POST

2014-08-08 Thread Andras Kende
user has access to the record to be deleted... If you need to hide id, then one option is to use uuid() as primary key. Andras On Aug 8, 2014, at 1:33 PM, Steve Thomas smt9...@gmail.com wrote: Thanks Mark, I am using ACL. So for example, if a role such as a manager can list all the employees

Re: url canged but view did'nt

2014-08-05 Thread Andras Kende
Looks like a wrong .htaccess http://www.nama-bayi.co/123 http://www.nama-bayi.co/abc http://www.nama-bayi.co/index.php/Namabayis/add Andras Kende On Aug 5, 2014, at 10:00 AM, Zippo Indonesia sekelo...@gmail.com wrote: Hallo All my name marzuki today im learning cakephp 2.X no problem

Re: Muiti database in cakephp 1.3

2014-07-03 Thread Andras Kende
look here: https://www.google.com/search?q=cakephp+useDbConfig Andras Kende On Jul 3, 2014, at 2:53 AM, tuan kim kimp...@gmail.com wrote: hi there, Can you tell more details. I'm not sure about your answer. Thanks ! Vào 16:34:57 UTC+7 Thứ năm, ngày 03 tháng bảy năm 2014, Stephen S đã

Re: Cakephp 2 - dynamic meta tags from beforeFilter

2014-07-01 Thread Andras Kende
('meta_description')); Andras Kende On Jul 1, 2014, at 2:33 AM, vbpupil vbpu...@gmail.com wrote: Hi Guys Im trying to generate dynamic facebook meta tags for a share button eg: meta property=og:description content=description text/ meta property=og:image content=http://www.myurl.co.uk

Re: CakePHP 2.5.2 - Wizard previous step reload by ajax.

2014-06-30 Thread Andras Kende
do you also use Sessions on that wizard ? Andras Kende On Jun 30, 2014, at 2:36 AM, Archana Goyal archanagoya...@gmail.com wrote: Hi, I am create wizard form. On every next steps of form my data saved in database by ajax. But I am not able to reload form data on previous botton.How do

Re: cakephp graphs

2014-06-22 Thread Andras Kende
, Andras Kende On Jun 22, 2014, at 9:39 PM, ajt jagguy...@gmail.com wrote: Hi, I need to do some graphs in cakePHP and I am getting bigged down and wht to use and how to install it. 1)Jgraph is used with cakephp but the examples are for cakephp v 1 and dated 7 years ago. This looks outdated

Re: Missing Controller

2014-06-15 Thread Andras Kende
the error message is pretty clear :) move your index.ctp into C:\xampp\htdocs\CakeTooDoo\app\View\Tasks\index.ctp also rename task.php to Task.php Andras Kende On Jun 14, 2014, at 8:03 PM, sirben ochoa.dex...@gmail.com wrote: I do have: Model - task.php Controller - TasksController.php

Re: button wont display as it should

2014-06-03 Thread Andras Kende
btn-primary’ to html-links … https://github.com/andraskende/cakephp-shopping-cart/blob/master/app/View/Users/admin_view.ctp#L41 Andras Kende On Monday, June 2, 2014 3:53:05 PM UTC-7, jagguy wrote: No I button not a image link and with a parameter too I need. If you look at this video it has

Re: Hide Function parameter from URL when a request is made

2014-06-03 Thread Andras Kende
You could use sessions. $this-Session-write('parameter1', $parameter1); $parameter1 = $this-Session-read('parameter1'); Andras Kende http://www.kende.com On Jun 3, 2014, at 1:40 AM, Intesar Haider intesar.haid...@gmail.com wrote: I want to hide the action parameters from my url when

Re: cant edit but can add row cakephp

2014-05-28 Thread Andras Kende
Change : $this-Tutorsession-setFlash To $this-Session-setFlash Andras Kende http://www.kende.com/ On Wednesday, May 28, 2014 7:10:55 AM UTC-7, jagguy wrote: Hi, In cakephp I cant edit a row from my mysql db but I can add a new row on the same table without error. Not sure what to do

Re: Containable with Pagination

2014-02-21 Thread Andras Kende
On Feb 21, 2014, at 1:23 AM, Justin Atack justinat...@gmail.com wrote: Hi Andras, I'm keen to try and find the error in my code so that I can learn. I have fixed the code so that's its like the manual but it's still not working. I have kept a copy of the working code :) $this-paginate

Re: Containable with Pagination

2014-02-20 Thread Andras Kende
( ), ) ); $this-set('schedules', $this-Paginator-paginate()); } Andras Kende On Feb 20, 2014, at 3:49 PM, Justin Atack justinat...@gmail.com wrote: Hi All, I'm having a problem getting Containable behaviour working

Re: How to write custom SQL queries instead of using find()?

2014-02-20 Thread Andras Kende
http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#model-query ? Andras Kende On Feb 20, 2014, at 11:35 PM, Sam lightai...@gmail.com wrote: While find() is good enough for most, I would like to write custom SQL queries instead of using find(). How can that be done in cakephp

Re: Containable with Pagination

2014-02-20 Thread Andras Kende
You had this incorrectly : $this-paginate['contain'] = array( Manual: $this-paginate['User'] = array( 'contain' = array('Profile', 'Account'), 'order' = 'User.username' ); $users = $this-paginate('User'); Andras Kende On Feb 20, 2014, at 10:43 PM, Justin Atack justinat

Re: the Form with method GET generate incorrent URL

2013-12-20 Thread Andras Kende
as POST parameters and transform it to the named during redirect, and sets Controller::data back if the GET method was used during component call. Andras Kende On Dec 19, 2013, at 6:12 AM, Mukesh Ashtekar ashtekarmuk...@gmail.com wrote: Have You Found solution for this ??? I am also looking

Re: missing controller error in cakephp

2013-12-08 Thread Andras Kende
In cakephp 2+ filenames are CamelCased so rename app/controller/users_controller.php to app/Controller/UsersController.php app/app_controller.php to app/Controller/AppController.php also: app/View/users/login.ctp to app/View/Users/login.ctp etc.. Andras Kende http://www,kende.com

Re: Starnge redirect from http to https on login

2013-11-21 Thread Andras Kende
maybe add $this-Auth-loginAction = array('controller' = 'users', 'action' = 'login'); Andras Kende http://www.kede.com On Nov 21, 2013, at 1:03 PM, dtemes dte...@gmail.com wrote: We have just installed a self signed ssl cert on the apache server and doing some tests with our app running

Re: Set database config at login

2013-09-12 Thread Andras Kende
AppModel { public $useDbConfig = 'company_db_name'; } Andras Kende http://www.kende.com On Sep 12, 2013, at 1:57 AM, Olivier CHEMIN olivier.che...@gmail.com wrote: Hi all, I have an app wich uses multiple databases. One database ('default') for common information, users, companies, etc

Re: Wrong AppController called when 2 projects are accessed simultaneously

2013-08-21 Thread Andras Kende
try to change prefix to unique ... core.php // Prefix each application on the same server with a different string, to avoid Memcache and APC conflicts. $prefix = 'myapp_'; Andras Kende http://www.kende.com On Aug 21, 2013, at 12:48 AM, JD julien.duh...@gmail.com wrote: Hi, I am using

Re: Simple controller action takes over 13 seconds

2013-08-14 Thread Andras Kende
data from mysql whats needed.. part of the code could be helpful... Andras Kende http://kende.com On Aug 13, 2013, at 3:44 PM, Xtagon xta...@gmail.com wrote: Versions: CakePHP 2.3.9 running on Apache 2.2 with PHP 5.4 on Windows. I created a new CakePHP app and made a basic controller, model

Re: Problem with save method

2013-08-08 Thread Andras Kende
$this-request-data['Event]['image] = false; OR unset($this-request-data['Event]['image]); $this-Event-save($this-request-data); Andras Kende On Aug 7, 2013, at 6:01 AM, kapil agrawal kapilagrawal...@gmail.com wrote: Hi! I am a new bee in cakePHP, look at following scenario I have

Re: Is Cake 3 dead?

2013-06-17 Thread Andras Kende
https://github.com/cakephp/cakephp/commits/3.0 Andras Kende On Jun 16, 2013, at 9:07 PM, Advantage+ movepix...@gmail.com wrote: I thought Sept was realse date, you look at the updates nothing has been touched in months! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us

Re: Foreach saveField fails

2013-05-30 Thread Andras Kende
, as those need to be updated as well.. Andras Kende http://www.kende.com On May 30, 2013, at 11:38 AM, Advantage+ movepix...@gmail.com wrote: I am switching up a table 'id' field and simple doing a find all, generate a UUID, and try to update the field foreach but all its doing is creating new

Re: caching

2013-05-08 Thread Andras Kende
• Remove the unlink string from the disable_functions at php.ini* file • Ask your hosting provider to remove the string above if you don't have an access to thephp.ini* file • Change hosting provider which allows the running of the unlink function. Andras Kende On May 8, 2013, at 12:01 AM, raj

Re: Cake is NOT able to connect to the database. Non standard port. Tried unix_socket, didnt work.

2013-04-18 Thread Andras Kende
' = 'database_name', 'prefix' = '', //'encoding' = 'utf8', ); Andras Kende http://www.kende.com On Apr 14, 2013, at 7:42 PM, Tom Berchenbriter t...@sacsellhome.com wrote: Ive added unix_socket to my database.php 'unix_socket' = '8973', but Im

Re: How to install CakePHP 2.x on OS X 10.8?

2013-03-05 Thread Andras Kende
try these : change /etc/php.ini date.timezone to: date.timezone = 'America/Chicago' make tmp folder writeable: sudo chmod -R 777 /Library/WebServer/Documents/cake2/app/tmp/ also all you setup issues is listed here: http://book.cakephp.org/2.0/en/installation.html Andras Kende http

Re: Error on Model

2013-02-28 Thread Andras Kende
Thats not a CakePHP but a MySQL error message… do you enough disk space available on you server ? Andras Kende On Feb 28, 2013, at 3:27 AM, rogerbenevento rogerbeneve...@gmail.com wrote: Hello, sorry my english I have a problem that I don't have idea what can be: Error: SQLSTATE[HY000

html link helper with subdomain SubdomainRoute only first routeClass is working correctly

2013-02-21 Thread Andras Kende
. '.' . $domain . $path; } return $path; } } template : ?php echo $this-Html-link($recipe['Recipe']['name'], array('subdomain' = $recipe['User']['slug'], 'controller' = 'recipes', 'action' = 'view', 'slug' = $recipe['Recipe']['slug'])); ? Thanks, Andras -- Like Us on FaceBook https

Re: Load different config file

2013-01-18 Thread Andras Kende
I guess you could do something like: bootstrap.php $tld = strrchr($_SERVER['SERVER_NAME'], '.'); Configure::load('config' . $tld); or with parse_url or regex. Andras Kende http://www.kende.com On Jan 18, 2013, at 7:08 AM, MetZ met...@gmail.com wrote: Hi.. I am wondering

Re: Cake 2.0 - How to Specify a Primary Key

2013-01-08 Thread Andras Kende
http://book.cakephp.org/2.0/en/models/model-attributes.html#primarykey app/Models/User.php : class User extends AppModel { public $primaryKey = 'users_id'; } Andras Kende http://www.kende.com On Jan 8, 2013, at 1:52 PM, Brian QIS bhan...@quasars.com wrote: Hello, We're coming

Re: PayPal Pro Component

2012-12-14 Thread Andras Kende
these are the correct paypal api urls: paypal endpoint = 'https://api-3t.paypal.com/nvp'; paypal endpoint sandbox = 'https://api-3t.sandbox.paypal.com/nvp'; Andras Kende http://www.kende.com On Dec 14, 2012, at 6:02 PM, Advantage+ movepix...@gmail.com wrote: Has anyone come across a good working

Re: A list of open source webapps to study ?

2012-12-06 Thread Andras Kende
Look: http://book.cakephp.org/2.0/en/tutorials-and-examples.html ! Andras On Dec 5, 2012, at 11:01 PM, Alok Mishra aloksoft2...@gmail.com wrote: any buddy help me am php developer exp guys but an naver worke din cakephp pls help me how to start cakephp On Thu, Dec 6, 2012 at 12:29

Re: CakePHP 2.3.0-RC1 and 2.2.4 released

2012-12-04 Thread Andras Kende
Just replace your existing (2.2.3) /lib/Cake with the 2.2.4 /lib/Cake should work fine... Andras Kende On Dec 3, 2012, at 9:57 PM, Novrian YF andi.novr...@gmail.com wrote: Hi Jose I'm new in Cake. I've exploring with it in about one month. I've use 2.2.3 and I wanna upgrade to 2.2.4

Re: links outside root directory

2012-12-04 Thread Andras Kende
Seems your have url as www.domain.com instead of http://www.domains.com; in your database….. Its ugly, but you could try: ?php echo $html-link($dba['Dba']['name'], 'http://' . $dba['Dba']['url']) ? might want to prefix your urls with http://; in the database Andras Kende http://www.kende.com

Re: Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; But execute is trying to use function name as the $sql

2012-12-04 Thread Andras Kende
? Andras Kende http://www.kende.com On Dec 4, 2012, at 10:11 AM, glk g...@kaup.com wrote: Hello all, thank you in advance for any help you may be able to provide. I'm using cakePHP 2.2.1 The following code works perfectly: class OptionsController extends AppController { var

Re: portal to server cluster problem

2012-11-29 Thread Andras Kende
I would check these first : app/config/core.phpchange to Configure::write('debug', 2); too see if any error messages showing up… chmod -R 777 app/tmp/ could be that your site is older cakephp core their server is newer php… might need to update cake core… Andras Kende http

Re: Dynamic Subdomains as Parameter

2012-11-24 Thread Andras Kende
), 'limit' = 50 )); debug($cityresults); } else { //site at www. } } Andras Kende http://www.kende.com On Nov 24, 2012, at 2:45 PM, treckstar trecks

Re: Pagination

2012-11-19 Thread Andras Kende
= $this-Post-Category-paginate('Category'); //print_r($posts); // to test here ... $this-set(compact('posts')); } But since you paginating categories it may be better to do this from the categories controller.. Andras Kende http:///www.kende.com On Nov 19, 2012

Re: Pagination

2012-11-19 Thread Andras Kende
belong to multiple categories ? Andras On Nov 19, 2012, at 3:45 PM, Paul Willis paul.wil...@me.com wrote: And when I say I can't get it to work it is because using the code from Andras gives the error... Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error

Re: Session is not expiring when browser is closed

2012-11-10 Thread Andras Kende
In Chrome thats a settings unfortunately not cakephp related: http://code.google.com/p/chromium/issues/detail?id=130291 not sure about Mozilla... Andras Kende http://www.kende.com On Nov 10, 2012, at 3:15 AM, Chandru M chandr...@gmail.com wrote: Hi all, I am struck with this peculiar

Re: Routing Again

2012-11-07 Thread Andras Kende
http://wiki.dreamhost.com/Making_stats_accessible_with_htaccess add to top of .htaccess IfModule mod_rewrite.c RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html).*$ [NC] RewriteRule . - [L] /IfModule Andras Kende http:/www.kende.com On Nov 7, 2012, at 12:01

Re: Auth-deny fails after Auth-allow('*')

2012-11-07 Thread Andras Kende
Try: $this-Auth-allow(); its changed in cake 2.2 ... Andras Kende http://www.kende.com On Nov 7, 2012, at 12:10 AM, Sam lightai...@gmail.com wrote: Sorry for missing out the version number. I am using CakePHP ver2.2.1 On Sunday, November 4, 2012 9:30:17 PM UTC+8, euromark wrote: you do

Re: Odd array structure when using Model-query()

2012-10-16 Thread Andras Kende
results and move from ,classifications to Locations... Andras Kende http://www.kende.com On Oct 16, 2012, at 6:43 PM, bmcelhany bmcelh...@gmail.com wrote: Unfortunately, that didn't change anything. On Tuesday, October 16, 2012 5:10:30 PM UTC-7, cricket wrote: Try adding the model alias

Re: Error: Call to a member function find() on a non-object

2012-10-15 Thread Andras Kende
try to comment out var $name = 'addresses'; or change it to: var $name = 'Address'; Andras Kende http://www.kende.com On Oct 15, 2012, at 4:58 PM, Russell Brown r...@russsoftware.com wrote: Error: Call to a member function find() on a non-object File: c:\wamp\www\cake222\app\Controller

Re: CakePHP 2.2.2 and DebugKit don't play nice

2012-10-02 Thread Andras Kende
Add Session to components in app controller Andras Kende 818-851-1177 and...@kende.com http://www.kende.com On Oct 2, 2012, at 13:57, Paul Willis paul.wil...@me.com wrote: I created a CakePHP 2.2.2 app. I did the basic installation steps, security salt, /tmp permissions etc. All the green

Re: Session check problem

2012-09-24 Thread Andras Kende
based on your code below I would try : ?php if($this-Session-check('user')) : ? SIGNIN CONTENT ?php else: ? NOT SIGNIN CONTENT ?php endif ? Andras Kende http://www.kende.com On Sep 24, 2012, at 1:37 AM, Chris chris...@yahoo.com wrote: thanks Andras,... it works,... but I'm

Re: Session check problem

2012-09-23 Thread Andras Kende
try to add 'Session' to your components… public $components = array('Session', 'Cookie', 'RequestHandler'); Andras Kende http://www.kende.com On Sep 23, 2012, at 2:55 PM, Chris chris...@yahoo.com wrote: hi guys,... having a problem to migrate to a new version 2.2.2 in AppController I

Re: Is it possible to get find() to bypass associated model?

2012-09-17 Thread Andras Kende
easiest way if only need records from current model: $records = $this-Record-find('all', array( 'recursive' = -1, )); Andras Kende http://www.kende.com On Sep 17, 2012, at 2:10 AM, Lightee lightai...@gmail.com wrote: Dear Cakephp experts, When I use find('all), all the records

Re: XML export basics

2012-09-04 Thread Andras Kende
Try to add: App::uses('Xml', 'Utility'); Andras Kende http://www.kende.com On Sep 4, 2012, at 4:11 PM, kevin.ncbible ke...@ncbible.com wrote: Hello ... and thank you for being willing to offer your time and expertise to help me! My ultimate goal is to take the data from one of my

Re: One site logs the other out in the same browser

2012-08-31 Thread Andras Kende
and APC conflicts. $prefix = 'myapp_'; Andras Kende http://www.kende.com On Aug 31, 2012, at 1:12 AM, Jeremy Burns jeremybu...@classoutfit.com wrote: I have two 2.2.1 Cake sites open in the same browser (doesn't matter if it's Safari or Firefox). If I log in on one, then go to the other

Re: Subdomain as parameter

2012-08-18 Thread Andras Kende
(); ………... } Andras Kende http://www.kende.com On Aug 17, 2012, at 11:19 PM, Reza Talamkhani reza.talamkh...@gmail.com wrote: Hi; I need to get subdomain as a parameter in CakePHP... Please help me how to sent subdomain as parameter to controllers... -- You received this message because you

Re: Strict errors all over the place

2012-07-02 Thread Andras Kende
Looks like you installed older 1.2 / 1.3 branch… is wampserver has php 5.4 ? Try with this cakephp 2.2 : https://github.com/cakephp/cakephp/zipball/master Andras Kende http://www.kende.com On Jul 2, 2012, at 10:43 AM, MrJinPengyou wrote: Hi I just started to learn CakePHP and I use the most

Re: Ajax Pagination not working ?

2012-06-23 Thread Andras Kende
I think Paginator-numbers, Paginator-next, Paginator-prev has to be inside the div id=posts…../div Andras Kende On Jun 23, 2012, at 1:54 AM, JonStark wrote: No one has a clue ? This is driving me crazy. Thanks a lot. Le vendredi 22 juin 2012 18:03:11 UTC+2, JonStark a écrit : I don't

Re: Ajax Pagination not working ?

2012-06-23 Thread Andras Kende
google : Uncaught ReferenceError : $ is not defined this looks like jquery not loaded error… I would put jquery at the top inside head script src=https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js; type=text/javascript/script Andras Kende http://www.kende.com On Jun 23, 2012

Re: $this-loadModel and performance

2012-06-22 Thread Andras Kende
sure to only pull data what you need, use fields, recursive, contain…. Andras Kende http://www.kende.com On Jun 22, 2012, at 6:40 AM, JonStark wrote: Even when having relationships (hasMany and such) implemented, I feel the need to user $this-loadModel to display related data. Indeed, when

Re: $this-loadModel and performance

2012-06-22 Thread Andras Kende
the code below should work fine more detail: http://nuts-and-bolts-of-cakephp.com/2009/03/27/paginate-associated-models-data-in-cakephp/ loadModel is not a bad way of doings things, you just don't need it in this case as your User hasMany Post... Andras Kende http://www.kende.com On Jun 22

Re: How to use Auth in Model

2012-06-15 Thread Andras Kende
; } Andras Kende On Jun 14, 2012, at 11:20 PM, Mangesh Sathe wrote: Hello all , i am using $this-Auth-password in User model. it gives error Notice (8): Undefined property: User::$Auth [APP/models/user.php, line 48] how can i access Auth in model How can i encode password before save

Re: Missing Database Data?

2012-06-07 Thread Andras Kende
Similar happened when I left the delete links as is … and googlebot crawled throughout them deleting everything… - check your websrver logs... Andras Kende http://www.kende.com On Jun 7, 2012, at 6:12 AM, April wrote: I baked and themed an entire website on Tuesday. Everything was working

Re: get some value from params

2012-06-04 Thread Andras Kende
Try: $this-request-query['_value']; Andras Kende On Jun 4, 2012, at 4:31 AM, hoss7 wrote: i have cakephp 2.1.2 and when i am run: pr($this-params); i have this: akeRequest Object ( [params] = Array ( [plugin] = [controller

cakephp 2 tinyint(1) return as boolean changes

2012-05-24 Thread Andras Kende
they are strict boolean values. For now I set : form helper manually to : echo $this-Form-checkbox('is_active'); and db is_active field to : int(1). Could you confirm if this is the recommended way to handle 0/1 values in cakephp 2.x ? Thanks, Andras Kende -- Our newest site for the community

Re: CakePHP 502 Bad Request

2012-05-16 Thread Andras Kende
I would check back later, look like temporary issue with server Andras Kende On May 16, 2012, at 12:30 AM, Karan Garg wrote: I am getting the 502 Bad Request Error when I am trying to open the official website of the CkaePHP community. Please help me on the same. Links giving errors

Re: Scaffold with CakePHP 2.1.2 works with Add but Edit/View/Delete all cause errors

2012-05-08 Thread Andras Kende
Check id field in the db It looks like they are empty Andras Kende 214 799 1177 and...@kende.com http://www.kende.com On May 8, 2012, at 4:07, Ludovic Ferre ludovic.fe...@gmail.com wrote: I am new to CakePHP and am following the Packt Publishing book to get used to the tool (and challenge

Re: Google Map interface question

2012-04-30 Thread Andras Kende
://developers.google.com/maps/documentation/javascript/demogallery Andras Kende http://www.kende.com On Apr 29, 2012, at 10:33 PM, Daniel Baird wrote: To get the long and lat, you have to use javascript, and the Google Maps API -- so you mightn't get much help on that from this CakePHP

Re: Session unstable?

2012-04-06 Thread Andras Kende
You could add debug_kit to your site so its easier to debug whats happening with your sessions… sessions are good choice for shopping cart no need for cookies or cache... Andras Kende On Apr 6, 2012, at 1:11 PM, heohni wrote: Hi, I just build a kind of small shoppingcart and while

Re: (Cake2.1) Read from RSS Feed and output in view

2012-03-14 Thread Andras Kende
Here is a simple example: https://github.com/andraskende/youtube-scraper-cakephp-app/blob/master/Controller/VideosController.php Look at : public function admin_import(){ it reads from youtube rss feed to an array an shows that in the view... Andras Kende On Mar 14, 2012, at 3:08 AM, heohni

Re: create duplicate record

2012-02-14 Thread Andras Kende
try to add: $this-Ladder-create(); Andras Kende On Feb 15, 2012, at 1:12 AM, elogic wrote: Thanks, This is what I have: // GET THE EXISTING RECORD, REMOVE THE ID, UPDATE THE LEVEL AND SAVE // -- $existing_id = $this-request

Re: Help making a query to select all Posts which have lots of Comments

2012-02-07 Thread Andras Kende
Hello, You could do it easily with counterCache http://book.cakephp.org/1.3/view/1033/counterCache-Cache-your-count Andras Kende http://www.kende.com On Feb 7, 2012, at 5:22 PM, andrewperk wrote: Hello, I have a Post model with each Post can have many Comments and each Comment belongs

Re: Problem with ordering by a calculated field

2012-01-29 Thread Andras Kende
I would start the find on Postcode and contain the User Would do a $locations = find('all' ….) as its easier to debug($locations) , once thats working correctly then change it to paginate... try order :'order' = 'distance ASC' Andras Kende On Jan 29, 2012, at 3:35 PM, Daniel wrote: I

Re: Find(all) query in multiple table

2012-01-21 Thread Andras Kende
The issue is Staff is not being joined, are the relationships correct in the models ? Also 'Event.id = Staff.user_id' I think this likely 'Event.user_id = Staff.user_id' …. Also since you looking for events you could start the query from events not from users… Andras Kende http

Re: Problem with Paginate (Cake 2.0.5)

2012-01-13 Thread Andras Kende
automatically. Andras Kende http://www.kende.com On Jan 12, 2012, at 6:10 PM, Chooch Schubert wrote: I have followed the 2.0 book to add pagination to a controller/view. I get the paginate controls and they are rendering correctly (they *think* I'm doing things like next page and sort when I

Re: minor upgrading

2012-01-12 Thread Andras Kende
Backup Just replace your cake folder with the one from 1.3.14 version. Leave the app folder as is. Andras Kende On Jan 12, 2012, at 7:53 AM, Nico DeHerdt wrote: I inherited a CakePHP 1.3.8 application How does one do an upgrade to the latest 1.3.14 without overwriting/wiping scripts

  1   2   3   >