CakePHP shows a blank page on PHP errors when using Security component

2012-02-04 Thread senser
Hello, I'm trying to investigate a problem with CakePHP ver. 2.0.5 - when there is an error in controller class (i.e. trying to create an object from nonexistent class) I get a blank page rendered, no errors, warnings or sql dumps. Debug level is set to 2 in Config/core.php. Problem appears only

Initialize Baking Issue For Newb

2012-02-04 Thread AaronAdvecor
I'm not sure if I'm at the right place to get help, but if I'm not, would someone clue me in? My issue concerns properly starting Bake from Windows XP commandline. I have ;C:\xampp\php;C:\xampp\htdocs\cake\console appended to my system environment variable path and I'm able to launch the CakePHP

Error using preg_replace_callback()

2012-02-04 Thread Adwait Karmarkar
Hi , I am trying to echo a variable that contains Html data. I want the the html tags to be interpreted the way they are. I am able to get the expected output using preg_replace_callback() and evalInlinePHP function. But at the same time I get a warning as mentioned below: Warning (2):

Re: Initialize Baking Issue For Newb

2012-02-04 Thread euromark
did you navigate to the app folder before typing cake bake? C:\path\app see http://www.dereuromark.de/2010/10/03/console-for-cakephp/ On 4 Feb., 01:17, AaronAdvecor aaron.adve...@gmail.com wrote: I'm not sure if I'm at the right place to get help, but if I'm not, would someone clue me in?

truncate a link

2012-02-04 Thread Tomfox Wiranata
hi, i have a long url like http://www.nytimes.com/2012/02/05/world/middleeast/syria-homs-death-toll-said-to-rise.html?_r=1hp that i retrieve from an array $contact['value']; now i only want to show the first 30 characters without destroying the link. when i do this

Re: truncate a link

2012-02-04 Thread euromark
@see http://book.cakephp.org/1.3/en/view/1469/Text you mixed up the order if you do that before it will first truncate the link, of course. after you translated it to html you can truncate (setting html param to true) the result then. On 4 Feb., 16:34, Tomfox Wiranata

Re: truncate a link

2012-02-04 Thread euromark
sry, for 2.0 http://book.cakephp.org/2.0/en/core-libraries/helpers/text.html#TextHelper::autoLink On 4 Feb., 16:41, euromark dereurom...@googlemail.com wrote: @seehttp://book.cakephp.org/1.3/en/view/1469/Text you mixed up the order if you do that before it will first truncate the link, of

Re: Helper problem after moving application to new server

2012-02-04 Thread Daniel
The Js helper is referenced with $this-Js, for example: echo $this-Js-writeBuffer(); -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To

Re: truncate a link

