Parse XML string as PHP Array

2013-01-24 Thread Mariano C.
I'm creating a RESTful webservice, right now I'm facing the insertion of the new resource (the Seasonresource). This is the body of the POST request: new title and this is the controller that effectively perform the insertion: public function add() { // i feel shame for thi

RE: Simple Poll

2013-01-24 Thread Advantage+
The poll will have a few questions, each question with a few options / choices to pick from Example Poll Q1 with choices True or False Q2 favorite color => choices Red / Black / Blue / none So on and so on.. Submit Poll Backend admin can create more than one poll at a time so data also n

Re: Simple Poll

2013-01-24 Thread polutan
h i think i need to fix your models as below : Poll hasMany Choice Choice hasMany ChoiceResult or PollResult That;s just my idea. Then...you should save your polling result to ChoiceResult model or choice_result table. *choice_result* table : id choice_id other_result sample data : id | cho

Which version is good and stable for development among 2.3.0 Rc2 and 2.2.5

2013-01-24 Thread anjith
Hi, New to cakephp. Just about to start development of new project using cakephp. Which version is good and stable for development among 2.3.0 Rc2 and 2.2.5. Regards, Anjith Kumar G -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP ---

Re: Difference between theme and layouts

2013-01-24 Thread kani
App/View/Themed/YourTheme On Monday, January 21, 2013 8:58:59 PM UTC-8, Matthew Kaufman wrote: > > > On Mon, Jan 21, 2013 at 11:02 PM, kani >wrote: > >> >> Theme >> >>- CSS >>- JS >>- IMG >>- Layout >> >> > > What is the path to theme? > -- Like Us on FaceBo

Simple Poll

2013-01-24 Thread Advantage+
I need to create a simple poll for users and stumped on saving the results when user submits the poll. Poll hasMany Question Poll hasMany Result Question hasMany Choice Pretty simple, but how do you save the results since viewing the poll creates a form to save Poll? View the poll/$id pu

Re: Can't validate URL

2013-01-24 Thread gonzela2006
Hello euromark, Thanks for your reply I'm trying to make my own short link service for my blog and I wish to make it using CakePHP I think I can't validate this URL because it is too long *Note*: I have tried to encode this URL before validate it and still getting false URL. Please advise --

Re: Save Uploaded/Parsed File to Database Table

2013-01-24 Thread lowpass
On Thu, Jan 24, 2013 at 1:45 PM, Karl Smith wrote: > And I am suppose to set the Model ID in the controller right? Yes. See here: http://cakephp.org/pages/documentation -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this

RE: Weird Issue

2013-01-24 Thread Advantage+
My root / www is just an index page as there is no real site for my domain so the structure is the following www index.php -fitfit -fitbit / all cake files / app / app /controllers / app /models and so on Dave From: c

Re: Weird Issue

2013-01-24 Thread John Andersen
Are you using a standard CakePHP folder structure for your application and has your webserver been set to have the root at the webroot folder in the CakePHP folder structure? Show your folder structure and where in it the fitbit folder is located. Kind regards John On Thursday, 24 January 2013

Re: Save Uploaded/Parsed File to Database Table

2013-01-24 Thread Karl Smith
And I am suppose to set the Model ID in the controller right? On Wednesday, January 23, 2013 12:56:15 PM UTC-6, cricket wrote: > > On Wed, Jan 23, 2013 at 11:41 AM, Karl Smith > > > wrote: > > I just want to verify that my logic is right before I move > forward...If > > I use UiForm->inpu

Re: Can't validate URL

2013-01-24 Thread euromark
you should be a little bit more verbose and descriptive. so this url you posted (and which looks like a spam url) is what you tried to validate using the validation rule "url"? and it returned false? where did you even get this url? because as a valid url it wouldbe more sth like https://w

Re: Can't validate URL

2013-01-24 Thread gonzela2006
Hello euromark, No spam, I'm just trying to find a solution to my problem in different places. On Thursday, January 24, 2013 6:59:20 PM UTC+2, euromark wrote: > > the same spam as > http://stackoverflow.com/questions/14505837/cakephp-cant-validate-url ? > > Am Donnerstag, 24. Januar 2013 17:16

Re: Can't validate URL

2013-01-24 Thread euromark
the same spam as http://stackoverflow.com/questions/14505837/cakephp-cant-validate-url ? Am Donnerstag, 24. Januar 2013 17:16:49 UTC+1 schrieb gonzela2006: > > Hello, > > can't validate the below url using 'rule' => 'url' on my model > > > https://www.google.com/search?sugexp=les;&gs_rn=1&gs_ri=

Can't validate URL

2013-01-24 Thread gonzela2006
Hello, can't validate the below url using 'rule' => 'url' on my model https://www.google.com/search?sugexp=les;&gs_rn=1&gs_ri=serp&tok=ryp3YY4UdU39xLhgeQ6ElQ&pq=cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp cake

Re: CakePHP 2.0.5 and localization

2013-01-24 Thread euromark
@vanessa you might want to look into http://book.cakephp.org/2.0/en/appendices/2-3-migration-guide.html#l10n the french folder should be "fra" instead of "fre" for >= 2.3 Am Donnerstag, 24. Januar 2013 16:20:38 UTC+1 schrieb vanessa v: > > I'm having an issue with this too. I'm using French th

Re: CakePHP 2.0.5 and localization

2013-01-24 Thread euromark
Some of those translation strings went into the "cake" domain __d('cake', ...); check the online source or the "Localized" plugin on how to make it work again and translations for it. In the end you just need to move those strings from default.po into cake.po (or run extract once more)

Re: CakePHP 2.0.5 and localization

2013-01-24 Thread vanessa v
I'm having an issue with this too. I'm using French though. On Wednesday, January 18, 2012 1:51:28 AM UTC-5, ZoRRo wrote: > > I used CakePHP 1.3, I want to migrate to version 2. > I have a problem of translation (russian lang), used po-file (app/ > Locale/rus/LC_MESSAGES/default.po). > echo __(

Re: Dreamweaver - Getting Code Coloring and Design View to work on CTP files

2013-01-24 Thread Saran Pal
Hi, I have done it recently, will provide all the info about it. On Wed, Jan 23, 2013 at 10:18 PM, Luke Coburn wrote: > Does anyone know if this type of solution will work in CS6? I have spent > way too much time trying to get this working, and...no dice. I can get the > file to open in Drea

Re: 3.0: a peek into CakePHP's future

2013-01-24 Thread Celso
I'm a little curious to see the "Models"... Em quarta-feira, 23 de janeiro de 2013 11h35min20s UTC-2, Sipatshi escreveu: > > > cant wait to use the new query builder ;) > > -- > *Von:* Celso > > *An:* cake...@googlegroups.com > *CC:* Serkan Sipahi > > *Gesendet:*

Re: Output to PDF with elements and styles

2013-01-24 Thread Gaurav Matta
Try mpdf On Jan 22, 2013 10:46 PM, "Jeremy Burns" wrote: > I have an existing view that I want to output to PDF. I've looked at > Ceeram's plugin and dompdf but they don't hit the mark for me. The existing > view is built using elements which are not pulled in and there is no CSS. > Am I missing

Re: Dreamweaver - Getting Code Coloring and Design View to work on CTP files

2013-01-24 Thread Luke Coburn
Does anyone know if this type of solution will work in CS6? I have spent way too much time trying to get this working, and...no dice. I can get the file to open in Dreamweaver, but the color coding and code hinting won't work at all. Very frustrating. I am using a Mac, running OSX Mountain L

Re: Date picker for CakePHP 2.0.3

2013-01-24 Thread Gian Carlo Asuncion
Works like magic bro no more conflict on other components, keep sharing God Bless! On Tuesday, November 29, 2011 4:11:27 PM UTC-8, Florin Trifu wrote: > > Thank you very much! Indeed it worked. > > Just to let the other users know in case they will have the same problem: > > 1. Download jquery (h