Re: 3.0: a peek into CakePHP's future

2012-07-09 Thread WyriHaximus
http://php.net/manual/en/class.serializable.php :). On Tuesday, July 10, 2012 3:57:20 AM UTC+2, madi wrote: > > Wouldn't array be still used? For instance more than one objects are > passed, should the objects be stored in an array? What would happen to the > auto conversion to json? Array is ea

Re: the hasMany Model array is gone !

2012-07-09 Thread Albert 'Tigr'
The array from erading data does not look right for hasMany. What is the command you use for reading data? How do you save the data? What's in your View? Show the code, please. On Monday, 9 July 2012 19:29:30 UTC+2, DANNY wrote: > > Hi everyone : > > I create two Model , Order and OrderDetail > >

Re: 3.0: a peek into CakePHP's future

2012-07-09 Thread Madhan madz
Wouldn't array be still used? For instance more than one objects are passed, should the objects be stored in an array? What would happen to the auto conversion to json? Array is easier to convert to json rite? On Jul 10, 2012 1:19 AM, "Jamescowhen" wrote: > I would think moving to a more object o

saveAll saving binary data with hasMany relationship

2012-07-09 Thread Clark Ritchie
I have two Models that I want to connect by a hasMany relationship. - Model 1 is a *School* -- basically just text info like school name, address. I can independently add/edit/view/delete schools OK. - Model 2 is a *File*. I can independently add/edit/view/delete files OK. Fil

Re: Ajax Pagination with Filter Plugin Problem

2012-07-09 Thread Sanjeev Divekar
I have already tried this but not working. On Mon, Jul 9, 2012 at 10:50 PM, lowpass wrote: > On Mon, Jul 9, 2012 at 12:20 AM, sanjeev wrote: > > Fist Time it works but after div updated submit click doesn't work. I > think > > click event lost. > > Yes, that's likely the problem. I've never use

Re: Login takes away the slug from my URL

2012-07-09 Thread Ricardo Cortés
thanks for you answer. I solved this case this way: public function beforeFilter() { parent::beforeFilter(); if (!$this->request->is('post')) { $this->Auth->loginAction = 'this is:slug/users/login/'; } } Where "this is slug", should be the slug. Best Regards. El domingo,

Re: CakeDC User Plugin not sending verification email

2012-07-09 Thread mk
Thanks for the reply... I will review my email.php again and hope to find my error. thanks again mk On Monday, July 9, 2012 6:25:48 PM UTC-5, sams wrote: > > Your email cfg is incorrect with your app - see Config/email.php > > - S > On 9 Jul 2012 23:45, "mk" wrote: > >> yes, sorry typo. it is c

Re: Pages and Auth

2012-07-09 Thread David Lozzi
Fantastic! Only thing better than CakePHP is the community! Thank you so much! -- 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 unsubsc

Cakephp with Extjs

2012-07-09 Thread Mr. Manager
Dear All, I think that all of you can help me with show how to integrate cakephp with extjs because I want to build a web app to be like window app and does anyone has a tutorial book to use extjs because I don't have any basic background about extjs. I am looking forward to hearing from you a

Re: CakeDC User Plugin not sending verification email

2012-07-09 Thread Sam Sherlock
Your email cfg is incorrect with your app - see Config/email.php - S On 9 Jul 2012 23:45, "mk" wrote: > yes, sorry typo. it is configure::write in my code. The Error simply > states > "Could not send email. > > *Error: * An Internal Error Has Occurred." > > I'm running this from localhost and ma

Re: CakeDC User Plugin not sending verification email

2012-07-09 Thread mk
yes, sorry typo. it is configure::write in my code. The Error simply states "Could not send email. *Error: * An Internal Error Has Occurred." I'm running this from localhost and maybe my smtp setup?... although I thought I had it setup correctly. Thanks On Monday, July 9, 2012 5:03:32 PM UTC-

Re: CakeDC User Plugin not sending verification email

2012-07-09 Thread lowpass
I don't see an error message, just the stacktrace. Is this a typo? Configure::wrote (should be write) On Mon, Jul 9, 2012 at 4:34 PM, mk wrote: > Hi > > > > I’m trying to implement the 2.0 branch of the CakeDC Users Plugin > (https://github.com/CakeDC/users/tree/2.0) , I have installed all neces

Re: Is there a way to read the "VIEWS" folder using the Folder utility?

2012-07-09 Thread Tilen Majerle
you get any errors ? App::uses('Folder', 'Utility'); $folder = new Folder(APP . 'View' . DS . 'Pages' . DS); $readed = $folder->read(); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/9 Shahruk Khan > $Folder = new Folder(''); > > I'm trying to CD up to app/Views/pages so I can read a

Is there a way to read the "VIEWS" folder using the Folder utility?

2012-07-09 Thread Shahruk Khan
$Folder = new Folder(''); I'm trying to CD up to app/Views/pages so I can read all the files in there and do some A/B testing. Unfortunately, I can't seem to able to figure this out. Any help? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the n

Re: Initial set-up could not find controller

2012-07-09 Thread lowpass
What do you get with just http://localhost/ ? On Mon, Jul 9, 2012 at 9:04 AM, bowman290 wrote: > Hi all, > I've googled this extensivley for the past 3 hours but am failing to find a > solution so maybe you guys can help. > I'm new to CakePHP and was about to undertake some tutorials however the

Re: cakePhp router::connect with couple values

