Re: Retreiving values from Jquery to a controller in cakephp

2009-07-16 Thread rchavik
huh? i think the data is already in the controller.. it's should be in $this-data array. Do a debug in your BeersController-view_beer method. Get firebug, and inspect the response from the webserver. On Jul 16, 11:53 am, jeremy jeffery2k2...@gmail.com wrote: hai can anyone tell me how can i

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-16 Thread rchavik
On Jul 16, 1:50 pm, rchavik rcha...@gmail.com wrote: huh? i think the data is already in the controller.. it's should be in $this-data array. Do a debug in your BeersController-view_beer method. let me rephrase: Do a debug($this-data) in your BeersController-view_beer method, eg: class

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-16 Thread rchavik
On Jul 16, 1:50 pm, rchavik rcha...@gmail.com wrote: huh? i think the data is already in the controller.. it's should be in $this-data array. Do a debug in your BeersController-view_beer method. let me rephrase: Do a debug($this-data) in your BeersController-view_beer method, eg: class

Re: $_POST

2009-07-16 Thread cbhan
As you know Cake is MVC framework , simply you can access the data posted from your view(your form),in the controller's method with the following: say the function name is mario then, function mario() { if(!empty($this-data)){ $mariodata=$this-data;

Re: Render Xml

2009-07-16 Thread paulos nikolo
Ty Alexandru for your help.I will use a little different block of code as i tested it and it works fine.Beow is my code.where i take each geoname's fields and save them in my db. for ( $i = 1; $i = 4; $i += 1) { /** total results**/ $root=$xml-children[0]-children[0]-name;

Problem with form type get

