Struggling with CRON and the shell script within the console.

2007-07-24 Thread inVINCable
Hey guys, I apologize if this has been answered before, but I could not find it anywhere, and have been attempting to get this thing to work for the past 3 hours. I am using WAMP 5 and have tried to set up the console the way gwoo did in the screencast, followed directions exactly, but when I tri

Re: Mambo to use CakePHP for V5

2007-07-24 Thread Richard O. Sentino
Hello everyone ! This is definitely exciting, kudos to CakePHP team and the rest of the gang... welcome! Chat Auld and the Mambo team Best regards, Richard O. Sentino InfoWeapons Inc. Cebu, Philippines http://www.infoweapons.com Blog : http://sentino.wordpress.com On Jul 25, 8:24 am, cauld <

Re: how to implement this functionality

2007-07-24 Thread Grant Cox
Hmm, I posted this a few days ago but it looks like it didn't come through. >From what I can see you have a three way association, not three separate two way associations. A Module isn't associated with a Role per se, rather it is associated with a particular User in that Role. And ditto with th

Re: fetching data with recursive

2007-07-24 Thread Grant Cox
1. Is it that hard to try it before asking here? 2. Yes On Jul 25, 9:51 am, rtanz <[EMAIL PROTECTED]> wrote: > hi i have a number of users and a number of modules. Now within > assigned to each module are a number of roles (stored in their own > table) and each of these roles has a user assign

Re: Mambo to use CakePHP for V5

2007-07-24 Thread Langdon Stevenson
Hi Mariano > Nice way to receive him, by requesting staff ;) My intention wasn't to be demanding (and I appologise to Chad if that is the way that it sounded). I didn't want to make another welcome post, but to try to contribute a bit of enthusiasm as a Cake developer and show my support for

Re: email trigger function

2007-07-24 Thread Chris Hartjes
On 7/24/07, rtanz <[EMAIL PROTECTED]> wrote: > > hi i have a table containing a number of fields. Is there a way to > make the system check that when some particular fields are no longer > empty an email is sent to a user? thanks > I don't think CakePHP will do it for you right out of the box, bu

RE: Mambo to use CakePHP for V5

2007-07-24 Thread Mariano Iglesias
Nice way to receive him, by requesting staff ;) -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.

Re: Mambo to use CakePHP for V5

2007-07-24 Thread Langdon Stevenson
Hi Chad I will be very interested to see Mambo 5. As a CakePHP developer it would make my life much easier to have a powerful Cake based CMS available. Integration with other CMS products has proven tiresome (to point that I just don't bother). Mambo based on Cake is likely to open up a lot

Re: Mambo to use CakePHP for V5

2007-07-24 Thread phirschybar
Welcome Mambo team and community!!! On Jul 24, 8:24 pm, cauld <[EMAIL PROTECTED]> wrote: > Hello everyone, > > My name is Chad Auld. I am the Project Leader for Mambo. Seemed > appropriate to stop by this thread and introduce myself. We are > excited about the decision and looking forward to f

Re: Mambo to use CakePHP for V5

2007-07-24 Thread cauld
Hello everyone, My name is Chad Auld. I am the Project Leader for Mambo. Seemed appropriate to stop by this thread and introduce myself. We are excited about the decision and looking forward to forming a very close relationship with the CakePHP development team and community. Anyway, we are h

Re: Mambo to use CakePHP for V5

2007-07-24 Thread Christopher E. Franklin, Sr.
Nice to meet you :) On Jul 24, 5:24 pm, cauld <[EMAIL PROTECTED]> wrote: > Hello everyone, > > My name is Chad Auld. I am the Project Leader for Mambo. Seemed > appropriate to stop by this thread and introduce myself. We are > excited about the decision and looking forward to forming a very cl

View this page "Cake Apps/Sites In The Wild"

2007-07-24 Thread phirschybar
added Mambo CMS 5.0 [under development] Click on http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message because you are sub

Re: i18n translation in db tables - how to do this like Symfony?

