Re: Help needed with Warning (512): SQL Error: 1066

2011-03-18 Thread samjoe
Bump. Guys !! I really need help with this. Any help is greatly appreciated. -- View this message in context: http://cakephp.1045679.n5.nabble.com/Help-needed-with-Warning-512-SQL-Error-1066-tp3881729p3898998.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site

Ajax update multiple divs duplicating data

2011-03-18 Thread ziza
My multiple div update works but it duplicates the information when I click on the submit botton I have a page loading from the controller index $this-render('firstload'); the firstload has this information echo $ajax-form('Worker', 'post', array('model' = 'Worker', 'url' =

Re: Problem Using Ajax in Cakephp

2011-03-18 Thread Shashank
Finally i am able to use ajax. But now there is one more problem. I use 1) Ajax form 2) And made an ajax request through jquery. These are two different forms. For one form i used the ajax form. And for second one i used the jquery to make the ajax request. Bt the issue now i am facing is ajax

Re: apostrophe in URl and view cache

2011-03-18 Thread qua...@gmail.com
Thanks but I should have made it clear that I do urlencode the URL. I just didn't show the encoded URL here. On Mar 17, 4:46 pm, Ryan Schmidt google-2...@ryandesign.com wrote: On Mar 17, 2011, at 13:24, qua...@gmail.com wrote: I am having a problem with cache if the URL has apostrophe in it.

Re: Please help:Country and its state in index

2011-03-18 Thread Ryan Schmidt
On Mar 18, 2011, at 02:04, andy_the ultimate baker wrote: i m trying to display states with respect to country in index. but country is displaying each time for each state. i want to get all the state for under its respective country for each time. eg. if i have india as country having

Please help:Country and its state in index

2011-03-18 Thread andy_the ultimate baker
hi, i m trying to display states with respect to country in index. but country is displaying each time for each state. i want to get all the state for under its respective country for each time. eg. if i have india as country having many sates then all states belongs to india will come under one

Vedio Upload in Cakephp

2011-03-18 Thread Shashank
Hi, I am trying to do something new here. I want a feature something like ds: A user been able to upload a vedio from his local pc, and then he can go over the site to play and watch it. I have no idea how to do ds. But i need to get it done asap. Any helps will be greatly appreciated!!! --

Re: Please help:Country and its state in index

2011-03-18 Thread andy_the ultimate baker
=this is my ctp tr th width=34%List of Country /th th width=35%List of State /th th width=16%Edit/th

Re: [Ask] Query to select multiple table in cakephp

2011-03-18 Thread thom
On Fri, Mar 18, 2011 at 11:14 AM, cricket zijn.digi...@gmail.com wrote: When I did this I didn't bother modelizing ArosAcos. This is from my SectionsController. Each Group has different rights for each Section. Well, what exactly I want is I wanna make a simple ACL Management based on

Re: Share You tube Vedios in Cakephp

2011-03-18 Thread Warren
Could you not use a simple form field that take the embed code from youtube eg : iframe title=YouTube video player width=480 height=390 src=http://www.youtube.com/embed/8rluU6BGpKw; frameborder=0 allowfullscreen/iframe ? And then echo that in the view? On 18/03/2011 09:58, Shashank wrote:

Share You tube Vedios in Cakephp

2011-03-18 Thread Shashank
Hi Guys, I need to know a way that enables the user to share youtube vedios on the site. Thanks -- 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

Re: Vedio Upload in Cakephp

2011-03-18 Thread mike karthauser
On 18 Mar 2011, at 07:30, Shashank wrote: Hi, I am trying to do something new here. I want a feature something like ds: A user been able to upload a vedio from his local pc, and then he can go over the site to play and watch it. I have no idea how to do ds. But i need to get it done asap.

Re: Share You tube Vedios in Cakephp

2011-03-18 Thread Shashank
You mean i shud give the user and input field where he enters the url of youtube, and on submit i produce this iframe whose src will be the url that the user entered On Fri, Mar 18, 2011 at 1:32 PM, Warren smole...@gmail.com wrote: Could you not use a simple form field that take the embed code

Re: Vedio Upload in Cakephp

