Re: Ajax Pagination with Filter Plugin Problem

2013-06-07 Thread Sanjeev Divekar
Thanks Yorick, Can you explain a bit more.? Regards, On Fri, Jun 7, 2013 at 1:02 AM, Yorick Horrie wrote: > Hi, > > Don't know if you found this allready, but for those who are reading this > and have the same problem. > This solution works: > > $('body').on('click','#yourSelector',function(ev

where to make changes

2013-06-07 Thread Raks
Hi, Actually I have some code available with me in Cakephp, with model, view and controller. I need to add a column in the view.. not in database only in view. Where do I have to make changes.. in View only or have to change controller and model too. I am totally new to MVC farmework + cake p

How to edit a view in Cake php

2013-06-07 Thread Raks
Hi, I Have a piece of code having view, model and controller . I nee dto make changes to view only not in the database. So how can i do that. Do I need to edit model and controller as well. I am new to Cakephp and MVC framework too. Thanks. -- Like Us on FaceBook https://www.facebook.com

Models indirect association, how to retrieve data?

2013-06-07 Thread Lucas Gabriel
How's it going? I have a problem with cakePHP, I'm new to it and struggling with it. Let me pour onto you guys my situation: I'm developing a system for a University here in Brazil. In this sytem I've got the following models: - Country; - State; - City; - University; - Unit; - Class; Ok. and

Re: SwiftMailer Component not working CakePHP 2.0.5

2013-06-07 Thread Savio Thallis
In this case you need use App::import. App::import('Vendor', 'Swift', array('file' => 'Swift'.DS.'lib'.DS.'swift_required.php')); Em segunda-feira, 16 de janeiro de 2012 05h07min23s UTC-2, Craig escreveu: > > Hi All, > > I have followed the guide on the Cake Bakery using the the SwiftMailer >

AuthComponent for mobile (iphone) app development

2013-06-07 Thread Blues Clues
Hi We are building an iPhone App which will access our backend server using CakePHP 2.x.x Client is iPhone App using iOS SDK Server is using Cakephp2.0. We are able to create http POST for controller/action (users/login). This action is currently logging in using standard database query and ma

Cakephp 1.3 Edit Action Not Populating Fields

2013-06-07 Thread Karl Smith
I'm having a problem with my edit action and Im not sure what my problem is but my fields are not populating. In my model I have a function that retrieves 3 records based on an id, and I call that function in my controller, which in turn should populate data in the view. I have tried to debug b

Re: Using Roles and RolesUser

2013-06-07 Thread Eric Haskins
Ok I found my answer before this question cleared moderation. public $hasAndBelongsToMany = array( 'Role' => array( 'className' => 'Role', 'joinTable' => 'roles_users', 'foreignKey' => 'user_id', 'assosciationForeignKey' => 'role_id', 'unique' => 'keepExisting' ) );

what is the best way to test beforeSave that requests data from the current model

2013-06-07 Thread Greg Skerman
Biting the bullet and doing some playing around with model unit testing. As a bit of a trial, I've got a beforeSave which searches $this for the max of a field and increments it by 1. code: public function beforeSave($options = array()) {if (!isset($this->data['number'])) {$lastNumbe

Re: After logout browser back button shows all visited page

2013-06-07 Thread Nikunj Amipara
hi all i am having same problem. disabling cache works but i don't wont that is there a way to disable (clear ) it when logging out thanks On Wednesday, 6 June 2012 09:55:21 UTC+5:30, Chetan Patel wrote: > > Hello Sunil > > I use it in AppController: > > public function beforeRender() { >

Re: How to get checkbox all value to deleteAll in controller?

2013-06-07 Thread André Luis
Mark the checkboxes and use $this->Model->deleteAll($this->request->data); //Usually works fine for me Em sexta-feira, 7 de junho de 2013 01h13min50s UTC-3, Hiệp Nguyễn escreveu: > > hi all, > I dont know How to get checkbox value to delete (All or one) records in > controller. Who can help me?

Re: connecting mssql 2005

2013-06-07 Thread Nikunj Amipara
i did that already On Thu, Jun 6, 2013 at 12:41 PM, sumit goyal wrote: > you need to ODBC install Driver > > > On Thu, Jun 6, 2013 at 11:51 AM, Nikunj Amipara wrote: > >> hi, >> I am trying to connect to remote database which is on mssql server and i >> am getting fallowing error can any one he