2007-07-24 Thread oleonav
On Jul 24, 12:09 am, Gorka <[EMAIL PROTECTED]> wrote: > Actually, $form->input('TransName.eng.content') renders something like > this for me: > > id="TransNameContent" /> > > This is obviously not very useful when editing multiple languages at > the same time (mostly in the admin area for definin

fetching data with recursive

2007-07-24 Thread rtanz
hi i have a number of users and a number of modules. Now within assigned to each module are a number of roles (stored in their own table) and each of these roles has a user assigned to it. Thus in order to be able to display a module details page which shows the roles and the users assigned to the

email trigger function

2007-07-24 Thread rtanz
hi i have a table containing a number of fields. Is there a way to make the system check that when some particular fields are no longer empty an email is sent to a user? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: Problem with Fresh Install CakePhp 1.1.16.5421

2007-07-24 Thread Nibirus
For the benefit for other folks that might encounter this... I have a web dev suite package with apache 2.2 and php5.2.0-dev I upgraded the php5.2.0dev to php5.2.1 and it worked. regards, Harris On Jul 24, 11:15 am, Nibirus <[EMAIL PROTECTED]> wrote: > Hi, > > BTW, I went ahead and installed ca

Re: email trigger function

2007-07-24 Thread phirschybar
you could use afterSave() in your model. Have it check for the fields and run another function which emails the user. Sorry it's a bit vague but so is your question. :) On Jul 24, 6:56 pm, rtanz <[EMAIL PROTECTED]> wrote: > hi i have a table containing a number of fields. Is there a way to > make

email trigger function

2007-07-24 Thread rtanz
hi i have a table containing a number of fields. Is there a way to make the system check that when some particular fields are no longer empty an email is sent to a user? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

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

2007-07-24 Thread MonkeyGirl
> function select($fieldName, $options = array(), $selected = null, > $attributes = array(), $showEmpty = '') > > Isn't that clear? :D Maybe I don't know PHP well enough, but it's not very clear to me... Would setting $showEmpty to a non-false value do the same thing as setting one of the $option

Re: On-request table retrieving w/ one model and controller???

2007-07-24 Thread Langdon Stevenson
Hi Mike Have a look at the Model chapter of the manual http://manual.cakephp.org/chapter/models Look for the section on the model variable $useTable. You should be able to set the value of userTable before you perform a query. Something like this: $this->[ModelName]->useTable = [theDa

On-request table retrieving w/ one model and controller???

2007-07-24 Thread madmike210
I am new to cake and its capabilites, but from what I have seen, it looks like it could be the perfect solution. I would like to create one model and one control to handle a bunch of tables. These tables are created once a day with the date as thier name. I would like to take the users input fo

escaping current date problems

2007-07-24 Thread vidals
How can I update a record to include the current date? I tried: $this->Order->id = $orderID; $this->Order->save(array('done_date' => 'CURDATE()') However, CakePHP adds single quotes to CURDATE like so: UPDATE `orders` SET `phase1_complete` = 'CURDATE()' WHERE `order_id` = '6' The above S

Re: Workflow engine for cake

2007-07-24 Thread gremlin
All of the workflow issues are DOMAIN SPECIFIC PROBLEMS and should * NOT * be in the framework. If you need a workflow solution you could use CakePHP to * MAKE * one that did exactly what you needed - or even better make a general workflow solution and release it as a Behavior / Component / App_Co

Join fails across multiple databases with HABTM

2007-07-24 Thread safl
Hey, The case is: I've got 2 models(Customer and Server), one is using $useDbConfig = 'crm' the other is using $useDbConfig = 'monitoring'. Each DB configuration specifies connection to it's own database (crm and monitoring). I've got HABTM between these to models, and I need HABTM, but when que

Re: Cake 1.2alpha path question

2007-07-24 Thread matlin
No, I am not using mod_rewrite. And, yes, it works. Although somethings must be wrong in the *env* function. On 24 Juli, 21:06, "chanh.ong" <[EMAIL PROTECTED]> wrote: > The only time the BASE_URL is define is the mod_rewrite is not being > use so are you not using mod_rewrite and with your fix i

Re: Cake 1.2alpha path question

2007-07-24 Thread chanh.ong
The only time the BASE_URL is define is the mod_rewrite is not being use so are you not using mod_rewrite and with your fix it still work? Thanks On Jul 24, 11:54 am, matlin <[EMAIL PROTECTED]> wrote: > I have had some similar problems with a fresh vanilla 1.2, the url's > aren't rewritten prope

Re: Cake 1.2alpha path question

2007-07-24 Thread matlin
I have had some similar problems with a fresh vanilla 1.2, the url's aren't rewritten properly when I use the BASE_URL approach. What I just noticed is that env("SCRIPT_NAME") DOES NOT equal $_SERVER['SCRIPT_NAME'] for some reason. I altered the define to use $_SERVER['SCRIPT_NAME'] and now it wor

Re: Problem with Fresh Install CakePhp 1.1.16.5421

2007-07-24 Thread Nibirus
Hi, BTW, I went ahead and installed cakephp 1.2.0.5427alpha and run into this problem. Looks like something unique to my system, any one else encounter this before? Notice (8): Undefined variable: html [CORE\cake\libs\view\templates \layouts\default.ctp, line 35] Fatal error: Call to a member fu

Re: help: constant variables in the layout

2007-07-24 Thread eiji
hi chris, thanks for this one. but i am well aware of this, or half of this, that i absolutely search, dig every corner before i start asking. I searched it all in the groups and i searched google of the error it returned and what i only got are sites that is also suffering from the same error as

Security and requirePost

2007-07-24 Thread Cacho
Hi I've been following tutorials to process my data and saw the recommendation to use formTag. But after to have some problems and search here and there I noticed that it was deprecated. I said "ok", but I noticed that requirePost is supposed to work with some hidden data generated by formtag s

How to correctly escape input parametrs for using in options of model->findAll() method?

2007-07-24 Thread Pento
For example, I have simle table list (table + paging + filter ) class ArchiveController extends AppController { public $uses = array('News'); public $helpers= array('Javascript', 'Time', 'Pagination'); public $components = array ('Pagination'); function index()

Problem with save method

2007-07-24 Thread Steveston
Please first take a look at the piece of code below: if (isset($this->data['availableInstructors'])) foreach ($this->data['availableInstructors'] as $key=> $value) { $this->UserCourse->data['user_id']=$key; $this->UserCourse->data['course_id']=$t

HBTM models and deleteQuery

2007-07-24 Thread Ismaelj
I have a complex model that works OK using the default Cake HTBM relationship, but now I have to enhance some areas of my application that means I have to use a custom delete for a specific HTBM relation, so I specify in the model: var $hasAndBelongsToMany = array( 'Category' => array('className'

Re: Problem with Fresh Install CakePhp 1.1.16.5421

2007-07-24 Thread Nibirus
HI Sam D, I did read that somewhere here, so I did double check my .htaccess files, all of which are included in the right directories. All 5 of them are accounted for. I also made sure I turned on mod_rewrite on my apache httpd.conf LoadModule lines. regards, Harris On Jul 24, 9:37 am, "Samue

Re: Problem with Fresh Install CakePhp 1.1.16.5421

2007-07-24 Thread Samuel DeVore
my guess is that when you uploaded the files to the server (or un compressed them) that your ftp program or decompressor did not upload or create the .htaccess files because they are 'invisible' Sam D On 7/24/07, Nibirus <[EMAIL PROTECTED]> wrote: > > > Hi Ad, > > I tried the following. > > http

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

2007-07-24 Thread citrus
/** * Returns a formatted SELECT element. * * @param mixed $showEmpty If true, the empty select option is shown. If a string, * that string is displayed as the empty element. */ function select($fieldName, $options = array(), $selected = null,

Re: Problem with Fresh Install CakePhp 1.1.16.5421

2007-07-24 Thread Nibirus
Hi Ad, I tried the following. http://localhost/cake_1.1.16.5421/app/webroot/ http://localhost/cake_1.1.16.5421/app/ http://localhost/cake_1.1.16.5421/ with and without the trailing "/". best regards, Harris On Jul 24, 2:16 am, AD7six <[EMAIL PROTECTED]> wrote: > On Jul 24, 10:36 am, Nibirus

N/A option in select (dropdown) element

2007-07-24 Thread MonkeyGirl
Hi. Sorry for all these questions. If it's any consolation, I'm putting together a brief guide for making forms in CakePHP with the form helper, which is one of the reasons I want to make sure I'm doing things the right way. Anyway, my question is about how I should add the option of "none of t

Re: Using a Join Table to Join a Tree with many branches?

2007-07-24 Thread [EMAIL PROTECTED]
Gr... why is this double posting? Sorry about that. On Jul 24, 10:10 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Ack.. Sorry I meant to put a link to my old thread. So thanks for > doing that for me. > > I guess I'm just having a lot of trouble wrapping my head around this > problem th

Re: Using a Join Table to Join a Tree with many branches?

2007-07-24 Thread [EMAIL PROTECTED]
Ack.. Sorry I meant to put a link to my old thread. So thanks for doing that for me. I guess I'm just having a lot of trouble wrapping my head around this problem that I'm trying to solve and I'm looking for advice on what I have so far. Is it the right direction? What would you all do to get

View this page "Cake Apps/Sites In The Wild"

2007-07-24 Thread [EMAIL PROTECTED]
Another new Cake site hits the wild. www.theladder.bm - Bermuda's Job. This site is created in Cake 1.1, but all our future projects will be 1.2 Thanks, Ian Click on http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild - or copy & paste it into your browser's address bar if

Did I break my Router or find a bug?

2007-07-24 Thread webmosher
Hello, Been playing with integrating the 1.2 Auth & Acl components into an ongoing project. I've encountered an error in the component when it calls the private _normalizeUrl method when running in DEBUG modes. This does not appear to popup when in a DEBUG of "0". However, it does dump the entire

Re: how to implement this functionality

2007-07-24 Thread rtanz
any help on this? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTE

Re: Having trouble with RequestHandler...

2007-07-24 Thread AD7six
On Jul 24, 3:34 pm, Steven Chan <[EMAIL PROTECTED]> wrote: > Yes js is enabled because the Ajax call actually works and data is > returned. However, not only is the action template rendered but the > layout is also rendered. Are you assuming that the header is missing, or you are 100% sure that

RE: IRC log mirroring to GG?

2007-07-24 Thread Christian \"Jippi\" Winther
Why should the IRC logs be spammed onto GG ? I don't see the point in that :) --- Christian "Jippi" Winther http://docs.cakephp.nu (Unofficial CakePHP API) http://logs.cakephp.nu (Unofficial CakePHP IRC log) -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] O

Re: moving from localhost: paths wrong

2007-07-24 Thread virtualj(at)gmail.com
Hi AD, I tried DEBUG on 1, 2 and 3 but no error is generated. The contact form has no tables associated with it in the database but does have a model for validation. The login form uses the othAuth plugin but has a model and table associated with it. The login happens in users/login in the users

Re: i18N issue

2007-07-24 Thread adevaratu
For your problem you could define some associations (somewhere in config for ex) like : $languages_assoc = array( 'es-es' => 'es-es', 'spa' => 'es-es', etc ); and the modify the code of site\libs\l10n.php, in function __autoLanguage() p

Re: Having trouble with RequestHandler...

2007-07-24 Thread Steven Chan
Also, I'm using prototype 1.5.1.1, the latest version which I got directly from the prototype website. On Jul 24, 6:56 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Jul 24, 12:17 pm, Steven Chan <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > Using Cake1.2alpha on XAMPP. For some reason, when I do an

Re: Having trouble with RequestHandler...

2007-07-24 Thread Steven Chan
Yes js is enabled because the Ajax call actually works and data is returned. However, not only is the action template rendered but the layout is also rendered. Steven On Jul 24, 6:56 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Jul 24, 12:17 pm, Steven Chan <[EMAIL PROTECTED]> wrote: > > > Hi all,

Re: i18N issue

2007-07-24 Thread Gorka
I'm also trying to figure this out. There are a couple of threads on the subject anyway, though I believe nobody has yet managed to do this. Not in a clean way. There's also another issue I've found working with i18n, apart from the known fact that find operations won't return anything if there a

Re: I am looking for experienced CakePHP developer

2007-07-24 Thread Gonzalo Servat
On 7/24/07, onechaos <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > here I am posting a link to the brief so it describes project better. > http://noidea.eu/doc/scms_brief.pdf > > Let me know if anyone interested in taking this job. Hi, Try: http://withcake.com Regards, Gonzalo --~--~---

Re: Flash message error

2007-07-24 Thread MattC
YES. I had this exact same problem. Drove me nuts. $session- >flash() outputs the message directly and returns true/false. In your view you probably have something like echo $this->flash(), so the message is getting written and then the return gets written. On Jul 24, 3:04 am, lgarcia <[EMA

Re: IRC log mirroring to GG?

2007-07-24 Thread R. Rajesh Jeba Anbiah
On Jul 24, 5:07 pm, "Christian \"Jippi\" Winther" <[EMAIL PROTECTED]> wrote: > See my signature :) > http://logs.cakephp.nu(Unofficial CakePHP IRC log) Yes, this what I'm using now. While it's very usable with hotlinking feature, I still believe that GG will be little more faster than i

Re: I am looking for experienced CakePHP developer

2007-07-24 Thread onechaos
Hi everyone, here I am posting a link to the brief so it describes project better. http://noidea.eu/doc/scms_brief.pdf Let me know if anyone interested in taking this job. Thanks, Radek --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: help: constant variables in the layout

2007-07-24 Thread Chris Hartjes
On 7/24/07, eiji <[EMAIL PROTECTED]> wrote: > > bump? > This link should help. http://slash7.com/pages -- Chris Hartjes Senior Developer Cake Development Corporation My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.

Re: how to implement this functionality

2007-07-24 Thread rtanz
hi sorry bout the two threads this one just developed into an overlapping one unfortunately, i am not trying to implement access control at this point. What i want is a system where you can view a module and see the associated users and their roles within that module. Same goes if i view the user

Re: Accessing Components from Models

2007-07-24 Thread francky06l
Component should be used with Controller. Now in your model you could use $this->controller->component to access the component of the controller. On Jul 24, 6:33 am, airrob <[EMAIL PROTECTED]> wrote: > I don't think this message went through last time. If it did, I > apologize for the duplicate.

Re: Display database host in view.

2007-07-24 Thread Joshua Benner
Maybe define app/app_controller.php, in which you define beforeFilter, which will $this->set('database', )  ?  Just be sure to call parent::beforeFilter() if you override on children controllers. kbowerma wrote: I would like to display the database, and database host that I am connect to

RE: IRC log mirroring to GG?

2007-07-24 Thread Christian \"Jippi\" Winther
See my signature :) --- Christian "Jippi" Winther http://docs.cakephp.nu (Unofficial CakePHP API) http://logs.cakephp.nu (Unofficial CakePHP IRC log) -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of R. Rajesh Jeba Anbiah Sent: 24. juli 2007 13:31

Re: db table design

2007-07-24 Thread rtanz
anyone can tell me for sure whether i should be using a separate id field for join tables or whether the primary key should be a compound key made up of the foreign keys? i.e. posts_tags PK id post_id tag_id OR posts_tags PK post_id + tag_id if both are possible i would like to kn

Re: Using URL Encoding to Pass Strings

2007-07-24 Thread [EMAIL PROTECTED]
Thanks for the reply...I figured that's what was the case. Also, I think I came up with a little different solution...turns out that $_SERVER['REQUEST_URI'] is not decoded as well...but I guess six of one... On Jul 24, 7:56 am, AD7six <[EMAIL PROTECTED]> wrote: > On Jul 24, 1:39 pm, "[EMAIL PROT

Re: Using URL Encoding to Pass Strings

2007-07-24 Thread AD7six
On Jul 24, 1:39 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > As much as I wish that would be the case here (I should've metioned I > tried that)...the %3F is stripped by the time I have access to it in > the controller. A print_r on $_GET reveals the entire URL without %3F > on it. > > A

IRC log mirroring to GG?

2007-07-24 Thread R. Rajesh Jeba Anbiah
I think, it will be nice if the IRC logs are mirrored to some google groups (say, cake-php-irc). This way, one could easily search and find some useful discussions. -- Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/ --~--~-~--~~~---~--~~ Y

Re: Using URL Encoding to Pass Strings

2007-07-24 Thread [EMAIL PROTECTED]
As much as I wish that would be the case here (I should've metioned I tried that)...the %3F is stripped by the time I have access to it in the controller. A print_r on $_GET reveals the entire URL without %3F on it. Any ideas? On Jul 24, 7:32 am, Grant Cox <[EMAIL PROTECTED]> wrote: > rawurldeco

Re: Having trouble with RequestHandler...

2007-07-24 Thread Felix Geisendörfer
> >IIRC, some firewalls will strip extra http headers. I heard you mention this before, but can you provide more information then this generic kind of FUD ; )? -- Felix -- My Blog: http://www.thinkingphp.org My Business: http://www.fg-webdesign.de R. Rajesh Jeba Anbi

Re: Having trouble with RequestHandler...

2007-07-24 Thread R. Rajesh Jeba Anbiah
On Jul 24, 3:17 pm, Steven Chan <[EMAIL PROTECTED]> wrote: > Using Cake1.2alpha on XAMPP. For some reason, when I do an Ajax Call > using the Ajax helper (form that automatically update a div) the > HTTP_X_REQUESTED_WITH header is not set and therefore the > RequestHandler::isAjax() method always

Re: Mambo to use CakePHP for V5

2007-07-24 Thread R. Rajesh Jeba Anbiah
On Jul 24, 9:48 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > Exciting news -http://www.source.mambo-foundation.org/content/view/126/1/ > > Will there be a corresponding announcement from CSF? > > What does it mean for future of CakePHP? Things I hope that mambo team will push: 1.

i18N issue

2007-07-24 Thread adevaratu
For the site I`m currently working on I am using cake 1.2`s i18N functionality. I was wondering how can be done saving different translations at same time. For example : admin can add a category, wich title is defined: var $actsAs = array('Translate' => array('title')); When admin is adding new ca

Using URL Encoding to Pass Strings

2007-07-24 Thread [EMAIL PROTECTED]
I'm developing an application where a parameter to a certain function is actually a URL-safe string created using rawurlencode(). I'm using this string to find matching data from the DB. However, is it not possible to retrieve question marks '?' that have been encoded using rawurlencode() and show

Re: Having trouble with RequestHandler...

2007-07-24 Thread AD7six
On Jul 24, 12:17 pm, Steven Chan <[EMAIL PROTECTED]> wrote: > Hi all, > > Using Cake1.2alpha on XAMPP. For some reason, when I do an Ajax Call > using the Ajax helper (form that automatically update a div) the > HTTP_X_REQUESTED_WITH header is not set and therefore the > RequestHandler::isAjax()

Re: how to implement this functionality

2007-07-24 Thread AD7six
On Jul 24, 12:04 pm, rtanz <[EMAIL PROTECTED]> wrote: > i looked at access control too but i think i can do it with tables, at > least thats what id like to do as access control seems more complex So you are trying to implement access control or something else? What tangible meaning does "modu

Re: Arguments in behavior methods (cake 1.2)

2007-07-24 Thread grigri
The automagic param pushing is only done when delegated from a model. For example you if have a model and behavior: class Coffee extends AppModel { var $actsAs = array('Stimulant'); } class StimulantBehavior extends ModelBehavior { function wakeUp(&$model) { // Do something } } If yo

Having trouble with RequestHandler...

2007-07-24 Thread Steven Chan
Hi all, Using Cake1.2alpha on XAMPP. For some reason, when I do an Ajax Call using the Ajax helper (form that automatically update a div) the HTTP_X_REQUESTED_WITH header is not set and therefore the RequestHandler::isAjax() method always returns false. Is there a problem with my set up? I looked

Re: how to implement this functionality

2007-07-24 Thread rtanz
i looked at access control too but i think i can do it with tables, at least thats what id like to do as access control seems more complex On Jul 24, 12:51 am, Geoff Ford <[EMAIL PROTECTED]> wrote: > >From what I see, you want to connect users to roles and then roles to > > modules and it appears

Arguments in behavior methods (cake 1.2)

2007-07-24 Thread Fran Iglesias
Hi, I've been playing with behaviors for a project and I want to ask if behavior methods "automagically" get the model as the first argument. This seems clear with callback methods, but I found this happening in public methods as well. So, I guess you can invoke a method form a behavior wi

Re: Problem with Fresh Install CakePhp 1.1.16.5421

2007-07-24 Thread AD7six
On Jul 24, 10:36 am, Nibirus <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to learn CakePhp and installed the newest version indicated > above, and have spend about 5 hours looking through online docs, this > message area, and also added debugging code to figure out why I'm > getting this erro

Re: moving from localhost: paths wrong

2007-07-24 Thread AD7six
On Jul 24, 11:03 am, "virtualj(at)gmail.com" <[EMAIL PROTECTED]> wrote: > I just removed the forms created with the form helper and put the form > in in html and this works. the page shows and i can use the form. > Verry strange. > But the problem with the 'hard coded' form is that it doesn't sh

Re: moving from localhost: paths wrong

2007-07-24 Thread virtualj(at)gmail.com
I just removed the forms created with the form helper and put the form in in html and this works. the page shows and i can use the form. Verry strange. But the problem with the 'hard coded' form is that it doesn't show the validation errors. On Jul 24, 10:44 am, "virtualj(at)gmail.com" <[EMAIL PR

Problem with Fresh Install CakePhp 1.1.16.5421

2007-07-24 Thread Nibirus
Hi, I'm trying to learn CakePhp and installed the newest version indicated above, and have spend about 5 hours looking through online docs, this message area, and also added debugging code to figure out why I'm getting this error for my new install. Might be something simple, from reading the doc

Re: moving from localhost: paths wrong

2007-07-24 Thread virtualj(at)gmail.com
I thought so to so I cleared the whole tmp dir but the login form still gives an empty page, allso my contact form gives an empty page. Both pages have a form in the view so I removed the form and then the page showed. For some reason having something like input('Contact.name');?> on the page resu

Re: Using a Join Table to Join a Tree with many branches?

2007-07-24 Thread AD7six
On Jul 24, 6:09 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi thanks for the reply. > > An example would be that one row of the database can have many parents > and many children. why the new thread for the same topic as before...? $Karma--; At the very least include a link to it* to

Flash message error

2007-07-24 Thread lgarcia
I have this message function to show flash messages and it returns me a "1" after any message is showed... anyone knows why? function _message($message, $url = false, $value = false, $error = false) { if ($value) { $message = sprintf($mess

Re: Session vars in the Model

2007-07-24 Thread lgarcia
But if i have not any association between categories and projects, how i'll achieve my goal? On 24 jul, 00:43, Grant Cox <[EMAIL PROTECTED]> wrote: > You should temporarily bind the association with the required > project_id, in the controller action. There are a large number of > ways of bindin