Re: Youtube API

2011-01-02 Thread huoxito
I decided to give a try on youtube api today but I did things differently I put all zend files in libs directory, added this line in my core.php file ... set_include_path(get_include_path() . PATH_SEPARATOR . APP.'libs'); ... and wherever I want to work with the api I just do a normal require f

Re: find() conditions using hasMany relationship

2011-01-02 Thread Amit Badkas
Hi, Please have a look at 'Sub-queries' section of http://book.cakephp.org/view/1030/Complex-Find-Conditions (at the end of the page), hope it helps. Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Fri, Dec 31, 2010 at 8:15 PM, aughrt wrote: > Hello! > > I would like to k

Re: export to excle

2011-01-02 Thread Ryan Schmidt
On Jan 3, 2011, at 01:04, rakeshyadav rakeshyadav wrote: >i am trying to export my report related data to excle in .xls format > >i want exact result and view in both msexcel and openoffice What have you researched on your own so far? What have you tried? Check out the new Cake

export to excle

2011-01-02 Thread rakeshyadav rakeshyadav
hi, happy new year to all i am trying to export my report related data to excle in .xls format i want exact result and view in both msexcel and openoffice please suggest a way to achive this Thanks rakesh A. Check out the new CakePHP Questions site http://cakeqs.org and

Re: problem with debug level 0

2011-01-02 Thread Ahsan Khan
Thanks for your reply but i didn't do that, now i solved my problem using Configure::write('debug',0) in my Controller. I just put it into my app_controller on the server and it's just working fine. On Jan 2, 8:53 pm, roundrightfarm wrote: > did you write a url as a string somewhere which include

Re: Js (Jquery) Helper Append Instead of Update

2011-01-02 Thread Eric Anderson
Alright, figured it out. Made some adjustments to the jquery_engine.php file. Essentially, all that you need to do is find the request function, and replace using "html" for content placement with whatever is stored in $options['position']. Then, you can specify 'position' in your options array f

Re: ajax

