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 (http://docs.jquery.com/Downloading_jQuery) and put 
 the file in $project/app/webroot/js (e.q: *
 $project/app/webroot/js/jquery.js*)
 2. Download jquery-ui (http://jqueryui.com/download); I, for example, 
 downloaded a zip archive called: jquery-ui-1.8.16.custom.zip. From this 
 archive you will have to copy the followings:

 a. *$archive_root/js/jquery-ui-*.js* in *$project/app/webroot/js* (give 
 it a shorter name e.q: jquery-ui.js)
 b. *$archive_root/css/smothness/** to *$project/app/webroot/css*(including 
 the images; rename the css file to something shorter)

 3. Include both js files in your layout. eq:
 *
 //$project/app/views/Layouts/default.ctp
 -
 echo $this-Html-script(array('jquery',
 'jquery-ui'));

 *4. Include the css file. Eq

 *//$project/app/views/Layouts/default.ctp
 -
 echo $this-Html-css('jquery-ui.css');

 *5. Put this lines of code before calling the date-picker:

 *script
 $(function() {
$(#datepicker).datepicker();
 });
 /script*

 6. Call the date picker in your form:

 *echo $this-Form-input('expire', 
 array(
'id'='datepicker',
'type'='text'
 )*

 This is it!

 Best regards!




-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 Lion and Dreamweaver CS6 (version 
12).

I have added the CTP extension to:

/Users/[username]/Library/Application Support/Adobe/Dreamweaver 
CS6/en_US/Configuration/Extensions.txt
/Users/[username]/Library/Application Support/Adobe/Dreamweaver 
CS6/en_US/Configuration-1/Extensions.txt (I don't even know why this folder 
exists)
/Applications/Adobe Dreamweaver CS6/Configuration/Extensions.txt
/Applications/Adobe Dreamweaver 
CS6/Configuration/DocumentTypes/MMDocumentTypes.xml

I have tried adding it as HTML files and PHP files.  I have tried every 
combination that I can think of.  I have tried including THTML as well as 
CTP to the lists.  I have restarted Dreamweaver after each change.  Nothing 
seems to be working.  Nothing in Dreamweaver seems to be changing at all.

I also can't find any recent threads addressing this issue in CS6.  All 
these posts seem to be dated a few years ago.  Am I the only one trying to 
edit CTP files any more?

Any help would be greatly appreciated.

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 jeremybu...@classoutfit.com
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 something huge here or is this just really difficult? Do I
 have to rebuild the view and include the raw code from the elements (which
 isn't very DRY) and how do I include style sheets?

 Any help or guidance is much appreciated.

 --
 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 post to this group, send email to cake-php@googlegroups.com.
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.




-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 cel...@gmail.com javascript:
 *An:* cake...@googlegroups.com javascript: 
 *CC:* Serkan Sipahi serkan...@yahoo.de javascript: 
 *Gesendet:* 14:22 Mittwoch, 23.Januar 2013
 *Betreff:* Re: 3.0: a peek into CakePHP's future
  
 Thanks @Sipatshi,
 one more link, the José Lorenzo Slide: 
 http://www.slideshare.net/josezap1/cakephp-30-embracing-the-future-15080099


 Em quarta-feira, 23 de janeiro de 2013 11h08min44s UTC-2, Sipatshi 
 escreveu:


 The latest news about cake 3.0

 http://vimeo.com/56613033

 https://www.engineyard.com/ podcast/future-of-php-part-ii- 
 cakephphttps://www.engineyard.com/podcast/future-of-php-part-ii-cakephp

 https://github.com/markstory/ cakephp/wiki/Httpsocket- 
 improvementshttps://github.com/markstory/cakephp/wiki/Httpsocket-improvements

   --
 *Von:* Celso cel...@gmail.com
 *An:* cake...@googlegroups.com 
 *Gesendet:* 13:45 Mittwoch, 23.Januar 2013
 *Betreff:* Re: 3.0: a peek into CakePHP's future
  

 Anyone have some news about CakesPHP 3.0?
 -- 
 Like Us on FaceBook https://www.facebook.com/ 
 CakePHPhttps://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 post to this group, send email to cake...@googlegroups.com.
 To unsubscribe from this group, send email to cake-php+u...@ 
 googlegroups.com.
 Visit this group at http://groups.google.com/ 
 group/cake-php?hl=enhttp://groups.google.com/group/cake-php?hl=en
 .
  
  


  AfrikaansAlbanianArabicArmenianAzerbaijaniBasqueBelarusianBulgarian
 CatalanChinese (Simplified)Chinese (Traditional)CroatianCzechDanishDetect 
 languageDutchEnglishEstonianFilipinoFinnishFrenchGalicianGeorgianGerman
 GreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalian
 JapaneseKoreanLatinLatvianLithuanianMacedonianMalayMalteseNorwegianPersian
 PolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedish
 ThaiTurkishUkrainianUrduVietnameseWelshYiddish⇄AfrikaansAlbanianArabic
 ArmenianAzerbaijaniBasqueBelarusianBulgarianCatalanChinese 
 (Simplified)Chinese 
 (Traditional)CroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrench
 GalicianGeorgianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandic
 IndonesianIrishItalianJapaneseKoreanLatinLatvianLithuanianMacedonianMalay
 MalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovak
 SlovenianSpanishSwahiliSwedishThaiTurkishUkrainianUrduVietnameseWelsh
 Yiddish
 Sprache erkennen » Hungarian

 -- 
 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 post to this group, send email to cake...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 cake-php+u...@googlegroups.com javascript:.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.
  
  


  AfrikaansAlbanianArabicArmenianAzerbaijaniBasqueBelarusianBulgarian
 CatalanChinese (Simplified)Chinese (Traditional)CroatianCzechDanishDetect 
 languageDutchEnglishEstonianFilipinoFinnishFrenchGalicianGeorgianGerman
 GreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalian
 JapaneseKoreanLatinLatvianLithuanianMacedonianMalayMalteseNorwegianPersian
 PolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedish
 ThaiTurkishUkrainianUrduVietnameseWelshYiddish⇄AfrikaansAlbanianArabic
 ArmenianAzerbaijaniBasqueBelarusianBulgarianCatalanChinese 
 (Simplified)Chinese 
 (Traditional)CroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrench
 GalicianGeorgianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandic
 IndonesianIrishItalianJapaneseKoreanLatinLatvianLithuanianMacedonianMalay
 MalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovak
 SlovenianSpanishSwahiliSwedishThaiTurkishUkrainianUrduVietnameseWelsh
 Yiddish
 Sprache erkennen » Hungarian



-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 upe...@gmail.com 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 Dreamweaver, but the color coding and code hinting won't
 work at all.  Very frustrating.

 I am using a Mac, running OSX Mountain Lion and Dreamweaver CS6 (version
 12).

 I have added the CTP extension to:

 /Users/[username]/Library/Application Support/Adobe/Dreamweaver
 CS6/en_US/Configuration/Extensions.txt
 /Users/[username]/Library/Application Support/Adobe/Dreamweaver
 CS6/en_US/Configuration-1/Extensions.txt (I don't even know why this folder
 exists)
 /Applications/Adobe Dreamweaver CS6/Configuration/Extensions.txt
 /Applications/Adobe Dreamweaver
 CS6/Configuration/DocumentTypes/MMDocumentTypes.xml

 I have tried adding it as HTML files and PHP files.  I have tried every
 combination that I can think of.  I have tried including THTML as well as
 CTP to the lists.  I have restarted Dreamweaver after each change.  Nothing
 seems to be working.  Nothing in Dreamweaver seems to be changing at all.

 I also can't find any recent threads addressing this issue in CS6.  All
 these posts seem to be dated a few years ago.  Am I the only one trying to
 edit CTP files any more?

 Any help would be greatly appreciated.

 --
 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 post to this group, send email to cake-php@googlegroups.com.
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.




-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 __('January') - work successfully 
 echo $this-Form-input('var', array('type' = 'date', 'dateFormat' = 
 'DMY)) - displays the English names of months 

 I can use parameter 'monthNames', but it is not good. Is it possible 
 to get an automatic translation into a form?

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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)


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 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 __('January') - work successfully 
 echo $this-Form-input('var', array('type' = 'date', 'dateFormat' = 
 'DMY)) - displays the English names of months 

 I can use parameter 'monthNames', but it is not good. Is it possible 
 to get an automatic translation into a form?



-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 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 __('January') - work successfully 
 echo $this-Form-input('var', array('type' = 'date', 'dateFormat' = 
 'DMY)) - displays the English names of months 

 I can use parameter 'monthNames', but it is not good. Is it possible 
 to get an automatic translation into a form?



-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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=1gs_ri=serptok=ryp3YY4UdU39xLhgeQ6ElQpq=cakephp
 
cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp 
cakephp cakephp cakephp cakephp cakephp cakephp 
cakephpcp=5gs_id=1a6xhr=tq=lorem 
ipsumpf=pclient=firefox-atbo=drls=org.mozilla:en-US:officialsclient=psy-aboq=loremgs_l=pbx=1bav=on.2,or.r_gc.r_pw.r_qf.bvm=bv.41248874,d.ZG4biw=1366bih=650#hl=enclient=firefox-atbo=drls=org.mozilla:en-US:officialsclient=psy-abq=Lorem
 
ipsum dolor sit amet, consectetur adipiscing elitoq=Lorem ipsum dolor sit 
amet, consectetur adipiscing 
elitgs_l=serp.12..0l4.23366.23366.2.24779.1.1.0.0.0.0.289.289.2-1.1.0.les;..0.0...1c.1.9MZ2Kf0IJq0pbx=1bav=on.2,or.r_gc.r_pw.r_qf.bvm=bv.41248874,d.ZG4fp=4d3ec0306f8423d6biw=1366bih=650

Please advise

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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=1gs_ri=serptok=ryp3YY4UdU39xLhgeQ6ElQpq=cakephpcakephp
  cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp 
 cakephp cakephp cakephp cakephp cakephp cakephp 
 cakephpcp=5gs_id=1a6xhr=tq=lorem 
 ipsumpf=pclient=firefox-atbo=drls=org.mozilla:en-US:officialsclient=psy-aboq=loremgs_l=pbx=1bav=on.2,or.r_gc.r_pw.r_qf.bvm=bv.41248874,d.ZG4biw=1366bih=650#hl=enclient=firefox-atbo=drls=org.mozilla:en-US:officialsclient=psy-abq=Lorem
  
 ipsum dolor sit amet, consectetur adipiscing elitoq=Lorem ipsum dolor sit 
 amet, consectetur adipiscing 
 elitgs_l=serp.12..0l4.23366.23366.2.24779.1.1.0.0.0.0.289.289.2-1.1.0.les;..0.0...1c.1.9MZ2Kf0IJq0pbx=1bav=on.2,or.r_gc.r_pw.r_qf.bvm=bv.41248874,d.ZG4fp=4d3ec0306f8423d6biw=1366bih=650

 Please advise

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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: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=1gs_ri=serptok=ryp3YY4UdU39xLhgeQ6ElQpq=cakephpcakephp
  cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp 
 cakephp cakephp cakephp cakephp cakephp cakephp 
 cakephpcp=5gs_id=1a6xhr=tq=lorem 
 ipsumpf=pclient=firefox-atbo=drls=org.mozilla:en-US:officialsclient=psy-aboq=loremgs_l=pbx=1bav=on.2,or.r_gc.r_pw.r_qf.bvm=bv.41248874,d.ZG4biw=1366bih=650#hl=enclient=firefox-atbo=drls=org.mozilla:en-US:officialsclient=psy-abq=Lorem
  
 ipsum dolor sit amet, consectetur adipiscing elitoq=Lorem ipsum dolor sit 
 amet, consectetur adipiscing 
 elitgs_l=serp.12..0l4.23366.23366.2.24779.1.1.0.0.0.0.289.289.2-1.1.0.les;..0.0...1c.1.9MZ2Kf0IJq0pbx=1bav=on.2,or.r_gc.r_pw.r_qf.bvm=bv.41248874,d.ZG4fp=4d3ec0306f8423d6biw=1366bih=650

 Please advise



-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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://www.google.de/search?sugexp=les;gs_rn=1gs_ri=serptok=ryp3YY4UdU39xLhgeQ6ElQpq=cakephp%20cakephp%20cakephp%20cakephp%20cakephp%20cakephp%20cakephp%20cakephp%20cakephp%20cakephp%20cakephp%20cakephp%20cakephp%20cakephp%20cakephp%20cakephp%20cakephpcp=5gs_id=1a6xhr=tq=lorem%20ipsumpf=pclient=firefox-atbo=drls=org.mozilla:en-US:officialsclient=psy-aboq=loremgs_l=pbx=1bav=on.2,or.r_gc.r_pw.r_qf.bvm=bv.41248874,d.ZG4biw=1366bih=650#hl=enclient=firefox-atbo=drls=org.mozilla:en-US:officialsclient=psy-abq=Lorem
 
ipsum dolor sit amet, consectetur adipiscing elitoq=Lorem ipsum dolor sit 
amet, consectetur adipiscing 
elitgs_l=serp.12..0l4.23366.23366.2.24779.1.1.0.0.0.0.289.289.2-1.1.0.les;..0.0...1c.1.9MZ2Kf0IJq0pbx=1fp=1biw=1366bih=650bav=on.2,or.r_gc.r_pw.r_cp.r_qf.cad=bsei=pm0BUaSyEInHtAbyvoDQAQ




Am Donnerstag, 24. Januar 2013 18:03:44 UTC+1 schrieb 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: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=1gs_ri=serptok=ryp3YY4UdU39xLhgeQ6ElQpq=cakephpcakephp
  cakephp cakephp cakephp cakephp cakephp cakephp cakephp cakephp 
 cakephp cakephp cakephp cakephp cakephp cakephp 
 cakephpcp=5gs_id=1a6xhr=tq=lorem 
 ipsumpf=pclient=firefox-atbo=drls=org.mozilla:en-US:officialsclient=psy-aboq=loremgs_l=pbx=1bav=on.2,or.r_gc.r_pw.r_qf.bvm=bv.41248874,d.ZG4biw=1366bih=650#hl=enclient=firefox-atbo=drls=org.mozilla:en-US:officialsclient=psy-abq=Lorem
  
 ipsum dolor sit amet, consectetur adipiscing elitoq=Lorem ipsum dolor sit 
 amet, consectetur adipiscing 
 elitgs_l=serp.12..0l4.23366.23366.2.24779.1.1.0.0.0.0.289.289.2-1.1.0.les;..0.0...1c.1.9MZ2Kf0IJq0pbx=1bav=on.2,or.r_gc.r_pw.r_qf.bvm=bv.41248874,d.ZG4fp=4d3ec0306f8423d6biw=1366bih=650

 Please advise



-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 
 barn...@hotmail.comjavascript: 
 wrote: 
  I just want to verify that my logic is right before I move 
 forward...If 
  I use ?php echo $this-UiForm-input('id', array('type' = 'hidden')); 
  to 
  pass my id to my controllerthe id will be automagically added to my 
  $data array...correct? 

 Not exactly. FormHelper populates inputs based on what's in 
 $this-request-data. But since you're not trying to populate an 
 entire form so as to edit the record, you can just do this: 

 $this-set('model_id', $model_id); 

 view: 

 echo $form-hidden('Model.id', array('value' = $model_id)); 


-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 06:11:36 UTC+2, advantage+ wrote:

 I have a canvas page that needs to display inside facebook.

  

 In development so it is in a subfolder called fitbit (not in the root)

  

 Only building the page now outside FB / no integration but problem is if I 
 go to the url …www.example.com/fitbit/canvas I get 404 error.

  

 If I change the route.php so going to www.example.com/fitbit it calls 

 Router::connect('/', array('controller' = 'canvas', 'action' = 'index'));it 
 loads fine.

  

 Cannot figure out why it will not load fine without the Route change.

  

 It is clearly loading with the routh page but not finding without….weird!

  

 Any ideas?

  

 Thanks

 Dave


-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of John Andersen
Sent: Thursday, January 24, 2013 5:09 PM
To: cake-php@googlegroups.com
Subject: Re: Weird Issue

 

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 06:11:36 UTC+2, advantage+ wrote:

I have a canvas page that needs to display inside facebook.

 

In development so it is in a subfolder called fitbit (not in the root)

 

Only building the page now outside FB / no integration but problem is if I
go to the url .www.example.com/fitbit/canvas I get 404 error.

 

If I change the route.php so going to www.example.com/fitbit it calls 

Router::connect('/', array('controller' = 'canvas', 'action' = 'index'));
it loads fine.

 

Cannot figure out why it will not load fine without the Route change.

 

It is clearly loading with the routh page but not finding without..weird!

 

Any ideas?

 

Thanks

Dave

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Save Uploaded/Parsed File to Database Table

2013-01-24 Thread lowpass
On Thu, Jan 24, 2013 at 1:45 PM, Karl Smith barnun...@hotmail.com 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 message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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

-- 
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 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 pulls all the questions and choices for each, but how /
where to save the results?

What would be the correct table for this? poll_results? results?

 

Thanks,

 

Dave

-- 
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 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 info...@gmail.com javascript:wrote:


 Theme

- CSS
- JS
- IMG
- Layout



 What is the path to theme?
  

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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

--- 
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 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 | choice_id |  other_result
1  | 1|NULL
2  | 2|NULL
3  | 4|hmmm i don't know about that
4  | 2|NULL

#notes: 4 is Other

Next... you can find(count)  WHERE choice_id = 1,2,3,4






2013/1/25 Advantage+ movepix...@gmail.com

 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 pulls all the questions and choices for each, but how /
 where to save the results?

 What would be the correct table for this? poll_results? results?

 ** **

 Thanks,

 ** **

 Dave

 --
 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 to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.






-- 
*Coklat Stroberi -- Web Dev Training Centre*
http://www.facebook.com/pages/Coklat-Stroberi/249514251728226  (info lebih
lanjut)
http://coklatstroberi.net
Jl. Raya Padang Luwih (Dalung) No.141 - Telp. (0361) 9006118 atau
08174128301 - Badung, Bali. Sebelah timur traffic light pertigaan perumahan
dalung permai.

-- 
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 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 needs to
include poll_id, user_id, question_id, and choice_id (this data will then
get pulled to create a chart)

 

 

From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of polutan
Sent: Friday, January 25, 2013 1:21 AM
To: cake-php@googlegroups.com
Subject: Re: Simple Poll

 

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

1  | 1|NULL

2  | 2|NULL
3  | 4|hmmm i don't know about that

4  | 2|NULL   

#notes: 4 is Other

 

Next... you can find(count)  WHERE choice_id = 1,2,3,4 

 

 

 

 

2013/1/25 Advantage+ movepix...@gmail.com

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 pulls all the questions and choices for each, but how /
where to save the results?

What would be the correct table for this? poll_results? results?

 

Thanks,

 

Dave

-- 
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 to cake-php+unsubscr...@googlegroups.com
mailto:cake-php%2bunsubscr...@googlegroups.com .
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 




-- 
Coklat Stroberi -- Web Dev Training Centre

http://www.facebook.com/pages/Coklat-Stroberi/249514251728226  (info lebih
lanjut)

http://coklatstroberi.net 

Jl. Raya Padang Luwih (Dalung) No.141 - Telp. (0361) 9006118 atau
08174128301 - Badung, Bali. Sebelah timur traffic light pertigaan perumahan
dalung permai.

 

-- 
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 to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

-- 
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 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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:

request
   Season
  titlenew title/title
   /Season/request

and this is the controller that effectively perform the insertion:

public function add() {
// i feel shame for this line :)
$request = json_decode(json_encode((array) 
simplexml_load_string($this-request-input())), 1);

if (!empty($request)) {
$obj = compact(request);
if ($this-Season-save($obj['request'])) {
$output['status'] = Configure::read('WS_SUCCESS');
$output['message'] = 'OK';
} else {
$output['status'] = Configure::read('WS_GENERIC_ERROR');
$output['message'] = 'KO';
}
$this-set('output', $output);
}
$this-render('generic_response');}

The code works pretty well, but as I wrote in the snippet above I consider 
the first line of the controller really ugly, so, the question is: How can 
I parse XML string as PHP Array?

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.