2009-07-16 Thread Andraž
Hello, so if I write this in view ?php echo $form-create('User', array('url' = array('controller' = 'users', 'action' ='login'))); echo $form-input('User.username', array('label' = 'E-mail:', 'style' = 'width: 138px;')); echo $form-input('User.password', array('label' = 'Geslo:', 'style' =

Reasons for moving from the MIT license to the 3-clause BSD one

2009-07-16 Thread Pierre MARTIN
Hi all! Cake3 is a wonderful project, and you might know that I really like it :o) However I just notice that the license will be changed from MIT to the 3-clause BSD one, which is a bit obscure to me. As a developer who made a quick topology of FLOSS licenses, I do not see the difference

Enumerate CakePHP Layouts

2009-07-16 Thread DatacenterHellas
Hello all. I like to create a CMS that will hold many layouts depeding on a page content. e.x. : If the page has a layout for the mane page and then the web site owner will deside to have another layout for the offers to be able to cage to new layout, and if after three months will need a new

form with reset and submit button

2009-07-16 Thread Dhileepen Chakravarthy
Hi Everybody, I want to know how to show the form with reset or clear and submit button. reset to clear all form values , submit to submit the form.how do i do in cakephp, i can able to show the buttons like !-- File: /app/views/posts/add.ctp -- h1Add Post/h1 ?php echo $form-create('Post');

Re: Reasons for moving from the MIT license to the 3-clause BSD one

2009-07-16 Thread Miles J
Agreed, I noticed it and was wondering the same thing. --~--~-~--~~~---~--~~ 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,

Re: How to use 'group by' with paginate()?

2009-07-16 Thread Miles J
Do you have a $paginate property in your controller? You should place the group within the model within the $paginate. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

Re: CakePHP Model Join Strategy - Returning mixed Array/Objects finds results

2009-07-16 Thread Andreas Derksen
Hi, http://book.cakephp.org/view/474/Containable containable and recursive -1 in your AppModel/AppController is the way to go. greets Andreas Dérico Filho schrieb: Hi, I have a doubt on the future of CakePHP regarding how will it handle joins in future releases. The issue is: When you

Re: Enumerate CakePHP Layouts

2009-07-16 Thread Richard
Well, to list the items in the directory, maybe use the ls method of the Folder class. http://api.cakephp.org/class/folder#method-Folderls To store names in the database, I'd create a table: layouts(id, name, template, created, updated); where template refers to the *.ctp file. I'd possibly

variable to string

2009-07-16 Thread Paulos23
Hi people, i am facing a problem with my app.In particular i use httpsocket for a request in an external site to get some information.I have an element to force user put some name: ?php echo ($form-create('Destination', array ('controller'='destinations','action' ='search')));? ?php

problem with saveAll

2009-07-16 Thread Jon Chin
I'm experiencing weird behavior with using $this-model-saveAll(). When I pass it an array of just one record, it successfully inserts this to the db table. However, when I pass it an array of more than one record, they all successfully insert except for the last record. Anybody have an idea

Translate behavior - associated models

2009-07-16 Thread thomas.m...@gmail.com
Hello, It is my understanding that the Translate Behavior is not capable of translating associated models. Would someone be kind enough to confirm/infirm this ? thanks you in advance thomas --~--~-~--~~~---~--~~ You received this message because you are

Themed implementation in cakephp

2009-07-16 Thread shahgeb
Hy i am using themes in my application: It might be stupid question for you but i am facing problem: suppose my themed directory is --view users index.php admin_index.php

Re: Insert Query from another table in .ctp

2009-07-16 Thread Richard
You load the record in the controller, before you push the data to the view that you have in your link below. I would record the statistics at this point in the controller. I noticed in your view code, you have an array which you iterate. After the first iteration, you have a header(Location:) -

Re: Using layouts with themes

2009-07-16 Thread shahgeb
yes you need to put you layout folder in theme folder and as mention in previus post you need to put your css and js in webroot folder . you should visite also http://book.cakephp.org/view/488/Themes On Jul 16, 7:55 am, ramzwatcher coolramz...@gmail.com wrote: Did you place the css files at

Re: Themed implementation in cakephp

2009-07-16 Thread M Naveed Akram
you can ask your colleagues On Thu, Jul 16, 2009 at 3:04 PM, shahgeb superior.am...@gmail.com wrote: Hy i am using themes in my application: It might be stupid question for you but i am facing problem: suppose my themed directory is --view users

Re: Auth - get all public Controllers for SitemapDeluxe

2009-07-16 Thread delocalizer
Configure::listObjects('controller') returns an array list of all the controllers - first element is 'App' which you probably don't want. On Jul 15, 8:52 pm, ixopo i...@townhill-park.com wrote: Hello, we are using Auth and this is working fine so far. I'm just implementing the

Re: Getting Started With CakePHP

2009-07-16 Thread bokerao
Cookbook is a good start, after that you can try make a simple application and then ask here if is necessary or look for somethings in my friend GOOGLE! On Jul 15, 11:38 am, GravyFace gravyf...@gmail.com wrote: I think he's closer to trolling (whether he knows it or not) by asking a question

Re: ambiguous routes

2009-07-16 Thread Piotr Kilczuk
Hello, I highly dislike working with routes, but there are few points where it can break. 1. What is the difference between the two rules you supplied? Any chance that the 2nd route will be ever used? 2. I suppose you use Router::connect not $Route-connect, just a typo here... 3. As far as I

Structure of book.cakephp.org

2009-07-16 Thread bram
Dear Bakers, When browsing book.cakephp.org, I'm usually looking for the Model page. Especially page 73 (getting data), 75 (saving data) and 78 (associations). Those pages are three levels deep and stored under 'Developing with CakePHP'. While advanced topics like Components, Behaviors,

Re: ambiguous routes

2009-07-16 Thread mark_nsx
Thank you very much Piotr! I'll give that a try tomorrow morning. Cheers! On Jul 16, 10:01 pm, Piotr Kilczuk kilc...@gmail.com wrote: Hello, I highly dislike working with routes, but there are few points where it can break. 1. What is the difference between the two rules you supplied? Any

Re: HABTM with additional data scaffold update problem.

2009-07-16 Thread Defranco
no ideas? --~--~-~--~~~---~--~~ 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

Re: hasMany question

2009-07-16 Thread Domenico Testa
On Jul 16, 6:16 am, fedekun fedekil...@gmail.com wrote: Hi! I have just started with CakePHP and it seems very good so far! But i have a little question... i have a Post model, each post hasMany comments, and comments belongsTo a Post. If i want to order posts ASC and comments DESC...How do

Model association problem

2009-07-16 Thread Zoran Kovac
Hi! I'm having a dilema, maybe the better word is that I'm puzzled. The problem is when I'm baking models. The console doesn't detect relations between tables automatically. For instance, the console does recognize all the tables from the database, but when it's triying to detect associations

Associations - naming conventions

2009-07-16 Thread Octavian
Hi, I have a matches table that consist of a home_team and an away_team column. I also have a teams table with the team information so home_team and away_team are foreign keys referring to the particular id of teams. Unfortunately I can't seem to configure this with cakephp (the naming

Re: with debug = 0, Cakelog::write results in blank page

2009-07-16 Thread Alexander Sutyagin
Most probably you fogot to define view file or something else that cold lead to 404 error. On 9 июл, 01:25, rb rbo...@epsbooks.com wrote: After searching the group, I'm seeing there are a few issues when debug = 0. My issue is with Cakelog::write.  Anytime I use it w/ debug 0, everything

App Controller not intialized on error (missing action/controller)

2009-07-16 Thread Brendon Gleeson
I am having a problem, The array for my view's nav menu is built in app/app_controller.php, when an error occures the variable is not being initialized, I assume this is because app_controller.php is not being called? any solutions? --~--~-~--~~~---~--~~ You

Re: hasMany question

2009-07-16 Thread Carlos Gonzalez Lavin
A thorough read of the cookbook is always a good place to start I have never tried sorting by two fields, but how about: *$this-Post-find('all',array('order' = array('Post.created ASC', 'Comment.created DESC')));* if that doesnt work: *$this-Post-find('all',array('order' = 'Post.created ASC,

Re: Model association problem

2009-07-16 Thread Carlos Gonzalez Lavin
Maybe if you described the tables' fields.. theres gotta be some convention breaking there 2009/7/16 Zoran Kovac zoko2...@gmail.com Hi! I'm having a dilema, maybe the better word is that I'm puzzled. The problem is when I'm baking models. The console doesn't detect relations between

Re: Submit/Cancel problem

2009-07-16 Thread Mathieu Ruellan
I've got the same problem than you. did you find a solution? On 20 mai, 00:23, Nancy nancy.milli...@gmail.com wrote: Buttons without type of submit don't really do anything without onClick javascript right?  I tried your idea and it just doesn't do anything.  Reset just resets a form.  I'd

Re: Structure of book.cakephp.org

2009-07-16 Thread Gwoo
Thanks for the feedback. I happen to agree with you. I know the docs team struggles sometimes with where to put things. They try their best to look at it from a new developer's perspective, but that is not an easy thing to do. Please feel free to suggest an alternate structure. If you can get on

Re: Associations - naming conventions

2009-07-16 Thread Octavian
Anyone? --~--~-~--~~~---~--~~ 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

Re: $_POST

2009-07-16 Thread mario vallejo
Hey, thank you very much! Let me try this out and I'll inform you if it was what I needed. On 7/16/09, cbhan gotob...@gmail.com wrote: As you know Cake is MVC framework , simply you can access the data posted from your view(your form),in the controller's method with the following: say the

Re: Associations - naming conventions

2009-07-16 Thread Piotr Kilczuk
Hello, I have a matches table that consist of a home_team and an away_team column. I also have a teams table with the team information so home_team and away_team are foreign keys referring to the particular id of teams. Unfortunately I can't seem to configure this with cakephp (the naming

Modificar html del mensaje de contraseña incorrecta en el componente Auth.

2009-07-16 Thread Eddy Josafat
Hola; Estoy intentando modificar el html que se genera automáticamente en el mensaje de contraseña incorrecta del componente Auth. El texto en si lo he modificado sin problemas tal como se comenta en la documentación: function beforeFilter() { $this-Auth-loginError = 'Su

Re: jQuery UI Tabs and Ajax

2009-07-16 Thread brian
On Wed, Jul 15, 2009 at 5:04 PM, havannathomas.blas...@diacs.de wrote: Hi Brian, thank you for your answer. With $this-contain = false I'm using the shortform (see on http://book.cakephp.org/view/474/Containable). Yes, it's the short form to tell Cake not to bother invoking Containable. So

Re: Associations - naming conventions

2009-07-16 Thread Octavian
You've done a great deed for a noob today. Thanks a lot Piotr! --~--~-~--~~~---~--~~ 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

Re: variable to string

2009-07-16 Thread brian
You should get the value from $this-data['Destination']['place'] On Thu, Jul 16, 2009 at 5:09 AM, Paulos23paulitosthe...@gmail.com wrote: Hi people, i am facing a problem with my app.In particular i use httpsocket for a request in an external site to get some information.I have an element

Re: cakephp with javascript

2009-07-16 Thread villas
(¨`•.•´¨) I may be busy, `•.¸(¨`•.•´¨)  but I assure you, (¨`•.•´¨)¸.•´ you are always in my heart `•.¸.•´ With Lots of Love. THANKS AND REGARDS Jeffery Jacob Hey Jeff, Looks like you got your Cakephp message signature mixed up with the one for the Dating Site. :-)

CakePHP and Jcrop

2009-07-16 Thread Dave Maharaj :: WidePixels.com
Has anyone implemented JCrop into a cake application? ***not interested in the jQuery Crop and Upload as in the Bakery *** So far I have upload images function which creates 1 size for the gallery and a thumbnail. Added editimage function which loads the fullsize image and the jCrop

Re: Tried to install another application inside cakePHP configuration

2009-07-16 Thread Travis L
If you have httpd.conf access, I'd put the directive in there. Alias /pma /var/www/html/phpMyAdmin Directory /var/www/html/phpMyAdmin ... /Directory On Jul 15, 9:11 am, saavedrajj saavedr...@gmail.com wrote: it works with this code IfModule mod_rewrite.c    RewriteEngine on    rewritecond

Re: Root Server: email-component fails sometimes, why?

2009-07-16 Thread Travis L
Anything on your system to suggest it's overloaded and the messages are getting silently dropped? If you increase Cake's debug level you should see some output which could help you out, it'll give you a full stack trace I believe. On Jul 15, 1:17 pm, DigitalDude e.blumsten...@googlemail.com

Re: $_POST

2009-07-16 Thread Travis L
cbhan - I think that Cake will only store data into the Controller::data attribute if the corresponding HTML entity is named according to Cake convention (e.g. data[Field]). Without that data identifier, I don't think you'll be able to access the facebook POST'd values in the controller in that

Re: CakePHP and Jcrop

2009-07-16 Thread brian
Does the controller receive the values? What are you using to do the actual cropping? Is the webserver allowed to write to the directory? Are you seeing errors in the log? On Thu, Jul 16, 2009 at 12:30 PM, Dave Maharaj :: WidePixels.comd...@widepixels.com wrote: Has anyone implemented JCrop

RE: CakePHP and Jcrop

2009-07-16 Thread Dave Maharaj :: WidePixels.com
I just figured it out Was missing the save the new image function. Added; imagejpeg($dst_r, $output_filename, $jpeg_quality); in the editimage function and presto Much easier than the Bakery component Thanks Dave -Original Message- From: brian [mailto:bally.z...@gmail.com]

Re: URI problem

2009-07-16 Thread Marcelo Andrade
On Wed, Jul 15, 2009 at 5:23 PM, Yc Zhangnjit...@gmail.com wrote: and I add a line of RewriteBase to public_html/cake/app/weboot folder  RewriteBase /~username/cake/ CakePHP has three .htaccess files. Besides the one at public_html/cake/app/webroot, try adding the RewriteBase to the others

Re: jQuery UI Tabs and Ajax

2009-07-16 Thread havanna
Hi Brian, thank you again for your answer. I think I comming a step forward. I thought also yesterday, that the ajax call will call my other view. Now I think my problem is the ui tab. At ui tabs you can include your content from the view - that works for tab1 to tab4. It's also possible to say

Re: jQuery UI Tabs and Ajax

2009-07-16 Thread brian
Sorry, I don't know. You might get a better response from the jquery google group. There are a lot of people who are very helpful with it. Ask how to mix UITab content between local page content and remote. On Thu, Jul 16, 2009 at 1:30 PM, havannathomas.blas...@diacs.de wrote: Hi Brian,

Re: CakePHP and Jcrop

2009-07-16 Thread brian
Yeah, that component at the Bakery seemed a bit dubious. On Thu, Jul 16, 2009 at 1:04 PM, Dave Maharaj :: WidePixels.comd...@widepixels.com wrote: I just figured it out Was missing the save the new image function. Added; imagejpeg($dst_r, $output_filename, $jpeg_quality); in the

How to make use of the error method for one controller with different modules

2009-07-16 Thread Sheetal
My scenario is : Keep for example there is a view file and it has 2 input fields for entering name. First field belong to model_1 which is the primary model of the view page. Second field belongs to another model model_2. Both fields are mandatory and has an error msg. if left blank. If I use

RE: CakePHP and Jcrop

2009-07-16 Thread Dave Maharaj :: WidePixels.com
I tried the Bakery one over and over and finally got it workingthen after a few uploads of testing I get 500 Internal Server Error...but who knows. Figured I would try it on my own and to my surprise it works perfect and with very little code. Dave -Original Message- From: brian

Re: Tried to install another application inside cakePHP configuration

2009-07-16 Thread saavedrajj
thanks everybody for the help On 16 jul, 12:31, Travis L lele...@gmail.com wrote: If you have httpd.conf access, I'd put the directive in there. Alias /pma /var/www/html/phpMyAdmin Directory /var/www/html/phpMyAdmin ... /Directory On Jul 15, 9:11 am,saavedrajjsaavedr...@gmail.com wrote:

Re: Associations - naming conventions

2009-07-16 Thread Octavian
Hi, Now I have a problem with the hasOne association. Users have a favorite club (favclub) which is a foreign key to the Clubs (contains id and name) table. How do I code that? So every user hasOne favclub (referring to clubs.id)? Thanks for much appreciated your help.

belongsto relationship not working

2009-07-16 Thread Travis
I have successfully set up other belongsto relationships in this program but one does not work the model code is: class IrrigationEvent extends AppModel { var $name = 'IrrigationEvent'; var $useTable = 'irrigation_events'; var $belongsTo = array( 'Field' = array(

Re: belongsto relationship not working

2009-07-16 Thread Piotr Kilczuk
Hello, I have successfully set up other belongsto relationships in this program but one does not work the model code is: class IrrigationEvent extends AppModel {    var $name = 'IrrigationEvent';    var $useTable = 'irrigation_events';    var $belongsTo = array(            'Field' =

Re: Associations - naming conventions

2009-07-16 Thread Piotr Kilczuk
Hello, Now I have a problem with the hasOne association. Users have a favorite club (favclub) which is a foreign key to the Clubs (contains id and name) table. How do I code that? So every user hasOne favclub (referring to clubs.id)? Thanks for much appreciated your help. This might be

Re: CakePHP and Jcrop

2009-07-16 Thread Miles J
You should try my uploader plugin, it wont cause any errors. http://www.milesj.me/resources/script/uploader-plugin On Jul 16, 10:50 am, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote:  I tried the Bakery one over and over and finally got it workingthen after a few uploads of

RE: CakePHP and Jcrop

2009-07-16 Thread Dave Maharaj :: WidePixels.com
Looks good. Will give it a try later tonight. Thanks, Dave -Original Message- From: Miles J [mailto:mileswjohn...@gmail.com] Sent: July-16-09 6:28 PM To: CakePHP Subject: Re: CakePHP and Jcrop You should try my uploader plugin, it wont cause any errors.

Re: Using layouts with themes

2009-07-16 Thread djfingers
I got it to work, there was some other code interfering in some unpredictable ways, when that was cleaned up the theming worked. It's pretty nice to be able to theme and use different layouts now. thanks for the css tip, I will probably update the layout code to use that html css helper. On

Re: hasMany question

2009-07-16 Thread fedekun
Thanks! Hmm is there a way to do that on read instead of find? I have... $this-Post-read(null, $id); I cant find documentationfor read method though..i just find about find, findAll etc... On 16 jul, 10:59, Carlos Gonzalez Lavin carloslavi...@gmail.com wrote: A thorough read of the cookbook is

Re: problem with saveAll

2009-07-16 Thread Jon Chin
Seems like it's working now. I changed the table type to MyISAM, which corrupted the table. So I repaired it and changed it back to InnoDB. Now it's working fine. I didn't change any code. Can anybody explain this? Jon Chin Jon Chin wrote: I'm experiencing weird behavior with using

Re: App Controller not intialized on error (missing action/controller)

2009-07-16 Thread Mark
not quite right.. the beforeFilter() and afterFilter() functions are not triggered but if you put your code in the beforeRender() it should work On 16 Jul., 09:34, Brendon Gleeson gleeso...@mobilitas.org wrote: I am having a problem, The array for my view's nav menu is built in  

Blank white screen on new upload

2009-07-16 Thread Lisa
Hiya, Our client has a site built with CakePHP and has today had a prob with their previous host - so we've quickly had to move it all to a new hosting account. We've got everything uploaded and all paths seem to be ok - but when .htaccess is set to redirect to app/webroot it just returns a

replacing parts of url

2009-07-16 Thread Isaac Raja
Hi all, I'm developing a web application, in which the when the user adds a filter, it is appended to the url, for example http://www.classifieds.my/categories/list_post/category_name/price:245/title:something/keyword:somethingelse/name:newname Everything is working fine now, But I want the

Re: Blank white screen on new upload

2009-07-16 Thread lapinski
Are you sure index.php under webroot/ is pointing to the right ROOT, APP_DIR and CAKE directories? Lapinski Lisa-69 wrote: Hiya, Our client has a site built with CakePHP and has today had a prob with their previous host - so we've quickly had to move it all to a new hosting

App::import - I'm doing it wrong?

2009-07-16 Thread Mike
Hello! So I'm in the process of upgrading to Cake 1.2 (from an earlier beta, I believe), and I'm switching from the vendors() function to the App::import function. According to http://book.cakephp.org/view/499/The-App-Class, there's an example that's close to what I want to do:

Re: jQuery UI Tabs and Ajax

2009-07-16 Thread rchavik
IIRC, $('#tabs').tabs() should be sufficient, as long as one of your LI contains a remote URL. For your fifth tab, try using the following: li a href=/admin/attachments/getlist/?php echo $this-data ['Posts']['id']; ? /a /li Note that I removed the span there. It should call

Re: Blank white screen on new upload

2009-07-16 Thread joshua
Can you post the content in .htaccess here? Why you set it manually? On Fri, Jul 17, 2009 at 6:39 AM, Lisa adminbris...@googlemail.com wrote: Hiya, Our client has a site built with CakePHP and has today had a prob with their previous host - so we've quickly had to move it all to a new

Re: App::import - I'm doing it wrong?

2009-07-16 Thread Miles J
Yeah if the import doesnt work right off the bat, you have to use the file option. --~--~-~--~~~---~--~~ 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

url to array

2009-07-16 Thread Isaac Raja
Hi, Every functions in helpers like $html-link $html-urlconverts the array url parameters in to an url (like array('controller' = 'posts','action' = 'view'); gets converted in to /posts/view is there any function in cakephp that does the reverse?. Example convert

Cakephp development questions

2009-07-16 Thread Isaac Raja
Hi, what is the development flow in cakephp, define routers and then start creating application or create application and then create routing config? also how to name the controller methods like Categories::list_post() or Categories::listPost() ? Thanks Isaac

Re: A Table Belongs to the Same Table

2009-07-16 Thread si-mon
Thanks Miles, thanks ecommy... On Jul 14, 11:17 am, ecommy bstdevelopm...@gmail.com wrote: you may want to check this:http://bakery.cakephp.org/articles/view/coding-a-self-join-in-a-cake-... On Jul 14, 9:04 am, si-mon sijumo...@gmail.com wrote: Hi All, I am creating a CRM application

Re: App::import - I'm doing it wrong?

2009-07-16 Thread Mike
Is that by design (for the 'vendors' stuff)? If it is, I'd love to volunteer to update the documentation in the online Cake book to make this more clear. Thanks! On Jul 16, 8:15 pm, Miles J mileswjohn...@gmail.com wrote: Yeah if the import doesnt work right off the bat, you have to use the

Re: form with reset and submit button

2009-07-16 Thread Dhileepen Chakravarthy
Please anyone gave me a solution --~--~-~--~~~---~--~~ 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

Re: form with reset and submit button

2009-07-16 Thread rchavik
Trying moving your $form-button('Reset', ) to before $form-submit ('Save Post'); On Jul 17, 11:57 am, Dhileepen Chakravarthy dhileepen.cake...@gmail.com wrote: Please anyone gave me a solution --~--~-~--~~~---~--~~ You received this message because you are

Re: form with reset and submit button

2009-07-16 Thread rchavik
Upon rereading your snippet, I think your code should've worked. I'm not sure what's going on here. On Jul 16, 3:36 pm, Dhileepen Chakravarthy dhileepen.cake...@gmail.com wrote: Hi Everybody, I want to know how to show the form with reset or clear and submit button. reset to clear all form

Re: form with reset and submit button

2009-07-16 Thread Amjad Farooq
uses in reset action $this-data['Post']['body'] = ''; $this-data['Post']['title'] = ''; hope it will work On Thu, Jul 16, 2009 at 2:36 PM, Dhileepen Chakravarthy dhileepen.cake...@gmail.com wrote: Hi Everybody, I want to know how to show the form with reset or clear and submit

Re: form with reset and submit button

2009-07-16 Thread John Andersen
A reset button will only return the form to the state it had upon showing the page with the form! Reset will not clear the form if the form already contains values! If you want to clear the form, use javascript or turn the reset/clear button into at submit button and handle the clearing in the

Re: form with reset and submit button

2009-07-16 Thread Dhileepen Chakravarthy
Thanks all !-- File: /app/views/posts/add.ctp -- h1Add Post/h1 ?php echo $form-create('Post'); echo $form-input('title'); echo $form-input('body', array('rows' = '3')); echo $form-button('Reset', array('type'='reset'), action=); echo $form-submit('Save Post'); echo $form-end(); ? //controller