2011-01-02 Thread roundrightfarm
here is my controller function that is called by ajax function select($id, $product_id){ $this->OptionalShareUser->read('current_product_id', $id); $this->OptionalShareUser->set('current_product_id', $product_id); $this->OptionalShareUser->save();

Re: problem with debug level 0

2011-01-02 Thread roundrightfarm
did you write a url as a string somewhere which included localhost (ie. 'http://localhost/conroller/action') so that it would work fine on your development computer but not on the live server? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related qu

Re: problem with debug level 0

2011-01-02 Thread Ahsan Khan
As you say I checked my Cake's log which shows nothing as well as web server's log and i found after viewing last days error log: [Sun Jan 02 00:11:55 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!? [Sun Jan 02 00:30:23 2011] [warn] RSA server certifica

Js (Jquery) Helper Append Instead of Update

2011-01-02 Thread Eric Anderson
Hi, Does anyone know how to position the insertion of a returned HTML from an AJAX request using the Js helper (JQuery) ? I know there is an 'update' option, however there are times when I need append, replace, etc instead of just updating a selected element. I took a look at the jquery_engine.ph

Re: Multi HABTM association

2011-01-02 Thread cricket
On Sun, Jan 2, 2011 at 8:00 PM, sixthpoint wrote: > Interesting way to setup this. > > How did you setup the database for the comments field? It must of > included the model and foreign_key name i take it? Did you include > this in all your db tables? and if so why? Yes, as I said, "Just include

Re: Multi HABTM association

2011-01-02 Thread sixthpoint
Interesting way to setup this. How did you setup the database for the comments field? It must of included the model and foreign_key name i take it? Did you include this in all your db tables? and if so why? On Jan 2, 1:12 pm, cricket wrote: > On Sun, Jan 2, 2011 at 12:46 PM, sixthpoint wrote: >

Re: Multi HABTM association

2011-01-02 Thread cricket
On Sun, Jan 2, 2011 at 12:46 PM, sixthpoint wrote: > I am having troubles setting up this association for my application. I > am trying to do it in the least complicated way possible, but I am > rather new to cake. > > I have 2 models (Documents, Courses) which each need to have comments. > I do n

Re: problem with debug level 0

2011-01-02 Thread cricket
On Sun, Jan 2, 2011 at 1:04 AM, Ahsan Khan wrote: > I have made an application with CakePHP 1.3.61.3.6 which runs fine in > debug levels 1 and 2, but in debug level 0 a blank screen appears on > server but on my localhost it works fine. > > What should I check? The logs would be a good start. Bot

Re: Auth component

2011-01-02 Thread gilsilas
I posted my problem after I didn't succeed to solve it alone :) anyway, you may have any solution for my first question ? tnx On Jan 2, 6:43 pm, AD7six wrote: > On Jan 2, 4:14 pm, gilsilas wrote: > > > because when I remove saveField both queries don't run. > > ic. so why don't you look at the

Multi HABTM association

2011-01-02 Thread sixthpoint
I am having troubles setting up this association for my application. I am trying to do it in the least complicated way possible, but I am rather new to cake. I have 2 models (Documents, Courses) which each need to have comments. I do no want to use multiple tables I would rather store all the comm

Re: post form data from URL

2011-01-02 Thread Steve Mallett
I've gone back to this. On Thu, Dec 30, 2010 at 10:15 PM, john lyles wrote: > Let me see if I get this: You have a url such as > http://localhost/controller/action?url=http://www.example.com/page.html > And all you need to do is populate the url into the form? > If I understand the situation corr

Using git to clone I'm so confused.. Help needed here... thanks.

2011-01-02 Thread John Maxim
Hi people, git clone git://github.com/CakeDC/tags.git plugins/tags Hi if choose to download instead of doing the tedious work above, I'm windows user, is it equally accomplished? Regards, Maxim Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP relate

Re: Auth component

2011-01-02 Thread AD7six
On Jan 2, 4:14 pm, gilsilas wrote: > because when I remove saveField both queries don't run. ic. so why don't you look at the code and or debug and find out :) AD Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received th

Re: Auth component

2011-01-02 Thread gilsilas
because when I remove saveField both queries don't run. On Jan 2, 12:13 pm, AD7six wrote: > On Jan 2, 8:13 am, gilsilas wrote: > > > > > > > > > > > Hey, > > I have two questions > > 1. when I ran $this->Auth->login($data) I noticed that the resulted > > query select user and group but by $this-

Dynamically bind HABTM association - Cakebook example not working

2011-01-02 Thread Moin
Hi, I am trying to dynamically bind HABTM association using hasOne. I followed the Recipes example with hasOne at following cakebook URL http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM Here is my code: $this->Post->bindModel(array( 'hasOne' => array( 'PostsTag', 'Fi

problem with debug level 0

2011-01-02 Thread Ahsan Khan
I have made an application with CakePHP 1.3.61.3.6 which runs fine in debug levels 1 and 2, but in debug level 0 a blank screen appears on server but on my localhost it works fine. What should I check? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP

Re: Acl and bindNode

2011-01-02 Thread dtemes
using bindNode does not have any effect on the aros table for me neither (cake 1.3.6) and user registers are still created, but i have realized that it has an impact in some of the acl lookup queries: With bindNode: SELECT `Aro`.`id`, `Aro`.`parent_id`, `Aro`.`model`, `Aro`.`foreign_key`, `Aro`.`

Re: post form data from URL

2011-01-02 Thread AD7six
On Dec 31 2010, 9:00 pm, Steve Mallett wrote: > Done.  Same results so it must not have been getting in the way.   It most certainly will have. > A > discovery though: > > Withhttp://localhost/links/add/http://www.youtube.com/user/EpicMealTime#p... > echo var_dump($this->params); results: > ar

Re: Auth component

2011-01-02 Thread AD7six
On Jan 2, 8:13 am, gilsilas wrote: > Hey, > I have two questions > 1. when I ran $this->Auth->login($data) I noticed that the resulted > query select user and group but by $this->Auth->user() I can see only > the user, why is that ? > here is the query: > SELECT `User`.`id`, `User`.`email`, `Use

Re: post form data from URL

2011-01-02 Thread Ryan Schmidt
On Jan 2, 2011, at 03:41, Ryan Schmidt wrote: >> http://localhost/links/add/https%253A%252F%252Fhootsuite.com%252Flogin%253Fredirect%253Ddashboard > > That surprises me; I would have expected that to work. Actually, no I wouldn't; that looks double-encoded. I would have expected just single-en

Re: post form data from URL

2011-01-02 Thread Ryan Schmidt
On Dec 31, 2010, at 14:00, Steve Mallett wrote: > however, a properly encoded URL breaks both firefox & chrome > resulting in a 404 > http://localhost/links/add/https%253A%252F%252Fhootsuite.com%252Flogin%253Fredirect%253Ddashboard That surprises me; I would have expected that to work. What is

Plug-in to manage permission installation problem..

2011-01-02 Thread John Maxim
http://www.alaxos.net/blaxos/pages/view/7 I followed the link above, and found that I can't access the admin/acl page with an Auth generated "not Authorised to access this location" I tried fixing after reading the comments by bypassing the first time access using: Configure :: write('acl.group.

Re: Downloadable files without mod_rewrite

2011-01-02 Thread Ryan Schmidt
On Dec 30, 2010, at 13:21, cricket wrote: > On Thu, Dec 30, 2010 at 10:28 AM, WhyNotSmile wrote: >> I'm trying to create a link on my page to download a file. However, >> the server won't let me use mod_rewrite, and I'm having problems >> getting the download to work. I googled the problem, and m

Re: How to get work PHPRtfLite in cake ???

2011-01-02 Thread Ryan Schmidt
On Jan 1, 2011, at 08:17, Abu Zaid wrote: > Does anyone know how to get PHPRtfLite > (http://sourceforge.net/projects/phprtf/) to work in cake 1.3.x ?? > I've copy the library in Vendor and i've use App::import but can't get > worked... :( > even with the hello world example, i can't get it wor

Re: Multiplayer game in cakephp

2011-01-02 Thread Ryan Schmidt
On Dec 29, 2010, at 22:04, cakefan wrote: > I am thinking of hiring a developer to build a multiplayer game platform on > to my existing website but have some conerns and wondered if anyone else may > have done it before or know if its possible at all? > > I would like to build multiplayer gam

Re: a small issue

2011-01-02 Thread Ryan Schmidt
Consider using a more-meaningful subject line for your messages in the future. "A small issue" could describe almost anything; be more specific to encourage those skimming subject lines to open your message and help you. Check out the new CakePHP Questions site http://cakeqs.org and help other