Re: deprecation of useful functions

2009-02-16 Thread haj
More detailed explanation and examples in the API doc would be seriously helpful especially to newer users. I wish it had comment section like PHP doc site. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" g

Re: 3 ajax selects

2008-11-25 Thread haj
The basisc select A -> select B part is pretty much like: http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/ My question is if anyone tried to do select A both controls select B and C at a time. In my project I'm resorting to hide select C via Javascript when select

3 ajax selects

2008-11-23 Thread haj
Ok, another attempt to pull some wisdom. observeField is so great, it makes ajax 'just works.' Select A changes the content of select B on the fly beautifully, until I have to add select C. So, select A changes select B, then select B changes select C is no problem, it's no different from select

multiple fields for observeField

2008-11-17 Thread haj
Hello, I'm trying to build 3 dependant ajax select boxes with observeField. So, select A, select B, and select C. I'm almost successful to do A changes B, B changes C is almost fine with 2 observeFields for A and B. Now I need to add condition so A changes C, or A changes both B and C. I tried

Re: nested condition

2008-08-31 Thread haj
yeah, i figured out that later. Only, "NOT sth IN ('a', 'b')" was kinda unnatural to me in the mind of SQL, i was used to "sth NOT IN('a','b')" way. On Aug 30, 9:11 pm, Rafael Bandeira aka rafaelbandeira3 <[EMAIL PROTECTED]> wrote: > > Only, unfortunately, I found out cake can't yeild expressio

Re: SQL: where column NOT IN ...

2008-08-23 Thread haj
On Aug 22, 10:28 pm, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > 'not' => array('Model.field' => array( 1, 2, ...)) That's what I meant; you have to express in that way instead of somehow accustomed typical SQL way. --~--~-~--~~~---~--~~ You received this mess

Re: SQL: where column NOT IN ...

2008-08-22 Thread haj
It's just current implementation doesn't take 'NOT' keyword with the use of IN() for array, i guess, and yields the same result anyway... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to th

Re: SQL: where column NOT IN ...

2008-08-21 Thread haj
Yeah, I always wrote in SQL like: `id` NOT IN(1,2,3) but: NOT `id` IN(1,2,3) oh well. On Aug 21, 5:19 pm, teknoid <[EMAIL PROTECTED]> wrote: > NOT IN is possible, but your syntax is not correct... > > See the "NOT" array:http://book.cakephp.org/view/74/complex-find-conditions > > On Aug 21,

Re: isUnique model validation 'on create' not working?

2008-08-18 Thread haj
I know I'm not answering to the question but a field that needs to be unique generally hold the same requirement on an edit? For the real answer, it's working here. Sorry for not helping.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: redirect and header error but no white space

2008-07-17 Thread haj
t really understand > encoding at all.  So how exactly do I save a a file without the BOM? > > Does it require special software, or what?  I'm on windows. > > On Jul 14, 11:39 pm, haj <[EMAIL PROTECTED]> wrote: > > > So, I basically saved all UTF-8

Re: redirect and header error but no white space

2008-07-14 Thread haj
So, I basically saved all UTF-8 files without BOM and now things works beautifully. --~--~-~--~~~---~--~~ 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

Re: redirect and header error but no white space

2008-07-14 Thread haj
Ok, it looks like this php bug is involved. I have been ignorant about this totally.. http://bugs.php.net/bug.php?id=22108 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send

Re: redirect and header error but no white space

2008-07-14 Thread haj
Well, I might find a light in some direction... the model file was written and saved in UTF-8 (all else are UTF-8, too, tho) but when I change this to not UTF-8, it looks working... I feel this very hairly... --~--~-~--~~~---~--~~ You received this message because

Re: redirect and header error but no white space

2008-07-14 Thread haj
Darn, I can't locate what's wrong! Although I was mostly certain about not having extra space or funky control code hidden somewhere in the code, I just copied 1.2 RC2 to a new directory and set up only 3 files for the test - model/controller/ view. And they're like this: article.php (model):

Re: redirect and header error but no white space

2008-07-10 Thread haj
lucaspirola <[EMAIL PROTECTED]> wrote: > > > wow, > > i got the same problem, > > and that surprise because app > > was fine... > > > any news about this problem? > > > thks! > > > On Jul 8, 11:00 pm, haj <[EMAIL PROTECTED]> wrote

redirect and header error but no white space

2008-07-08 Thread haj
Hi, Using 1.2 and I'm doing a simple model saving page then $this- >redirect(), I get the header error telling: Warning (2): Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\eco \app\controllers\shippers_controller.php:1)

Re: CLI access hampered by session?

2007-09-16 Thread haj
nd then a main for web. > > Try to - if possible - to execute this command on your command line: > > php -m and check if session is loaded > php -i and check if the is a different ini path > > /Jippi > > -Original Message- > From: cake-php@googlegroup

CLI access hampered by session?

2007-09-16 Thread haj
Hi, I've been trying to call a controller via CLI. I basically followed this Bakery tutorial: http://bakery.cakephp.org/articles/view/calling-controller-actions-from-cron-and-the-command-line so, copied index.php and change it to take command line args. Then upon calling an action via ssh, I ge

Re: Why does this shitty Ggroups need 10 mins to post?

2007-09-15 Thread haj
I don't cal myself a heavy user of google group but I haven't encountered any difficulty so far... I'm using ONLY web interface, BTW. This is much faster than yahoo group. I think the biggest benefit of using google group is that it is part of google, so searching can take advantage of google's s

Re: Editor x CakePHP

2007-09-08 Thread haj
if it can do 2 bytes.. On Sep 8, 7:15 pm, Felix Geisendörfer <[EMAIL PROTECTED]> wrote: > [x] Textmate > -- > My Blog:http://www.thinkingphp.org > My Business:http://www.fg-webdesign.de > > Chris Hartjes wrote: > > On 9/8/07, Zoltan <[EMAIL PROTECTED]> wrote: > > >> There'

