Re: Datasource: Array Source - Custom Query.

2011-02-05 Thread Stephen
I should probably clarify that the array source datasource allows you to emulate a table by defining records in your model. var $records = array( > array('id' => 1, 'name' => 'Test Record') > ); > -- Kind Regards Stephen @ NinjaCoderMonkey www.ninjacodermonkey.co.uk -- Our newest site f

Re: Book format change

2011-02-05 Thread cricket
On Sat, Feb 5, 2011 at 6:34 AM, Jesse wrote: > It seems the format for "the book" has changed significantly (http:// > book.cakephp.org/) There's at least one other active thread about the book changes. > The new format is not working well on Iceweasel, or may be more > generally broken. Please

Re: Forum Is A Free For All?

2011-02-05 Thread cricket
On Sat, Feb 5, 2011 at 1:08 AM, Krissy Masters wrote: > I agree Jeremy. > > New to group and things look interesting already :) > > Not about please and thank you even though it's not going to kill you > to thank someone for taking time out of their day to help you for free > nevertheless but its

Datasource: Array Source - Custom Query.

2011-02-05 Thread Stephen
Hello there I am using the datasources plugin recommended to me in a previous post, specifically, the array source datasource. This has been working perfectly for me (see link for source code) http://pastie.org/1532389 I hita brick wall however when I was just about to do a custom join query wit

Re: Any chance to get the $_SERVER variable or Configure::write Settings into a shell?

2011-02-05 Thread Bram
As of php 5.3, you can use the gethostname() function. Another option is running the hostname shell command. -- 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 re

Re: Great Job on The Cookbook

2011-02-05 Thread Sam Sherlock
pre.code is replaced with a of list of lines of code (wrapped in ol.code) this works for me desktop and phone too if your not seeing things in correct formatting then you could/should open a ticket on cakebook project at lighthouse http://cakephp.lighthouseapp.com/projects/43067-cookbook/tickets/

Re: Pagination Problem in Custom Query

2011-02-05 Thread Jeremy Burns | Class Outfit
It's 'limit' not 'limits'. Not sure if that's the only problem, but it's a starter. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 5 Feb 2011, at 07:48, Joseph Buarao wrote: > Hi Fellow Programmer, > > I getting problem with my code, I don't know what's th

Re: Pagination Problem in Custom Query

2011-02-05 Thread ibejohn818
Limit needs to be singular "limit" :-) On Feb 4, 11:48 pm, Joseph Buarao wrote: > Hi Fellow Programmer, > > I getting problem with my code, I don't know what's the reason why the > sql limit statement is not working on my paginate query. below are my > codes feel free to suggest, I really Appre

Book format change

2011-02-05 Thread Jesse
It seems the format for "the book" has changed significantly (http:// book.cakephp.org/) The new format is not working well on Iceweasel, or may be more generally broken. If we're voting, I vote for the older version of the documentation. The new format has no index that I can find. -- Our new

Pagination Problem in Custom Query

2011-02-05 Thread Joseph Buarao
Hi Fellow Programmer, I getting problem with my code, I don't know what's the reason why the sql limit statement is not working on my paginate query. below are my codes feel free to suggest, I really Appreciated it.. Thank you in advance for your support GUYS... $this->paginate = array('condition

Re: Forum Is A Free For All?

2011-02-05 Thread Krissy Masters
I agree Jeremy. New to group and things look interesting already :) Not about please and thank you even though it's not going to kill you to thank someone for taking time out of their day to help you for free nevertheless but its not the "GROUPS" job to do yours. You have to build tooltip or what

Re: confused! need urgent help.

2011-02-05 Thread dario gaston musante
give us more Data... var_dump $city ... On 4 feb, 02:37, andy_the ultimate baker wrote: > hi, > good morning, > > since i morning i am working on one index view where i want to display > the country. ithe the view i m getting sate and city with its > respective code properly, but the country is

Re: Great Job on The Cookbook

2011-02-05 Thread cwiedmann
Am I the only one who isn't seeing the examples in pre tags? For example on this page: http://book.cakephp.org/view/449/find I see nothing after " The format returned from find('first') call is of the form:". -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org C

Re: Cannot get Auth component loginAction to work

2011-02-05 Thread cricket
On Sat, Feb 5, 2011 at 11:42 AM, WhyNotSmile wrote: > Thanks for your response OldWest.  I've just changed how this is done, > but it's still not working. > > I would like the login page to appear like a regular page, so I want > users to be able to enter '/pages/membership' and be taken to the >

Re: Media View related Query

2011-02-05 Thread cricket
On Fri, Feb 4, 2011 at 2:48 PM, newguy wrote: > no its not working, i get the following error: > > Error: The requested address '/users/display/game' was not found on > this server. If debug is set to 0 and there's any kind of non-fatal error, Cake throws a 404. It's possible you have an error so

Re: Any chance to get the $_SERVER variable or Configure::write Settings into a shell?

2011-02-05 Thread ibejohn818
When running a PHP script VIA crontab the _SERVER ENV variables will not be in scope due to script not running through your http server. Perhaps you should set a variable in your PHP.ini file on your dev machine and have your Task check to see if it is on your DEV machine by doing an ini_get and

Any chance to get the $_SERVER variable or Configure::write Settings into a shell?

2011-02-05 Thread DigitalDude
Hey, for a specific cronjob I need to determine on which Server I am. Normally I do this by the bootstrap where the Server Variable is checked and configurations like Configure::write('NON_SSL_HOST', 'http://www.domain.com'). But with Configure::read(...) I cannot get these entries from within a

Re: Cannot get Auth component loginAction to work

2011-02-05 Thread WhyNotSmile
Thanks for your response OldWest. I've just changed how this is done, but it's still not working. I would like the login page to appear like a regular page, so I want users to be able to enter '/pages/membership' and be taken to the page, which looks like all the others. I've routed it like this

Re: Shell as Cronjob - Working, but giving Errors as soon as I load any model

2011-02-05 Thread DigitalDude
Hey, ok I found the solution :) The problem was that despite of havin PHP 5 running on my server, the CLI version was 4.x and used by default. I changed my cron command to the following: /usr/bin/php5 /usr/www/users/xxx/dev/cake/console/cake.php -app "/usr/ www/users/xxx/dev/app" statistics emai

