Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-12 Thread Jeremy Burns | Class Outfit
I guess it all depends if you want an answer or not. Sent from my iPhone On 13 Feb 2011, at 05:54, ibejohn818 wrote: > I say just ask your questions. > > There are three possible events that can occur. > > 1) Somebody attempts to answer > 2) Nobody attempts to answer > 3) Somebody unloads a h

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-12 Thread ibejohn818
I say just ask your questions. There are three possible events that can occur. 1) Somebody attempts to answer 2) Nobody attempts to answer 3) Somebody unloads a holier-than-thou rant that you are not following the 10 commandments of the internet set in place when Al Gore parted the seas and inven

Re: 1.3 JS Engine

2011-02-12 Thread Ryan Snowden
I write my own jQuery basically because it allows consistency in my apps (all js is in the one place), and also there is great documentation on functions in one place. If I am debugging I dont know if it is the helper or the syntax im using. In saying this, I do use it for more trivial things like

Re: How to capture the operator from URL post

2011-02-12 Thread ibejohn818
Cakephp will not parse the operators for you. You will have to use a regular expression to read them from the REQUEST_URI. An easier solution would be to concat a string representation of your operators IE: $var_greaterThan ("_greaterThan" = ">") etc. On Feb 12, 8:41 pm, Matthew McNaughton wrot

Re: How to capture the operator from URL post

2011-02-12 Thread Matthew McNaughton
I would like a parameter for the full url post received by cake. On 2/12/11, euromark wrote: > i think i dont follow > what do you mean with "full url request"? > > On 12 Feb., 20:10, Matthew McNaughton wrote: >> Thanks for the quick responses. In respect to the above, so that I can >> encode i

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-12 Thread websurfshop
It's an insecurity complex for freshman programmers. Kind of like going out on our first date and realizing your out with a mature naked cake baker. It's enough to make anyone stutter and repeat themselves . ;-/ > People will help, you so saying your new over and over is just irritating. >

Re: How to capture the operator from URL post

2011-02-12 Thread euromark
i think i dont follow what do you mean with "full url request"? On 12 Feb., 20:10, Matthew McNaughton wrote: > Thanks for the quick responses. In respect to the above, so that I can > encode it and decode in the way I prefer how would I get the full URL > request from cake? > > On Sat, Feb 12, 20

Numeric vs integer vs digit validation

2011-02-12 Thread Ryan Schmidt
The "numeric" validator is simply a shim to call PHP's is_numeric() function, but some might be surprised at the range of values that PHP considers to be numeric: 3.14 1.0e-1 -5 Some developers might have assumed that "numeric" meant non-negative integers only -- particularly considering that

Re: Inclusive range validation

2011-02-12 Thread euromark
i agree with you - that it would be more intuitive maybe you should repost the ticket then a param "exclusive"=>true (default false, of course) could still make the current behavior available :) if needed at all On 13 Feb., 02:04, Ryan Schmidt wrote: > I was surprised to discover that the "range

Inclusive range validation

2011-02-12 Thread Ryan Schmidt
I was surprised to discover that the "range" validator is exclusive, not inclusive. I've now built my own "rangeInclusive" validator in my app_model.php to use everywhere. Someone filed a bug about this three years ago, and there is a patch, and it is not closed... https://trac.cakephp.org/ti

Re: XML DataSource or solution