2011-03-18 Thread Shashank
Hmm. Then let me try it through you tube then . On Fri, Mar 18, 2011 at 1:36 PM, mike karthauser mi...@brightstorm.co.ukwrote: On 18 Mar 2011, at 07:30, Shashank wrote: Hi, I am trying to do something new here. I want a feature something like ds: A user been able to upload a vedio from

Re: Vedio Upload in Cakephp

2011-03-18 Thread Jeremy Burns | Class Outfit
Why are there two threads from the same person on the same subject? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 18 Mar 2011, at 08:12, Shashank wrote: Hmm. Then let me try it through you tube then . On Fri, Mar 18, 2011 at 1:36 PM, mike karthauser

Re: Share You tube Vedios in Cakephp

2011-03-18 Thread Warren
Not exactly. If you go view a video on youtube you will see there is an option to get the embed code. This is the what you should ask your user's to input. You could have a simple regex check to make sure it seems like an embed code. You then echo that in the view like normal html. On

Re: Share You tube Vedios in Cakephp

2011-03-18 Thread Ryan Schmidt
On Mar 18, 2011, at 03:14, Warren wrote: If you go view a video on youtube you will see there is an option to get the embed code. This is the what you should ask your user's to input. You could have a simple regex check to make sure it seems like an embed code. Actually all you want to

Re: Remove layout from missing controller

2011-03-18 Thread Stephen
Hi Create /app/views/errors/missing_controller.ctp as a layout. You can change this to show a generic 404. Alternatively, if it's error text you want to remove, then you should get away with it by setting debug to 0 in /app/config/core.php On 17 March 2011 19:18, Giovanni

Re: Share You tube Vedios in Cakephp

2011-03-18 Thread Warren
True, but it would be easy if you strip that out in your code. I'm not sure if the average user would know what you meant if you all you asked for was the id. I could be wrong though. On 18/03/2011 10:49, Ryan Schmidt wrote: On Mar 18, 2011, at 03:14, Warren wrote: If you go view a video on

Understanding Models