Re: SQL Server, Linux and CakePHP 2

2013-06-07 Thread stabb
"The PDO_SQLSRV extension is only compatible with PHP running on Windows." http://php.net/manual/en/ref.pdo-sqlsrv.php The SQLSRV one also won't work - everything is through *ODBC* MS Drivers. Linux Users need to install php-odbc and use PDO through that and the MS driver to access the MS SQL D

Re: Cakephp Ajax sample code for complete newbie

2013-06-07 Thread Norris
http://www.reversefolds.com/articles/show/ajax and lots of other tutorial if you search on google Pada Jumat, 24 Mei 2013 16:19:49 UTC+7, Sam menulis: > > Dear CakePHP experts, > > Can someone provide some links to sample code or tutorial that teaches a > complete Ajax newbie on using Cakephp wi

Using Roles and RolesUser

2013-06-07 Thread Eric Haskins
Hello Everyone, Im sorry if this was posted previously I did an exhaustive search but im still lost. I am working on a SaaS app that allows a couple of our domains to utilize the same codebase and I have come upon an issue with my 1 User to Many Roles. Im using cakePHP 2.3 I use 2 t

hybridauth with cake

2013-06-07 Thread Norris
Hi everyone, i'm trying to crate log in with facebook on my cake site. I add HybridAuth to cake as a component. The login is success but whenever i'm tryin to log out an error occurs "Fatal error: Call to a member function logout() on a non-object in /var/www/site.demo/app/vendors/hybridAuth/

How to get checkbox all value to deleteAll in controller?

2013-06-07 Thread Hiệp Nguyễn
hi all, I dont know How to get checkbox value to delete (All or one) records in controller. Who can help me? Thanks, -- 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 Grou

Re: when i select state next drop down list of contacts gives only one value related to state not giving all contacts related to state

2013-06-07 Thread Paul Gardner
Do some debugging using something like FireBug. What data is being sent in the AJAX call and what is being returned? Is the correct query being ran un the controller/action and if that is pulling more than one result, is it then setting that array correctly to return as the AJAX response? H

Session.checkAgent = false for one controller/action

2013-06-07 Thread Paul Gardner
Hi, Does anyone know how I could set Session.checkAgent = false for just one controller/action. I need it for just one action, so would prefer sessions to be checked for userAgent changes in all other instances. I have tried Configure::write('Session.checkAgent', false); in the controller's

Re: connecting mssql 2005

2013-06-07 Thread sumit goyal
you need to ODBC install Driver On Thu, Jun 6, 2013 at 11:51 AM, Nikunj Amipara wrote: > hi, > I am trying to connect to remote database which is on mssql server and i > am getting fallowing error can any one help? > tried to google this problem but nothing seems to work. > > A Database connecti

Re: Ajax Pagination with Filter Plugin Problem

2013-06-07 Thread Yorick Horrie
Hi, Don't know if you found this allready, but for those who are reading this and have the same problem. This solution works: $('body').on('click','#yourSelector',function(event) {//do somethings here}); You need to stick the event on the body (or any other parent dom object that is not updat

Re: saveAll and Validation Problem

2013-06-07 Thread André Luis
echo $this->Form->input('Model.0.name'); echo $this->Form->input('Model.1.name'); echo $this->Form->input('Model.2.name'); Em quinta-feira, 6 de junho de 2013 12h30min10s UTC-3, gloop escreveu: > > Hello Cake-Fans, > > i try to save more than 1 entry in the database. > > Example: > > *index.ctp*

Re: Image upload in cakephp

2013-06-07 Thread Paul Gardner
Try installing something like elFinder (http://elfinder.org/), makes file uploads very easy (folder management, drag and drop). The documentation isn't the best, certainly not step by step instructions. However, I have created a Croogo 1.5 plugin for elFinder, which you could adapt for CakePH

Re: Can a single cakephp app connect to multiple databases?

2013-06-07 Thread crisuwork
you can use in /app/config/database.php a db switch like this: class DATABASE_CONFIG { var $default = array('driver' => 'mysql', 'connect' => 'mysql_connect', 'host' => 'localhost', 'login' => 'root', 'password' => '', 'database' => 'db1', 'pref