Re: cant edit but can add row cakephp

2014-05-28 Thread jagguy
Hi This fixed it as you said I mucked up the name. $this->Session->setFlash( How can I say topic solved? -- *P: (03) 9866 7737* *E: i...@itfutures.edu.au * *A: Suite 5 / Level 1 / 424 St Kilda Rd, Melbourne, 3004

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 wh

Cake 2.5.1 Extremely Slow With MSSQL?

2014-05-28 Thread Jordan Hopfner
Hey guys, I'm using the latest version of Cake (2.5.1) and am having a problem with extremely slow connections to a MSSQL server. A controller action that only has one simple select statement is taking an upwards of 50 seconds to complete. I don't think it's the select statement itself, I have

RE: cant edit but can add row cakephp

2014-05-28 Thread Advantage+
Not trying to interrupt the answer, Just looking at the code and any future developer if you left the project.. Name the $vars $t means? Teacher, call it teacher... $st? 1 date away from std? From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Jer

Re: cant edit but can add row cakephp

2014-05-28 Thread Jeremy Burns : Class Outfit
What happens when you try the save? Does it create a new row instead or does it fail somewhere? On 28 May 2014, at 15:10, 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 or how to debug thi

cant edit but can add row cakephp

2014-05-28 Thread jagguy
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 or how to debug this. The edittutorsession function is the problem Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax

RE: (Web Service) Using XML to Output HTML into my website

2014-05-28 Thread Ricardo Vieitez
Hello, I guess that you can parse the XML file using PHP and output that as HTML. For example: http://blog.teamtreehouse.com/how-to-parse-xml-with-php5 http://www.php.net/manual/en/book.xml.php Since you’re using CakePHP, the “right” way is using a DataSource that does this conversion. You can

Re: (Web Service) Using XML to Output HTML into my website

2014-05-28 Thread Fernando Negrotto
Hi, What about moving that data to an array and then use that array to show the information in html? Something as follow: $xml=Xml::build('YOUR XML URL'); $hotelFares = $xml->xpath('HotelFares_PATH_IN_XML'); You can even use Xml::toArray() to convert your object into an array. Is that what you

how to set code for date

2014-05-28 Thread Shin
Hi all, i'm new learner for cake.php i'm trying to import my excel-CSV data to ms sql database thro the controller.php but one of my data in excel-CSV which is DATE display in this format (Mon, 21 May 2014) how to convert this format (Mon, 21 May 2014) to 21-05-2014 by ignore the mon? thank you

View come from XML file

2014-05-28 Thread arvind yadav
Hi, We have created an XML file and need to show view to using that XML file and XSLT file. -- 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

Re: Access $this->Session from a model

2014-05-28 Thread Jeremy Burns : Class Outfit
Pass the current user's id to the model from the calling controller, which can reference the session. On 28 May 2014, at 09:23, Thomas von Hassel wrote: > If your model depends on knowing, by it self, who the user is, you are doing > it wrong .. > > /thomas > > > On 27 May 2014, at 20:59, H

Re: Access $this->Session from a model

2014-05-28 Thread Thomas von Hassel
If your model depends on knowing, by it self, who the user is, you are doing it wrong .. /thomas On 27 May 2014, at 20:59, Henry Gabriel González Montejo wrote: > Hi i have the same problem with the plugin > https://github.com/robwilkerson/CakePHP-Audit-Log-Plugin, i put the method in > my

Configure Cake's .htaccess to use other site with it's own .htaccess

2014-05-28 Thread Tomas Gonzalez Mendivelzúa
Hi, I'm trying to run a site with it's own rewrite rules inside the /app/webroot/ folder but I'm not being able to make it work. *Please tell me if this is the right place to post this or if I should post it in some other place.* The site is in /app/webroot/extra/* Here are both .htaccess files

Re: URL Rewriting: CakePHP + Nginx + Subdirectory

2014-05-28 Thread Daniel Neri
bump On Tuesday, May 6, 2014 1:34:15 PM UTC-4, Daniel Neri wrote: > > I have a number of different CakePHP applications running on an Nginx > server, however I'm having a lot of trouble getting php files inside my > app/webroot folder to render. > > My current config works with all other scenari

Re: Access $this->Session from a model

2014-05-28 Thread Henry Gabriel González Montejo
> > Hi i have the same problem with the > plugin https://github.com/robwilkerson/CakePHP-Audit-Log-Plugin, i put the > method in my Model (AppModel) so it can be used in others models, my > solution was: function currentUser() { //pr($this->Session->read('Auth.User')); //pr($this->Auth->user

(Web Service) Using XML to Output HTML into my website

2014-05-28 Thread NHGDESIGN
Hello. I hope I can explain myself clearly so that I will get help here. I've been given a web service access to show content to my website (The web service is in a another domain). The information is about Hotels (Hotels names, Hotel Images, Hotel Category, Hotels Locations, Hotels descriptions