2012-07-09 Thread lowpass
On Mon, Jul 9, 2012 at 8:34 AM, Chris wrote: > Hi! > I want on my website create rule, when I access: > > address/username the default page with user is shown. I created: > Router::connect('/*', array('controller' => 'users', 'action' => 'view')); > > But then I cannot link any other controllers o

the hasMany Model array is gone !

2012-07-09 Thread DANNY
Hi everyone : I create two Model , Order and OrderDetail the Order hasMany OrderDetail And I read Order , then it's got the following array [Order] id = 1 name = xxx [OrderDetail] id = 2 name = xxx -- But I tri

Re: Ajax Pagination with Filter Plugin Problem

2012-07-09 Thread lowpass
On Mon, Jul 9, 2012 at 12:20 AM, sanjeev wrote: > Fist Time it works but after div updated submit click doesn't work. I think > click event lost. Yes, that's likely the problem. I've never used livequery so could not say for sure. I think it should be sufficient to either use JQuery's live() or c

Re: 3.0: a peek into CakePHP's future

2012-07-09 Thread Jamescowhen
I would think moving to a more object oriented model will result in better readable code and IDE auto completion will be more useful. On Sunday, July 8, 2012 7:12:32 PM UTC-7, Greg wrote: > > For mine, being able to deal with objects in the view would greatly > improve the readability of data (

Re: Did you know?

2012-07-09 Thread John Hardy
False, I hav an ETL written with a cake model and it transforms 10,000 records with each pass. Been running for over a year and has processed over 2 billion records. On Jul 7, 2012, at 10:38 AM, zuha wrote: > Did you know that CakePHP has a limit of 1,254 records to be returned in an > array?

Re: Is there a way to override CakeRequest.php (and for that matter any other Lib file) at the App level?

2012-07-09 Thread stork
+1 I think this is what you want: > > http://api20.cakephp.org/class/cake-request#method-CakeRequestaddDetector > -- 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 Cak

Re: CakePHP2.1.3 does not work on PHP5.4.3?

2012-07-09 Thread AD7six
On Monday, 9 July 2012 15:22:23 UTC+2, тoяisu wrote: > > Thank you for your reply. > > But I could not solve this issue. > > so, following code does not appear an error. > - > 1 2 > 3 class Hoge extends AppModel > 4 { > 5 public $name = 'Hoge'; > 6 > 7 // public function before

Initial set-up could not find controller

2012-07-09 Thread bowman290
Hi all, I've googled this extensivley for the past 3 hours but am failing to find a solution so maybe you guys can help. I'm new to CakePHP and was about to undertake some tutorials however the initial set-up on my localhost didn't go to plan and i have no idea why. I downloaded the latest versio

Re: CakePHP2.1.3 does not work on PHP5.4.3?

2012-07-09 Thread тoяisu
Thank you for your reply. But I could not solve this issue. so, following code does not appear an error. - 1 > > > On Monday, 9 July 2012 10:55:25 UTC+2, тoяisu wrote: >> >> Hi, all >> >> I set up cakephp2.1.3 with PHP5.4.3 on CentOS 6.2 server. >> following error message appeared. On PHP 5

Re: cakePhp router::connect with couple values

2012-07-09 Thread Chris
If this is not valid rule how can I do this in correct way? W dniu poniedziałek, 9 lipca 2012 14:34:18 UTC+2 użytkownik Chris napisał: > > Hi! > I want on my website create rule, when I access: > > address/username the default page with user is shown. I created: > Router::connect('/*', array('co

Re: cakePhp router::connect with couple values

2012-07-09 Thread Tilen Majerle
Router::connect('/*', array('controller' => 'users', 'action' => 'view')); i think you need to add this at the bottom, buuut this roule is not valid if i'm right Router::connect('/*/profil/*', array('controller' => 'users', 'action' => 'profil')); -- Lep pozdrav, Tilen Majerle http://majerle.eu

cakePhp router::connect with couple values

2012-07-09 Thread Chris
Hi! I want on my website create rule, when I access: address/username the default page with user is shown. I created: Router::connect('/*', array('controller' => 'users', 'action' => 'view')); But then I cannot link any other controllers or actions. I want other rule: address/username/profil

Re: CakePHP2.1.3 does not work on PHP5.4.3?

2012-07-09 Thread AD7six
On Monday, 9 July 2012 10:55:25 UTC+2, тoяisu wrote: > > Hi, all > > I set up cakephp2.1.3 with PHP5.4.3 on CentOS 6.2 server. > following error message appeared. On PHP 5.3.14 was everything fine. > - > Fatal error: Class 'Debugger' not found in /path/to/Model/Hoge.php on line > 10 > -

CakePHP2.1.3 does not work on PHP5.4.3?

2012-07-09 Thread тoяisu
Hi, all I set up cakephp2.1.3 with PHP5.4.3 on CentOS 6.2 server. following error message appeared. On PHP 5.3.14 was everything fine. - Fatal error: Class 'Debugger' not found in /path/to/Model/Hoge.php on line 10 - /path/to/Model/Hoge.php is here. - 1 - Anyone had the same

Re: The new Hash class and complex find statements.

2012-07-09 Thread Stefano Zoffoli
So it isn't possible? -- Dott. Stefano Zoffoli *Web Development & Internet Technologies * *Librasoft Snc *http://www.librasoftsnc.it Via della Luna, 13 47034 Forlimpopoli (FC) Tel. +39 0543 424612 Fax +39 0543 424612 2012/7/6 ankit patel > Stefano Zoffoli I think you are right > > -- > Our new