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 wrote: > > Thanks for your eloquent reply - HOWEVER the latest stabl

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 wrote: > > Hi All, &

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 or 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 - not working http://piheno.com/webroot/css/base.css - working… Andras > On May 23, 2015, at 11:55 AM, Ádám Domaföldi wrote: > > Hi! >

Re: Mobile browser display issue

2015-05-07 Thread Andras Kende
that’s bootstrap css framework navbar component 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 wrote: > > I have a problem displaying my shoppin

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

2015-04-21 Thread Andras Kende
Try: 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. wrote: > > Looks like Ses

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 wrote: > > NO! I haven't done any redirect

Re: Handle validation rule message inside controller

2015-02-23 Thread Andras Kende
http://book.cakephp.org/2.0/en/models/data-validation/validating-data-from-the-controller.html First, set the data to the model: $this->ModelName->set($this->request->data); Then, to check if the data validates, use the validates method of the model, which will return true if it validates and fa

CakePHP 3.0 howto disable DebugKit on some actions

2015-02-02 Thread Andras Kende
Hello, I would like to disable DebugKit Toolbar on some area on my test website using CakePHP 3.0 config/app.php $config = [ ‘debug’ => true , Tried adding to to AppController as: use Cake\Core\Configure; … public function beforeFilter(Event $event) { Configure::write(‘debug’, false)

Re: Two tables in the same page

2015-01-29 Thread Andras Kende
array( > 'Comment' => array( > 'className' => 'Comment', > 'foreignKey' => 'post_id', > 'dependent' => true > ) > ); > } > > Comment.php > class

Re: cakephp 3.0 time and date

2015-01-24 Thread Andras Kende
Hi Mark, Thanks for the help I saw -MM-dd format at http://book.cakephp.org/3.0/en/core-libraries/time.html#setting-the-default-locale-and-format-string For now just did this inside the user layout as this doesn’t affect the formatting of other datetime fields in the views… Time->format(d

cakephp 3.0 time and date

2015-01-23 Thread Andras Kende
Im trying to pass a logged in user current date with timezone offset in ‘Y-m-d’ format from controller to view in CakePHP 3.0. Somehow date format becomes datetime format once in the view. AppController.php - beforeFilter $dateuser = Time::now(); $dateuser->setToStringFo

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 wrote: &g

Re: cant send email

2014-12-29 Thread Andras Kende
fault’); Try: $Email->config(‘gmail'); or $Email = new CakeEmail(‘gmail’); Andras Kende > On Dec 28, 2014, at 11:27 PM, ajt wrote: > > > > I cant send an email as I get a generic error > Error: An Internal Error Has Occurred. > > In config\email.php I h

Re: How to insert Hindi text in database using cakephp

2014-12-15 Thread Andras Kende
Check if your database config has ‘encoding’ => ‘utf8’ uncommented… https://github.com/cakephp/cakephp/blob/master/app/Config/database.php.default#L75 If you insert hindi text to mysql manually, is your cakephp app displays it correctly on a results ? Andras Kende http://www.kende.com &

Re: Cron Jobs

2014-11-22 Thread Andras Kende
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 wr

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 wrote: > >

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

2014-10-30 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

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

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 wrote: > Dear Experts, > > is it possible to read a value of a hidden fie

Re: CakePHP 3 controller with prefix

2014-09-08 Thread Andras Kende
r.php) ? > If so I think it shouldn't be necessary to configure the prefix route to > behave like this. > Anyway thanks for your reply, it's working now. > > > Em segunda-feira, 8 de setembro de 2014 19h21min46s UTC-3, Andras Kende > escreveu: > > do you have Inf

Re: CakePHP 3 controller with prefix

