Using

2006-04-20 Thread stefano
I'm in the need of upgrading an application I wrote vith Cake in october 2005 to the latest Cake release. Thanks to your great work it should be not tto difficult, but I'm not sure on the way I have to take with ACL. When I wrote the application the only choice avaiable was My_Acl based on the

Re: $this-Model-findAll() is killing the rendering (follow-up of my Ajax refresh problem)

2006-04-20 Thread olle
Dear olivvv, (Seen you around here before, haven't I?) I seem to recall a play about this... let's see: (Debugging Tactics enter stage left. Artist stands at his screen.) DT (reads mind of Artist before talking): Have you tried assigning that findAll() to a local temp variable? Artist:

Re: CakePHP Manual 0.10.x.2505

2006-04-20 Thread Gustavo Carreno
On 4/20/06, oko dev [EMAIL PROTECTED] wrote: awesome ! thanks for the updates !! You are quite welcome ;) -- If you know Red Hat you know Red Hat, If you know Slackware you know Linux --~--~-~--~~~---~--~~ You received this message because you are

How to get data from forms?

2006-04-20 Thread Ashley
Hi all! I've just been introduced to Cake world! But I have some problems in understanding how the framework handles the data from forms. I've done a simple model 'User' (username password as attributes), and then I've created a controller with: * an 'index' action that displays a login form *

Re: How to get data from forms?

2006-04-20 Thread Samuel DeVore
look in the $this-params['data'] try using pr(); a shortcut for print_r or you can now use $this-data, if you need the name of the button pushed you can also look in $this-params['form']Sam D On 4/20/06, Ashley [EMAIL PROTECTED] wrote: Hi all!I've just been introduced to Cake world! But I have

Re: Is MS SQL-Server supported?

2006-04-20 Thread Gecko
Thank you olle and nate for your help! The main problem I'm facing since today is the connection from PHP to SQL Server. As nate sugests, I changed the connect key to mssql_connect. I went through the PHP newsgroups and tried many advices, but no luck to create a connection with the extension

Re: Scaffolding like Rails

2006-04-20 Thread ofir
Hey John, I've found some more stuff that needs fixing: 1. The view called view is broken somehow, it only seems broken on a model with a hasMany relationship. The error message is: Parse error: syntax error, unexpected $end in /path/to/views/controllersname/view.thtml on line 64. This is

Re: where to find app/views/layouts/flash.thtml

2006-04-20 Thread nate
It is included in the core by default. If you wish to override the one in the core, you can create your own at app/views/layouts/flash.thtml, but it does not exist by default. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: where to find app/views/layouts/flash.thtml

2006-04-20 Thread Helen Hoke
Thanks for the reply. Now I see there are a few define there in the core, but I don't seem to be able to find the setting that looks like to be used for it. Besides this, my Flash() function never redirects, that's why I doubt whether I need to set it up myself or not.

Re: Model

2006-04-20 Thread Vortexmind
Thank you, I'll try it now! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Is MS SQL-Server supported?

2006-04-20 Thread nate
If I were you I'd read over the user notes here: http://us3.php.net/mssql_connect , even if you've done it already. It took me a few hours of debugging to work out all the issues, but I got it eventually. My problems were that I had to enable dual-mode authentication (Windows and SQL Server),

Re: Scaffolding like Rails

2006-04-20 Thread nate
If you find errors, please report them here: https://trac.cakephp.org/report/1 (you have to register and/or login to create a new ticket). Also, please be sure to mention that they are in reference to the new Bake. Thanks --~--~-~--~~~---~--~~ You received this

Re: where to find app/views/layouts/flash.thtml

2006-04-20 Thread Helen Hoke
Thank you so much for your help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

model-findBySql not returning expected resultset

2006-04-20 Thread [EMAIL PROTECTED]
I am using version 0.10.9.2378_final and am trying to run pre $this-set('events', $this-Event-findBySql(SELECT * FROM events AS Event, pages AS Page WHERE Page.id=Event.page_id AND ( (Page.url LIKE '{$this-pageInformation['url']}' AND

need help uploading picture

2006-04-20 Thread Helen Hoke
I have a model called product. I would want to allow users to upload images for each product. I found this script online: http://www.blazonry.com/scripting/upload-size.phps It works fine when it was uploaded outside cake. However I have a real hard time making it to work on cake. I created a

Re: need help uploading picture

2006-04-20 Thread Armando Sosa
CanĀ“t remember which is exactly the structure, but i know cake puts all uploaded file information in an array, try to add in your controller:debug($this-params);On 4/20/06, Helen Hoke [EMAIL PROTECTED] wrote: I have a model called product. I would want to allow users to uploadimages for each

Re: Scaffolding like Rails

2006-04-20 Thread ofir
Alright, will do. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: need help uploading picture

2006-04-20 Thread [EMAIL PROTECTED]
I use following code: in edit_announce.thtml ?php echo $html-formTag('/news/edit_announce','post',array('enctype'='multipart/form-data')); ? ?php echo $html-file('picFile',array('style'='width:460px;')) ? /form in news_controller.php $form = $this-params[form][picFile]; $imgpath =

Re: model-findBySql not returning expected resultset

2006-04-20 Thread bigdog
Set debug to 2 to see what your query looks like. If you query looks good, copy the query that debug displays and run in phpmyadmin. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: problem uploading image

2006-04-20 Thread Olivier percebois-Garve
I am sorry if this message show up multiple times, but I don't seem to see the post after I post. That surprise me too, but the list is not sending your own emails to you. I want to see them you can go to: http://groups.google.com/group/cake-php olivvv Helen Hoke wrote: I am sorry if this

Re: model-findBySql not returning expected resultset

2006-04-20 Thread [EMAIL PROTECTED]
I set the debug to 2 and it looks ok. I run it in SQLyog (like phpmyadmin) and it returns 2 rows. The array that is returned in cake is: Array ( [0] = Array ( [Event] = Array ( [id] = 2 [page_id] = 2