Re: regarding making upload function work in Cake php

2007-08-31 Thread haj
You made my day LOL On Aug 31, 3:48 am, Grant Cox <[EMAIL PROTECTED]> wrote: > I had that problem recently - the upload button wouldn't work if I > just clicked it, but I found that really pressing it hard would > usually do it. I took the button apart and found out the contacts > were just dirt

Re: Cakephp and PostgreSQL

2007-08-23 Thread haj
Version below 7.2 doesn't yet use information_schema thing so if you use such a bit older version you'd need to do something... On Aug 23, 4:48 am, michael lucas <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using cakephp with mysql right now, which is really simple also > due to mysql "describe" func

Re: N/A option in select (dropdown) element

2007-08-13 Thread haj
> I can also add the post-submission code to look out for the string > 'NULL' instead of an ID, This is what I'd do ;p) I'm using 1.1, tho. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

Re: Maths

2007-08-13 Thread haj
I'm having hard time imaging why the need for array layout like the latter -- implementation or algorithm where this array needed may have a rethinking. ...but, and I'm not math expert (well, this isn't a question of math anyway), you could just... 1) sort the 1st array 2) you can now take first

Re: how to implement this functionality

2007-07-23 Thread haj
I would drop MODULES table which seems meaningless to me and rename MODULES_ROLES_USERS to MODULES instead. Then in MODULES model, define Modules hasMany ROLES and USERS. When adding new module, use generatelist() to make lists for Roles and Users. On Jul 23, 11:20 am, rtanz <[EMAIL PROTECTED]>

PostgreSQL 7.3 information_schema doesn't exist

2007-07-11 Thread haj
Hi, I developed an app under MySQL and Postgres 7.4. Now it has to run on PostgreSQL 7.3 but I found that it can't work because PostgresSQL 7.3 doesn't yet implement information_schema thing... I'm not yet absolutely sure but it seems at least I have to rewrite "information_schema" query part in

Re: CakePHP php5?

2007-05-28 Thread haj
PHP4 support is one of the most important features and advantages and selling point of cakePHP. This is not for some CS student's research homework. Work in the field and realise a significance of PHP4 support. On May 28, 11:16 am, "R. Rajesh Jeba Anbiah" <[EMAIL PROTECTED]> wrote: > On May 28, 7

Re: Cake PHP - Multiple database connections

2007-05-28 Thread haj
Will this help? http://groups.google.com/group/cake-php/browse_thread/thread/58ea010f930fab6c/ On May 28, 2:06 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I am a newbie in CakePHP, just wanna know, how can I create multiple > database connections? > Hope anyone can help me, thanks in ad

Re: Biometrics Authenication

2007-05-17 Thread haj
ok, I re-read your message... check out this basic tutorial: http://manual.cakephp.org/appendix/simple_user_auth This pretty much explains how to do with session and some easy login system example. There is no authenication system in cakePHP itself. For time-out thing, I've no idea - If I had t

Re: Biometrics Authenication

2007-05-17 Thread haj
mplicated (many permission levels, sections, etc) it would help implimenting *that* part but not auth system at all. Not sure I'm least helping tho... On May 17, 3:01 pm, joe west <[EMAIL PROTECTED]> wrote: > Dear Haj, > > Thank you for your reply. I have no problem parcing the XML

Re: Biometrics Authenication

2007-05-17 Thread haj
If you create an interface to the XML in PHP, forgetting cakePHP, then integrate it in cakePHP. To keep the status learn the manual for the simlest auth sample using session. Then you may want to integrate it into ACL if the need be. CakePHP is not ready-to-go application which can do everything w

Re: SELECT LAST_INSERT_ID() and COUNT(id)

2007-04-15 Thread haj
Thanks for an educating post. It's always helpful not only for questioner but for many lurkers quietly educating themselves :-) On Apr 15, 5:34 pm, "nate" <[EMAIL PROTECTED]> wrote: > The "SELECT COUNT(*)" query is used to determine whether or not the > record exists. Based on the result of quer

Re: Passing data between models

2007-04-13 Thread haj
I would simply add "is_approved" field to userAdmin table... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group,

Re: FileHandler Question - plz help

2007-03-12 Thread haj
I'm trying to use the same component right now and having problems (I'm a noob Baker myself, BTW, so bear with me) First, I'm using supposedly version 1.1 file (got by clicking 1.1 link) in which the comment inside says 1.0 but I assume it is 1.1. I gues your code is directly copied from the pos

Re: New Cake FAQ

2007-03-10 Thread haj
Aside from FAQ, is there "please add this to the manual" list somewhere? As a new learner, I found this kind of information: http://groups.google.com/group/cake-php/browse_thread/thread/24a49fe06b1d7938/a81afff37d2400ff?lnk=gst&q=other+model&rnum=2#a81afff37d2400ff is REALLY valuable and I don't

Re: New Cake FAQ

2007-03-09 Thread haj
rtconner: I think the "blog tutorial" pretty much satisfies problem 1 and 2. Then it is a problem of the tutorial not getting big attention for the beginner... On Mar 9, 1:49 pm, "rtconner" <[EMAIL PROTECTED]> wrote: > I'm pretty much a noob. I just started on cakePHP 2 days ago. > > Biggest que

Re: New Cake FAQ

2007-03-09 Thread haj
Q: What really is vendors and how do I use it? (benefits explanation in a big picture with simple damn example) Q: What really is components? (manual explanation doesn't clearly explain me what it is and why they exists) Q: How can split big controller files (or other type files) and manage? Q: So