2011-02-12 Thread Carlos Paparoni
Thank you for the quick reply, I appreciate it. I've tried what you suggested, and it is working, up to a point. Here is the code I'm using: DataSource - app/plugins/array_datasource/models/datasources/ array_source.php (I've only included the relevant modifications instead of the entire file, unl

1.3 JS Engine

2011-02-12 Thread Krissy Masters
I am curious about the JS engine in 1.3. Reading thru the cookbook and wondering if this is for me? I currently just write my own JS snips for my jQuery functions click this do that drag it drop it so on. I only use jQuery no other libraries so I am wondering what is the benefit for me to change o

Re: Problems with Auth->userScope

2011-02-12 Thread zero00
yes i tried that but the problem still persists. I think it may have something wrong in the code i wrote but i cant seem to find it -- 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 othe

Re: Cannot modify header information

2011-02-12 Thread Miloš Vučinić
Which version of cake are you using ? If 1.2.* go to controller.php and delete empty line at the end as well as any other space or hidden characters you might have. Even if you are using some other version check for this. At 99.999 times, this error means you have some empty line or hidden

Re: How to capture the operator from URL post

2011-02-12 Thread Matthew McNaughton
Thanks for the quick responses. In respect to the above, so that I can encode it and decode in the way I prefer how would I get the full URL request from cake? On Sat, Feb 12, 2011 at 10:57 AM, euromark wrote: > > and < usually not allowed in > and they especially are no operaters in this context

Re: cakephp on plesk

2011-02-12 Thread cricket
On Thu, Feb 10, 2011 at 5:10 PM, alexpes wrote: > I would install cakephp on plesk with this folders structure: > > /httpdocs/ <- documentroot > /httpdocs/app > /httpdocs/cake > > I know it's not canonical structure but, for security reason, is it > sufficient put this .htaccess... > > Order Allow

Re: XML DataSource or solution

2011-02-12 Thread Ryan Schmidt
On Feb 11, 2011, at 20:34, Carlos Paparoni wrote: > To make an update on the situation: > > I made the code work with the Array DataSource up to a point. The > problem right now is that it uses a $records array which is assigned > statically in the Model, like this: > class State extends AppMode

Re: How to inherit / extend a content class

2011-02-12 Thread Ryan Schmidt
On Feb 12, 2011, at 00:43, ShadowCross wrote: > Note that the individual tables books, messages, posts DOES NOT have a > content_id field, but the contents table would have the fields 'model' > and 'model_id'. This results in a content record that can only be ONE > of either book, message, or po

Re: DESC sort not working on returned results

2011-02-12 Thread sanjib dhar
return $this->PlanDetail->find('all', array('order' => array('PlanDetail.name DESC'), 'limit' => 10)); On Sat, Feb 12, 2011 at 11:55 PM, cricket wrote: > On Sat, Feb 12, 2011 at 10:54 AM, OldWest wrote: > > I do not know why my DESC sort query is not working?? According to the > > manual and

Re: DESC sort not working on returned results

2011-02-12 Thread cricket
On Sat, Feb 12, 2011 at 10:54 AM, OldWest wrote: > I do not know why my DESC sort query is not working?? According to the > manual and other sources, it should be working fine: > > function pd_list() { > >     return $this->PlanDetail->find('all', array('order' => 'PlanDetail.name > DESC', 'limit'

RE: Joins across tables?

2011-02-12 Thread Krissy Masters
Thanks man. The only reason I want separate is exactly as you mentioned. Eventually I will need to load balance the current single server across different servers to distribute everything. But that can be done later under development. Was trying to plan ahead. Thanks for the info. Will save this

Re: HOW TO DO THIS.

2011-02-12 Thread Jeremy Burns | Class Outfit
No-one will give out their Skype id as that opens the channels for being a help desk. Fine if you want to pay, but is bound to offend when you are declined. This forum is a really, really good place to get help. Stick with it - you will get everything you need from here. Jeremy Burns Class Outf

Re: HOW TO DO THIS.

2011-02-12 Thread sanjib dhar
Ok,thanks for your great advice.I will try to maintain all the jeremy's step.If possible can u give me u'r skype id.I had opened a company with kolkata,India clients.I want to work.But the problem is nobody help me out locally because I am senior most.I often search in internet and get help.I previ

Cannot modify header information

2011-02-12 Thread tubiz
PLease presently i am testing my cakephp application online but when i tried to visit my admin page at testserver.tunsicash.co.cc/admin i am getting this error Cannot modify header information - headers already sent by (output started at /home/tunsicas/public_html/testserver/app/ models/behaviors/i

Re: How to capture the operator from URL post

2011-02-12 Thread euromark
> and < usually not allowed in and they especially are no operaters in this context the only operators in an url are in php in general / and & and = and ? and in cake / and : if you want to use "greater" or "less" you will need to encode it some way to decode it afterwards. operation:lt or operati

DESC sort not working on returned results

2011-02-12 Thread OldWest
I do not know why my DESC sort query is not working?? According to the manual and other sources, it should be working fine: function pd_list() { return $this->PlanDetail->find('all', array('order' => 'PlanDetail.name DESC', 'limit' => 10)); } All data is being displayed as expected in m

Re: HOW TO DO THIS.

2011-02-12 Thread euromark
when i go through the list of new messages in the group and i read "HOW TO DO THIS" or "PLEASE HELP" it just freaks me out every other person on this group manages to summarize the problem in a short sentence this way you as a reader know right away what the problem is about you are not getting mo

Re: How to capture the operator from URL post

2011-02-12 Thread Tilen Majerle
if i understand you good, then you want to get some values from GET method? like domain.com/controller/action?param1=value1¶m2=value2 then you have this in $this->params['url']['param1'] and $this->params['url']['param2'] then, if you have like domain.com/controller/action/value1/value2 then when

How to capture the operator from URL post

2011-02-12 Thread Matthew McNaughton
Greetings all, Thanks for a great framework(though you probably all hear that all the time). I am building a RESTful api using cakephp. So I need to get the posted values from URL. cakephp deals with this particularly well for posted values such as: host.com/crops/view/$var1=xxx&$var2=xxx Bu

Re: SWF Uploader ... or any Good One...?

2011-02-12 Thread Jon Bennett
On 12 February 2011 13:22, parallel32 wrote: > Chris, > > I had a similar problem with my swfuploader component which was losing > the session on IE only.  Turns out it was a simple change in the > cakephp core configuration that fixed it. > > Change Configure::write('Session.checkAgent', true);  

Re: SWF Uploader ... or any Good One...?

2011-02-12 Thread parallel32
Chris, I had a similar problem with my swfuploader component which was losing the session on IE only. Turns out it was a simple change in the cakephp core configuration that fixed it. Change Configure::write('Session.checkAgent', true); in core.php to false. Hope this helps, Mike On Feb 8, 10

Re: Joins across tables?

2011-02-12 Thread ShadowCross
If you are creating your subqueries as described on http://book.cakephp.org/view/1030/Complex-Find-Conditions (sub-section titled "Sub-queries"), you could try replacing 'table' => $dbo->fullTableName($this->User), with 'table' => $dbo->config['database'] . '.' . $dbo- >fullTableName($this->

RE: Joins across tables?

2011-02-12 Thread Krissy Masters
Yeah the only thing I found is an article here http://www.foldifoldi.com/?p=436 I need the full database table name SELECT * FROM database_name.table like the example but that example from the link does not work with my setup with subqueries and manual joins I make myself. In the SQL print out