2011-03-18 Thread varai
Hi I'm new to cakePHP and OOP. I'm not understanding 1)what find('all') in the following code means 2) what is the purpose of $this-set('ingredients', $ingredients); I got this from book.cakephp.org. ?php class IngredientsController extends AppController { function index() {

Re: Understanding Models

2011-03-18 Thread Ryan Schmidt
On Mar 18, 2011, at 04:24, varai wrote: I'm new to cakePHP and OOP. I'm not understanding 1)what find('all') in the following code means find('all') finds all records in this model's database table and returns them to you as an array. 2) what is the purpose of $this-set('ingredients',

Re: CakePHP, jQuery JSON

2011-03-18 Thread LipeDjow
Yes. Instead returning the value in action, you can set it to view and load a general element for JSON. Like this (using Taffarel's example): function json(){ //bring some data in database $json = $this-Test-find('all'); $this-set('json', $json);

Re: CakePHP, jQuery JSON

2011-03-18 Thread cronet
That works very well... Thank you guys ! On 18 Mrz., 12:28, LipeDjow liped...@gmail.com wrote: Yes. Instead returning the value in action, you can set it to view and load a general element for JSON. Like this (using Taffarel's example): function json(){     //bring some data in database  

Re: CakePHP, jQuery JSON

2011-03-18 Thread Miles J
I wrote some blog posts about this. http://milesj.me/blog/read/62/Doing-AJAX-Calls-In-CakePHP%3A-Part-1-_-The-Front_end On Mar 18, 7:12 am, cronet cro...@gmx.de wrote: That works very well... Thank you guys ! On 18 Mrz., 12:28, LipeDjow liped...@gmail.com wrote: Yes. Instead returning

Re: Saving Drag/Drop Sortable to DB

2011-03-18 Thread cricket
On Thu, Mar 17, 2011 at 10:42 AM, Warren smole...@gmail.com wrote: I think you have to reset the active record in your for each loop, try this : foreach ($ids as $id) {                $this-Item-id = $id;                $this-Item-saveField('sort_order', $i++);                

Re: AJAX Sortable generates different code on localhost vs server

2011-03-18 Thread cricket
On Fri, Mar 18, 2011 at 9:36 AM, Ryan ryanroyal...@gmail.com wrote: It could very well be a conflict in JS references...While working on this, I threw all sorts of different .js files and references to the code. I will look into that and see if I can remove/consolidate. What really confuses

Re: Help needed with Warning (512): SQL Error: 1066

2011-03-18 Thread cricket
On Wed, Mar 16, 2011 at 10:23 PM, samjoe sam...@gmail.com wrote: Hi, I am upgrading from CakePhp1.1 to Cakephp 1.2 When I try to load up my page, I get the following error. Warning (512): SQL Error: 1066: Not unique table/alias: 'ShoppingCart'

Re: Problem Using Ajax in Cakephp

2011-03-18 Thread cricket
On Fri, Mar 18, 2011 at 2:02 AM, Shashank cooldude17202...@gmail.com wrote: Finally i am able to use ajax. But now there is one more problem. I use 1) Ajax form 2) And made an ajax request through jquery. These are two different forms. For one form i used the ajax form. And for second one i

Re: Is there a maximum depth of reference for $this-Form-input()?

2011-03-18 Thread glk
Duh! Sometimes it doesn't pay to get up in the mornings! Thank you! On Mar 17, 9:09 pm, kdubya kenwin...@winanstech.com wrote: Looks like your forgot the echo in front of the call to $this-Form-input(ShooterEvent.$we.ShooterOption.$wo.entryfee, $optbab); -- Our newest site for the

Is there any good documentation on $form-inputs()?

2011-03-18 Thread Parris
Everytime I use it (and I really love using it), I need to look up info about it. It is no problem with datatime, text, textfields, and checkboxes; however, on off change I need a select or upload field, I need to do some work. Furthermore, if I want to change the label I need to experiment a

Re: AJAX Sortable generates different code on localhost vs server

2011-03-18 Thread Ryan
I was able to fix this by doing just as you suggested...I removed all unnecessary js references and also abandoned CakePHP's built in AjaxHelper (since it's deprecated as you pointed out) I'm not using scriptaculous, and it works like a charm on localhost AND my web server :) Thanks for your

Re: Is there any good documentation on $form-inputs()?

2011-03-18 Thread euromark
i think there is pretty much everything covered... http://book.cakephp.org/view/1390/Automagic-Form-Elements On 18 Mrz., 20:19, Parris presid...@parrisstudios.com wrote: Everytime I use it (and I really love using it), I need to look up info about it. It is no problem with datatime, text,

Re: Is there any good documentation on $form-inputs()?

2011-03-18 Thread Parris
Not input singular... inputs, plural. On Mar 18, 12:52 pm, euromark dereurom...@googlemail.com wrote: i think there is pretty much everything covered...http://book.cakephp.org/view/1390/Automagic-Form-Elements On 18 Mrz., 20:19, Parris presid...@parrisstudios.com wrote: Everytime I use it

Re: Is there any good documentation on $form-inputs()?

2011-03-18 Thread Parris
http://api13.cakephp.org/class/form-helper#method-FormHelperinputs On Mar 18, 12:52 pm, euromark dereurom...@googlemail.com wrote: i think there is pretty much everything covered...http://book.cakephp.org/view/1390/Automagic-Form-Elements On 18 Mrz., 20:19, Parris presid...@parrisstudios.com

Re: Is there any good documentation on $form-inputs()?

2011-03-18 Thread Parris
Nevermind, figured it out! Thanks! On Mar 18, 1:27 pm, Parris presid...@parrisstudios.com wrote: Not input singular... inputs, plural. On Mar 18, 12:52 pm, euromark dereurom...@googlemail.com wrote: i think there is pretty much everything

Re: CakePHP, jQuery JSON

2011-03-18 Thread Daniel
@cronet, i always make my Ajax Request as u tried. I tried like you to use .json ext and it never worked for me, so i parsed .ajax extension and all work fine.. you should try .ajax extension. On 18 mar, 10:12, cronet cro...@gmx.de wrote: That works very well... Thank you guys ! On 18 Mrz.,