Re: Shell as Cronjob - Working, but giving Errors as soon as I load any model

2011-02-05 Thread DigitalDude
Hey, I forgot to paste the code for my cron: Cron Shell: class StatisticsShell extends Shell { var $uses = array('User'); /** * Send just one email * */ function emailme() { $users = $this->User->find('all'); App::import('Core', 'Controller'); A

Shell as Cronjob - Working, but giving Errors as soon as I load any model

2011-02-05 Thread DigitalDude
Hey, I ran into a strange problem today: I created a shell as a cronjob to send statistic emails. After some trouble I managed to build a working cron which is able to send emails. This is only working on the production server by the way, local there cannot be send emails from the shell but I don'

Re: Still stuck with Media View some one please help!!!

2011-02-05 Thread Jeremy Burns | Class Outfit
You need to let your download function know which file to download. You can do this by passing the name of the file into the function: link('Game 1',array('action'=>'download', 'filename1')); ?> link('Game 2',array('action'=>'download', 'filename2')); ?> function download ($filename = '')

Re: Still stuck with Media View some one please help!!!

2011-02-05 Thread AD7six
On Feb 5, 11:16 am, newguy wrote: > I have a display page with follwoing 4 links: > > Select the game to download > > link('Game 1',array('action'=>'download')); ?> li> > link('Game 2',array('action'=>'download1')); ?> li> > link('Game 3',array('action'=>'download1')); ?> li> > Game 4 > > > On

Still stuck with Media View some one please help!!!

2011-02-05 Thread newguy
I have a display page with follwoing 4 links: Select the game to download link('Game 1',array('action'=>'download')); ?> link('Game 2',array('action'=>'download1')); ?> link('Game 3',array('action'=>'download1')); ?> Game 4 On clicking each link a different file should be downloaded. I am usin

Re: use some source code with cakephp(this is my problem in 1 year)

2011-02-05 Thread AD7six
On Feb 5, 9:32 am, hoss7 wrote: > i have this jcart (http://conceptlogic.com/jcart/)(ajaxshopping cart) > but i am new in cakephp and want use this cart in cakephp > > i have 3 questions? > > 1.how can i edit this javascript file and edit path of file?: > for example: > var JCART = (function() {

Re: using Containable plus joins for a complex query

2011-02-05 Thread netusco
I've tried with cakeDC search plugin and I didn't manage. I've searched again long time to find examples but there's no examples that show how to inner join tables to search inside with an OR LIKE condition. Any help apreciated! -- Our newest site for the community: CakePHP Video Tutorials ht

use some source code with cakephp(this is my problem in 1 year)

2011-02-05 Thread hoss7
i have this jcart (http://conceptlogic.com/jcart/)(ajax shopping cart) but i am new in cakephp and want use this cart in cakephp i have 3 questions? 1.how can i edit this javascript file and edit path of file?: for example: var JCART = (function() { // This script sends Ajax requ

Re: Great Job on The Cookbook

2011-02-05 Thread Sam Sherlock
with a bit of work http://stackoverflow.com/questions/3325180/cakephp-1-2-1-3-manual-in-chm-format the page details how to generate a pdf (I would go for the Jose G Plugin) - S On 5 February 2011 08:03, Matthew McNaughton wrote: > This might be a newb question, but is there a way to downl

Re: Great Job on The Cookbook

2011-02-05 Thread Matthew McNaughton
This might be a newb question, but is there a way to download the cakebook application? or to grab the whole thing as a pdf? On Thu, 2011-02-03 at 20:11 +, Sam Sherlock wrote: > Its refreashing and I am very much in favour of it > > Its got nice function tweaks; I like the colors > > the ma