2014-09-08 Thread Andras Kende
tion' => 'index'], ['routeClass' => 'InflectedRoute']); $routes->connect('/:controller/:action/*', [], ['routeClass' => 'InflectedRoute']); }); Andras Kende On Sep 8, 2014, at 1:00 PM, Tiago Barrionuevo wrote: > Wh

Re: Basic data fetching

2014-08-28 Thread Andras Kende
ind('list',array('conditions' => array('customer_id'=>$customerId; view: Form->input('device_id', array('empty' => '-')); ?> Andras Kende On Aug 28, 2014, at 6:36 AM, Tristan Plumley wrote: > Thanks for the reply. >

Re: Basic data fetching

2014-08-27 Thread Andras Kende
e select list for a customer devices $this->set('customer info',$this->Customer->Device->find('list',array('conditions' => array('customer_id'=>$customerId; http://book.cakephp.org/2.0/en/models/retrieving-your-data.html Andras Ke

Re: CakePHP 3.0 orm query question

2014-08-26 Thread Andras Kende
'having' => "distance <= $distance", )); Just needed to use associative array, in the fields.. Thanks, Andras On Aug 26, 2014, at 1:10 AM, José Lorenzo wrote: > $query = $table->find() > $query->select(['distan

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, 'D

CakePHP 3.0 orm query question

2014-08-24 Thread Andras Kende
Hello, Im trying to convert this geolocator query from 2.5 to 3.0 orm but no luck so far. CakePHP 2.5, this works fine: $results = $this->find('all', array( 'limit' => 200, 'order' => array( 'distance' => 'ASC', 'name' => 'ASC', ),

Re: migration issue

2014-08-23 Thread Andras Kende
Controller::$pageTitle has been removed. Use $this->set('title_for_layout', $var); instead. controller: $this->set('title_for_layout', 'Music That Jumped the Shark ~ groups'); app/View/Layouts/default.ctp and $this->layout = 'home'; should be

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' v

Re: GET or POST

2014-08-09 Thread Andras Kende
it form will appear. If they fill > out the form it simply adds another employee to their company roster. > I'm still amazed there isn't something in cakephp that solves it with a post. > > Thanks for youe help. > Steve Thomas > > On Friday, August 8, 2014 6:16:52 PM

Re: GET or POST

2014-08-08 Thread Andras Kende
You could add a condition like 'conditions' => array( 'Employee.company_id' => $this->Auth->user('company_id') ) So when changing the id in the url the application still only allows fetch data which belongs to the same company.. The same applies for delete, just check before if current

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 wrote: > Hallo All > my name marzuki > today im learning cakephp 2.X > > no prob

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 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, S

Re: Cakephp 2 - dynamic meta tags from beforeFilter

2014-07-01 Thread Andras Kende
app/View/Layouts/default.ctp: and add this to your controllers actions or views: $meta_description = $house['House']['meta_description']; $this->set(compact('meta_description')); Andras Kende On Jul 1, 2014, at 2:33 AM, vbpupil wrote: > Hi Guys > &

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 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 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

Re: Missing Controller

2014-06-14 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 wrote: > I do have: > > Model - task.php > > Controller - TasksControlle

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 wrote: > I want to hide the action paramet

Re: button wont display as it should

2014-06-03 Thread Andras Kende
btn 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 loo

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 tabl

Re: Containable with Pagination

2014-02-21 Thread Andras Kende
On Feb 21, 2014, at 1:23 AM, Justin Atack 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['Schedule'] =

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-&

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 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? > &g

Re: Containable with Pagination

2014-02-20 Thread Andras Kende
), 'order' => array( ), ) ); $this->set('schedules', $this->Paginator->paginate()); } Andras Kende On Feb 20, 2014, at 3:4

Re: the Form with method GET generate incorrent URL

2013-12-20 Thread Andras Kende
me 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 wrote: > Have You Found solution for this ??? I am also looking for th

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..

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 wrote: > > We have just installed a self signed ssl cert on the apach

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 wrote: > Hi all, > > I have an app wich uses multiple databases. > > One database ('default') for common information,

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 wrote: > Hi, > I am using Ca

Re: Simple controller action takes over 13 seconds

2013-08-14 Thread Andras Kende
only grab 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 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 controll

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 wrote: > Hi! > > I am a new bee in cake

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+ 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 >

Re: Foreach saveField fails

2013-05-30 Thread Andras Kende
tables with foreign key, as those need to be updated as well.. Andras Kende http://www.kende.com On May 30, 2013, at 11:38 AM, Advantage+ 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

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

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

2013-04-18 Thread Andras Kende
7;login' => 'user', 'password' => 'password', 'database' => 'database_name', 'prefix' => '', //'encoding' => 'utf8', )

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

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 wrote: > Hello, sorry my english > > I have a problem that I don't have idea what can be: > Error: SQLSTATE[HY000]: G

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

2013-02-21 Thread Andras Kende
I'm trying to get subdomain links working on my app based on (http://book.cakephp.org/2.0/en/appendices/new-features-in-cakephp-2-0.html#routes-can-return-full-urls ) I have multiple routes which need subdomain functionality in html links but always whichever Route on the top is working correct

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 wrote: >

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 wrote: > Hello, > > We're

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+ wrote: > Has anyone come across a

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 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 PM, Chetan Patel >

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
ould it be just $id ? Andras Kende http://www.kende.com On Dec 4, 2012, at 10:11 AM, glk 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 Option

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: link($dba['Dba']['name'], 'http://' . $dba['Dba']['url']) ?> might want to prefix your urls wit

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 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

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

Re: Dynamic Subdomains as Parameter

2012-11-24 Thread Andras Kende
=> array( 'city_slug' => $locale ), 'limit' => 50 )); debug($cityresults); } else { //site at www.

Re: Pagination

2012-11-19 Thread Andras Kende
ray. >>> Also, you can use the Post.category_id in the conditions. >>> >>> $this->paginate['conditions'] = array('Post.category_id' => $id); >>> >>> On Mon, Nov 19, 2012 at 4:15 PM, Andras Kende wrote: >>>&

Re: Pagination

2012-11-19 Thread Andras Kende
$posts = $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 categorie

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 wrote: > Hi all, > > I am struck with this peculiar problem f

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 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: > y

Re: Routing Again

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

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

2012-10-16 Thread Andras Kende
- {$lat}) + COS(`lat` / 57.29578) * COS({$lat} / 57.29578) * (`lng` - {$lng}) * (`lng` - {$lng})) / 180) * 1.609344, 5) AS `distance`" )); Or you could foreach your results and move from ,classifications to Locations... Andras Kende http://www.kende.com On Oct 16, 2012, at 6:43 PM,

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 wrote: > Error: Call to a member function find() on a non-object > File: c:\wa

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 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 : Session->check('user')) : ?> SIGNIN CONTENT NOT SIGNIN CONTENT Andras Kende http://www.kende.com On Sep 24, 2012, at 1:37 AM, Chris wrote: > thanks Andras,... it works,... but I'm running into some oth

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 wrote: > hi guys,... > having a problem to migrate to a new versi

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 wrote: > Dear Cakephp experts, > > When I use find(&

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 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

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 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 a

Re: Subdomain as parameter

2012-08-17 Thread Andras Kende
here is an idea, hope it helps : _getSubDomain(); ………... } Andras Kende http://www.kende.com On Aug 17, 2012, at 11:19 PM, Reza Talamkhani wrote: > Hi; > I need to get subdomain as a parameter in CakePHP... > > Please help me how to sent subdomain as parameter to

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 m

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 https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"</a>; type="text/javascript"> Andras Kende http://www.kende.

Re: Ajax Pagination not working ?

2012-06-23 Thread Andras Kende
I think Paginator->numbers, Paginator->next, Paginator->prev has to be inside the ….. 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, JonS

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 J

Re: $this->loadModel and performance

2012-06-22 Thread Andras Kende
->User->Post); $this->set(compact('posts')); check the sql and print_r($posts) … make 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 havi

Re: How to use Auth in Model

2012-06-14 Thread Andras Kende
ed); return true; } 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] > >

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

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] => Ar

cakephp 2 tinyint(1) return as boolean changes

2012-05-24 Thread Andras Kende
d be numeric in the past, now 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,

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 g

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 wrote: > I am new to CakePHP and am following the Packt Publishing book to get used to > the tool (and challenge myself followi

Re: Google Map interface question

2012-04-29 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 fro

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

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 > // --

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 b

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, 201

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

Re: Problem with Paginate (Cake 2.0.5)

2012-01-13 Thread Andras Kende
d to load Paginator helper here: > public $helpers = array('Html', 'Form', 'Paginator'); The paginator will load that for you 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 t

  1   2   3   >