2012-02-04 Thread Tomfox Wiranata
thx euromark you mind helping me out? how do i translate it to html? are two steps necessary... sorry, but it dont get it to work :( On 4 Feb., 16:42, euromark dereurom...@googlemail.com wrote: sry, for 2.0http://book.cakephp.org/2.0/en/core-libraries/helpers/text.html#TextH... On 4 Feb.,

Cake 2.0.5 console problem

2012-02-04 Thread docdlb
Have fresh install in development mode and have included lib folder in linux path. Logged into shell on shared host php version 5.3.10 However when running cake, with or without any arguments get this error $cake PHP Notice: Undefined variable: argv in /home/sites/mysite.com/

word to pdf conversion

2012-02-04 Thread manish bajaj
I need to convert word file to pdf format during user uploading of word file and save it in pdf format..can anyone help me out??? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

Re: Cake 2.0.5 console problem

2012-02-04 Thread docdlb
Fixed it by changing 'cake' bash script from this: exec php -q $LIBcake.php -working $APP $@ to this: exec php -q -d register_argc_argv=1 $LIBcake.php -working $APP $@ after reading this: http://stackoverflow.com/questions/3542649/cakephp-console-on-godaddy-hosting even though my host is

Re: truncate a link

2012-02-04 Thread Tomfox Wiranata
ok. made it. just needed a breath of fresh air. lol. thx euromark. i appreciate it!!! On 4 Feb., 17:10, Tomfox Wiranata tomfox.wiran...@gmail.com wrote: thx euromark you mind helping me out? how do i translate it to html? are two steps necessary... sorry, but it dont get it to work :( On

Re: truncate a link

2012-02-04 Thread euromark
autoLink() does exactly that... On 4 Feb., 17:10, Tomfox Wiranata tomfox.wiran...@gmail.com wrote: thx euromark you mind helping me out? how do i translate it to html? are two steps necessary... sorry, but it dont get it to work :( On 4 Feb., 16:42, euromark dereurom...@googlemail.com

Re: word to pdf conversion

2012-02-04 Thread Timothy O'Reilly
Manish, We have been trying to figure this one out too (with some success to date) and would love to hear other people's views too. We've been using abiword, testing OpenOffice and looking at jasper reports. Stackoverflow has a bunch of conversations on the topic. We are particularly

Re: truncate a link

2012-02-04 Thread euromark
;) great On 4 Feb., 17:49, euromark dereurom...@googlemail.com wrote: autoLink() does exactly that... On 4 Feb., 17:10, Tomfox Wiranata tomfox.wiran...@gmail.com wrote: thx euromark you mind helping me out? how do i translate it to html? are two steps necessary... sorry, but

CREATE, UPDATE, DELETE, VIEW IN CAKEPHP 1.3 USE JQUERY

2012-02-04 Thread ryu servaiv
Any one help me tu learn CAKEPHP AJAX JQUEARY (CREATE, UPDATE, DELETE, VIEW IN CAKEPHP 1.3 USE JQUERY)... i had learn it n i had ask google but i just find Save data user ajax jquery?? can you all help me to make this simple application, please??? Regards; Ryuki; -- Our newest site for the

CREATE, UPDATE, DELETE, VIEW IN CAKEPHP 1.3 USE JQUERY

2012-02-04 Thread ryu servaiv
Any one help me tu learn CAKEPHP AJAX JQUEARY (CREATE, UPDATE, DELETE, VIEW IN CAKEPHP 1.3 USE JQUERY)... i had learn it n i had ask google but i just find Save data user ajax jquery?? can you all help me to make this simple application, please??? Regards; Ryuki; -- Our newest site for the

Re: CREATE, UPDATE, DELETE, VIEW IN CAKEPHP 1.3 USE JQUERY

2012-02-04 Thread Tilen Majerle
what ? :D -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/2/4 ryu servaiv ryuki.serv...@gmail.com Any one help me tu learn CAKEPHP AJAX JQUEARY (CREATE, UPDATE, DELETE, VIEW IN CAKEPHP 1.3 USE JQUERY)... i had learn it n i had ask google but i just find Save data user ajax jquery??

2.1 Console: Class 'AppShell' not found

2012-02-04 Thread heohni
Hi, after downloading the V2.1 and calling first time the 'cake bake' in the console I get this error: PHP Fatal error: Class 'AppShell' not found in D:\SVN-Homes\PHP\trunk \cake2.1\l ib\Cake\Console\Command\BakeShell.php on line 36 If I do the same with the V2.04 all works fine from folder

Re: 2.1 Console: Class 'AppShell' not found

2012-02-04 Thread euromark
AppShell as well as AppController, AppModel etc is required to be placed in your app now. so it must exist there (/APP/Console/Command/AppShell.php) and doesnt fall back to the core one anymore On 4 Feb., 20:38, heohni heidi.anselstet...@consultingteam.de wrote: Hi, after downloading the V2.1

Re: 2.1 Console: Class 'AppShell' not found

2012-02-04 Thread euromark
but that's actually documented: http://book.cakephp.org/2.0/en/appendices/2-1-migration-guide.html On 4 Feb., 20:43, euromark dereurom...@googlemail.com wrote: AppShell as well as AppController, AppModel etc is required to be placed in your app now. so it must exist there

Re: 2.1 Console: Class 'AppShell' not found

2012-02-04 Thread euromark
although the last one (Shell) seems to be wrong in the book! it is supposed to be now: App::uses('Shell', 'Console/Command'); class AppShell extends Shell {} On 4 Feb., 20:44, euromark dereurom...@googlemail.com wrote: but that's actually

Re: 2.1 Console: Class 'AppShell' not found

2012-02-04 Thread heohni
But the file is there! D:\SVN-Homes\PHP\trunk\cake2.1\app\Console\Command\AppShell.php ?? On 4 Feb., 20:43, euromark dereurom...@googlemail.com wrote: AppShell as well as AppController, AppModel etc is required to be placed in your app now. so it must exist there

Re: 2.1 Console: Class 'AppShell' not found

2012-02-04 Thread heohni
Even with this: // app/Console/Command/AppShell.php //App::uses('Shell', 'Console'); App::uses('Shell', 'Console/Command'); I get still the same error on 'cake bake' On 4 Feb., 20:45, euromark dereurom...@googlemail.com wrote: although the last one (Shell) seems to be wrong in the book! it is

Re: 2.1 Console: Class 'AppShell' not found

2012-02-04 Thread heohni
sorry: error was: D:\SVN-Homes\PHP\trunk\cake2.1\lib\Cake\Console\Command \BakeShell.php on line 36 and I copied the AppShell.php from D:\SVN-Homes\PHP\trunk\cake2.1\app\Console\Command\AppShell.php to D:\SVN-Homes\PHP\trunk\cake2.1\lib\Cake\Console\Command\AppShell.php But I stll get the same

Re: 2.1 Console: Class 'AppShell' not found

2012-02-04 Thread Sam Sherlock
remove the copy from the cake lib place it in your app mine looks like this https://github.com/cakephp/cakephp/blob/2.1/app/Console/Command/AppShell.php notice `App::uses('Shell', 'Console');` for me on its working as the book informs - S On 4 February 2012 20:59, heohni

jquery doesn't work

2012-02-04 Thread supp...@deep-coding.net
Hey, I'm having a problem, again :) I want to use some jquery functions in my app, but it doesn't work, so I tried it with a simple function (onlick alert something), but it also doesn't work. In my controller I've added $helpers = array('Js'); And In my view I've added