Re: App::import broken in RC3

2008-10-14 Thread [EMAIL PROTECTED]
As I understand it you have to change a few things. When defining "file", "name" becomes simply a unique identifier. You have to define the full path the the file in "file". Also, I am not familiar with defining everything as an array either. I have always sent two parmeters to App::import(). Fir

Re: Saving HABTM data with checkboxes

2008-10-14 Thread Yodiaditya
I using checkbox and have try it... This like Posts and Tags, both of them in HABTM relations. for example, in form add post : on View post : create('Post');?> . input('Tag.Tag', array('type'=>'select', 'multiple'=>'checkbox', 'options'=>$tags, 'label'=>'Tags:')); ?> ... end('Save');?> on Pos

Re: Mysql Error when trying to execute a function in the model

2008-10-14 Thread David C. Zentgraf
So, did it fix it? It just seems like a typo somewhere. Point being, if you mistype model names and/or methods, Cake makes them up as it goes along (automagic guesswork). An inexistent method name will be attempted to be interpreted as an SQL call (e.g. - >findByUserName(), even though you d

Re: Question on the best way to proceed and stay true to MVC/CakePHP philosophy

2008-10-14 Thread Chez17
Thanks! This is amazing advice. I am such a beginner and this was fantastic. The array idea is so simple and brilliant, way easier. I will try to look into doing what you suggest. Thanks again. On Oct 14, 9:01 pm, ORCC <[EMAIL PROTECTED]> wrote: > I think first that all you have to separate the "

Re: Mysql Error when trying to execute a function in the model

2008-10-14 Thread David C. Zentgraf
On 15 Oct 2008, at 12:08, Earl0983 wrote: > $this->Users->validateUserLogin($this->data['User']) ) ^^ Model names are usually singular. Chrs, Dav --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Mysql Error when trying to execute a function in the model

2008-10-14 Thread Earl0983
Thanks, but that was actually a typo on my part it should have said: $this->User->validateUserLogin($this->data['User']) ) I was playing around with it to try to get it to work and that is when i changed it to Users. Sorry for the confusion. On Oct 14, 11:18 pm, "David C. Zentgraf" <[EMAIL PR

Re: How to Handle Special Fields on $this->query() statements - Forking from "MySQL Having Clausule "

2008-10-14 Thread David C. Zentgraf
I can't find the author anymore, but this extended MySQL driver was pasted in the bin a while back (I think). Pasting it again. http://bin.cakephp.org/view/443659159 // Extended 'resultSet' to allow alias processing // Fields should contain '((something)) AS Model__field' Hope this helps. On

Mysql Error when trying to execute a function in the model

2008-10-14 Thread Earl0983
Hello All, I have a controller(users_controller) and in the login() function i call a function called "validateUserLogin" from the User model like this: ... $user = $this->Users->validateUserLogin($this->data['User']) ) ... However, when i try to go to this page i get the following error: Warni

Re: Question on the best way to proceed and stay true to MVC/CakePHP philosophy

2008-10-14 Thread Manolet Gmail
you can do a command controller, but anyway you should write the list of commands, there is a quick example (please correct it is just a guide) class commandcontroller extends appcontroller{ function index($command = 'error'){ if(function_exist( $this->{$command}()) ){ $this->{$command}() }else{

Re: Filtering controller

2008-10-14 Thread machuidel
Hi David, Thank you. That was very helpful. I added the following route: Router::connect('/countries/:country_id/cities/*', array('controller' => 'cities')); This route points to the following function inside the "cities" controller: function index() { $this->City->rec

Re: 2 apps, one cms and the other is the normal site -> site needs to get to the cms's webroot

2008-10-14 Thread Shackadoodl
Ok, tackled it. so first i opened up my app/config/bootstrap file and put this at the bottom: define('ADMIN_DIR', ROOT . DS . 'admin'); define('SETTINGS_CACHE_FILE', TMP . 'settings' . DS . 'cache'); $modelPaths = array(ADMIN_DIR . DS . 'models' . DS); $viewPaths = array(ADMIN_DIR . DS . 'views

Re: 2 apps, one cms and the other is the normal site -> site needs to get to the cms's webroot

2008-10-14 Thread Shackadoodl
I just went to sleep, but i couldnt sleep untill i fixed the bug, so now im back. The way im solving it now is with the bootstrap file indeed. I include the admin models, views, controllers etc into the normal app remotely, and everything seems to work. The only crap that im facing now is the aut

Re: 2 apps, one cms and the other is the normal site -> site needs to get to the cms's webroot

2008-10-14 Thread hydra12
I don't have access to my dev machine right now to check, but I think you can do this in the bootstrap file. I'll see if I can find more tomorrow. On Oct 14, 6:14 pm, Shackadoodl <[EMAIL PROTECTED]> wrote: > Hi guys, > > Urgent question: > > I have a project with an extremely tight deadline, so

Re: Filtering controller

2008-10-14 Thread David C. Zentgraf
http://book.cakephp.org/view/542/Defining-Routes Your route would look something like: Router::connect('/countries/:country_id/cities/*', array('controller' => 'cities', 'action' => 'someCityAction')); The 'country_id' will be available in $this->params in the controller. On 15 Oct 2008, at

Re: Question on the best way to proceed and stay true to MVC/CakePHP philosophy

2008-10-14 Thread ORCC
I think first that all you have to separate the "parsing" of the text and the execution of the command itself via components, namely: 1) Create a "CommandParser" component that has function to "parse" a command. 2) Create a "CommandExecutive" component that has a method for implement each of the

Re: Troubles doing a complex find

2008-10-14 Thread xavierunited
I am sorry but what is the point of this post? What is the problem? On 10/14/2008, ORCC <[EMAIL PROTECTED]> wrote: > > AND logical operator is asociative, hence: > > 'OR' => Array ( >'AND' => Array ( /*put all conditions here*/) > ) > > is equivalent, and here

Re: Troubles doing a complex find

2008-10-14 Thread ORCC
AND logical operator is asociative, hence: 'OR' => Array ( 'AND' => Array ( /*put all conditions here*/) ) is equivalent, and here you don't rewrite the Array index. --~--~-~--~~~---~--~~ You received this message because you

Re: Multiple table conditions HABTM

2008-10-14 Thread xavierunited
This keeps on show up in my email. The subject. I was wondering what this was for? On 10/14/2008, Brenton B <[EMAIL PROTECTED]> wrote: > > Not sure if this is close to what you need, > http://www.bbartel.ca/blog/brenton/2008/oct/14/habtm-searching > (will touch up formatting shortly). > > On Oct

Re: Multiple table conditions HABTM

2008-10-14 Thread Brenton B
Not sure if this is close to what you need, http://www.bbartel.ca/blog/brenton/2008/oct/14/habtm-searching (will touch up formatting shortly). On Oct 14, 3:16 am, hariharan <[EMAIL PROTECTED]> wrote: > I am also stuck with the same problem . For HABTM or hasMany it doesnt > query with join. rathe

Re: HABTM goodness: searching!!

2008-10-14 Thread Brenton B
In the mean time: http://www.bbartel.ca/blog/brenton/2008/oct/14/habtm-searching Please forgive the horrible formatting, not sure what's going on there, and don't have time right now to figure it out. On Oct 14, 4:43 pm, Brenton B <[EMAIL PROTECTED]> wrote: > Stay tuned for article ... pending

Question on the best way to proceed and stay true to MVC/CakePHP philosophy

2008-10-14 Thread Chez17
So I have an ajax chat application that I am working on. If a user types a comment the starts with '/' it sends the comment to the 'command' function in my controller (as opposed to a normal 'add' function for chats). For example if the user types "/help" it will list all the possible commands. No

Re: HABTM goodness: searching!!

2008-10-14 Thread Brenton B
Stay tuned for article ... pending publication approval in the Bakery. --~--~-~--~~~---~--~~ 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 unsubscribe fro

Re: help with get product by user, function in products controller

2008-10-14 Thread Gabriel Kolbe
Hi Marcus I have done the following, but it returns ALL the products NOT just the user's is it possible to point out my error? Thanks My model (user) var $hasMany = array( 'Product' => array('className' => 'Product', 'foreignKey' => 'product_id', product controller function viewbyuser() { $prod

Filtering controller

2008-10-14 Thread machuidel
Hello, How can I map a controller to an URL like "/countries/12/cities/" such that the index of cities will be filtered by the specified country? I would like that URL to dispatch the "city" controller (not the "country" controller) with the specified country as its argument. Something like: cla

Troubles doing a complex find

2008-10-14 Thread Benni Graf
Hi there! I'm getting some data via this statement: $offtimes = $this->Offtime->find('all', array( 'conditions'=>array( 'AND'=>array( 'Offtime.therapist_id'=>$therapistid, // appears in the query 'OR'=>array( 'AND'=>array( // some conditions // don't appear in the query ),

2 apps, one cms and the other is the normal site -> site needs to get to the cms's webroot

2008-10-14 Thread Shackadoodl
Hi guys, Urgent question: I have a project with an extremely tight deadline, so rebuilding it all is out of the question. The problem is, that i have developped a cms ( which works just fine ) next to the app folder. The structure looks like this -root --app --cms -> just a renamed copy off th

Re: Troubles doing a complex find

2008-10-14 Thread the_woodsman
It looks to me like it's nothing to do with Cake - see your array: 'OR'=>array( 'AND'=>array( // some conditions // don't appear in the query ), 'AND'=>array( // some other conditions // don't appear in the query ), 'AND'=>array( // more conditions - only

Re: $validate is killing a model (and my entire app). Very strange :/

2008-10-14 Thread Topper
Kill me. $this->Session->setFlash('message', 'nonexistantlayout'); You were right. I can't believe it was just a little typo... omg. Damn copy/paste Thanks a lot man. On 14 oct, 16:26, AD7six <[EMAIL PROTECTED]> wrote: > On Oct 14, 4:36 am, Topper <[EMAIL PROTECTED]> wrote: > > > > > Cake

Re: help with get product by user, function in products controller

2008-10-14 Thread Marcus Silva
Ok, You might be able to do this: Add a relationship in your user model; example: User hasMany Product etc... Then in you controller you can do the following: $this->User->id = $id; //Passed in the function $userProducts = $this->User->Product->find('all',$params = array( 'conditions' =>

Re: help with get product by user, function in products controller

2008-10-14 Thread Gabriel Kolbe
Thanks Marcus, I will try it, you are a star. On Tue, Oct 14, 2008 at 10:33 PM, Marcus Silva <[EMAIL PROTECTED]> wrote: > > Ok, > > You might be able to do this: > > > Add a relationship in your user model; example: User hasMany Product > etc... > > Then in you controller you can do the following

help with get product by user, function in products controller

2008-10-14 Thread gabriel
Hi, i hope someone can help me here please, I need help with my controller function, I want to get products by user_id, unfortunately I have no idea where to start, help will be greatfully received. Here is my code so far... class ProductsController extends AppController { var $name = 'Prod

Re: Bug or API change in Model in RC3: 'dependent' can delete ALL records for associated model

2008-10-14 Thread [EMAIL PROTECTED]
It apears to be from 7389 "Removed almost all am() calls from core." https://trac.cakephp.org/changeset?new=branches%2F1.2.x.x%2Fcake%2Flibs%2Fmodel%2Fmodel.php%407389&old=branches%2F1.2.x.x%2Fcake%2Flibs%2Fmodel%2Fmodel.php%407384 am() puts any string into a new array. When am() was swapped for

Re: HABTM goodness: searching!!

2008-10-14 Thread [EMAIL PROTECTED]
also in this group there are great HABTM resource links in the FAQ - http://groups.google.com/group/cake-php/web/faq?hl=en side note - in PHP5 you can now access array values directly by using foreach ($array as &$item){//notice the reference here $item['somekey'] = $someValue; } this has helpe

Re: Ajax Redirect and setFlash Messages

2008-10-14 Thread Julián Lastiri
Well, i found that when i call redirect from an ajax request the redirect is forwarded to the beforeRedirect method from RequestHandler Component. This method calls requestAction which sets bare in 1 and the dispatchers does the following if (!empty($this->params['bare'])) {

Re: Bug or API change in Model in RC3: 'dependent' can delete ALL records for associated model

2008-10-14 Thread Joel Perras
$ svn blame https://svn.cakephp.org/repo/branches/1.2.x.x/cake/libs/model/model.php -J. On Oct 14, 12:29 pm, Mathew <[EMAIL PROTECTED]> wrote: > Is it possible to see all the changesets for RC3 on a specific file? > > For example; How can I browse the history of changes to the model.php > file?

Re: How to Handle Special Fields on $this->query() statements - Forking from "MySQL Having Clausule "

2008-10-14 Thread ORCC
Use Set classs for manipulating your find's results, particularly the Set::combine method maybe helpful for you.. http://book.cakephp.org/view/662/combine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" gr

Re: Multiple table conditions HABTM

2008-10-14 Thread Brenton B
What kind of SQL errors, if any, are being thrown? On Oct 14, 3:16 am, hariharan <[EMAIL PROTECTED]> wrote: > I am also stuck with the same problem . For HABTM or hasMany it doesnt > query with join. rather queries each and every table in an individual > manner, which is time consuming one. > > A

Re: $validate is killing a model (and my entire app). Very strange :/

2008-10-14 Thread AD7six
On Oct 14, 4:36 am, Topper <[EMAIL PROTECTED]> wrote: > Cake's version: 1.1.20.7692 > > Hello. What you will read is something very weird that started to > happen today in the app I am currently building. It's not my 1st cake > app and I think I am not so newbie anymore. The story is: > > I have

Re: HABTM goodness: searching!!

2008-10-14 Thread Brenton B
Yeah, that is an odd suggestion, but such is life. ;) Once I polish up my code I will be posting it, because clearly HABTM has some of ironing out to do if there are umpteen posts about it. This was a fun discussion, wasn't it? Disclaimer: I'm not knocking Cake as a whole, just some areas need s

Re: $validate is killing a model (and my entire app). Very strange :/

2008-10-14 Thread Topper
I'm still stuck with this. At least I discovered that the problem is in the validation because even if I delete the $validate lines of the model but add something like this to the controller: if (trim($this->data['Product']['nombre']) == ""){

Re: HABTM goodness: searching!!

2008-10-14 Thread AD7six
On Oct 14, 8:57 pm, Brenton B <[EMAIL PROTECTED]> wrote: > Ooh, you mean "HABTM" in the _Cook_ book??? oooh, I see what > you're saying now, that makes so much sense!! I can't believe I never > read the tutorials to start with. How foolish of me not to have > searched through everything. > >

Re: Ajax Redirect and setFlash Messages

2008-10-14 Thread Julián Lastiri
When i use redirect from an ajax request the ajax.ctp is not rendered. I try calling setFlash with growl layout but doesn't work. I have a content div in my webpage. When i submit the form i save the data, then set a Flash message and redirect to the index. The index is loaded in the content di

Re: HABTM goodness: searching!!

2008-10-14 Thread Brenton B
Ooh, you mean "HABTM" in the _Cook_ book??? oooh, I see what you're saying now, that makes so much sense!! I can't believe I never read the tutorials to start with. How foolish of me not to have searched through everything. /sarcasm Sorry ... just had to get that out. Please read beyond the

Re: Move existing app to Subversion

2008-10-14 Thread gravyface
I found a decent document online and did an import and it's working great now. Not having any luck with Eclipse Tasks (it's not recognizing my todo tags). You using tags? It shows all of the Cake project todos, just not mine in my application project. Mathew wrote: > I've been using SVN wit

Re: Move existing app to Subversion

2008-10-14 Thread Mathew
I've been using SVN with CakePHP for 2 years now, and it works great together. I run Eclipse as my IDE on Windows, and use TortoiseSVN as my desktop client. I also have the SVN plugin for Eclipse. My repository setup is simple. /svn/trunk/website_name/... /svn/branch/branch_version/website_name

Re: HABTM goodness: searching!!

2008-10-14 Thread AD7six
On Oct 14, 8:17 pm, Brenton B <[EMAIL PROTECTED]> wrote: > There is nothing in the Cookbook about the "joins" key. Once martin > mentioned it I double checked. I then searched the code itself > (dbo_source.php) and lo-and-behold, it does exist. I have yet to take > a look and experiment to see w

Re: HABTM goodness: searching!!

2008-10-14 Thread Brenton B
There is nothing in the Cookbook about the "joins" key. Once martin mentioned it I double checked. I then searched the code itself (dbo_source.php) and lo-and-behold, it does exist. I have yet to take a look and experiment to see what it does though. Sorry if I hurt your feelings by venting that

Re: Hosting A Cake App On GoDaddy!

2008-10-14 Thread James K
Get the hell off GoDaddy - some of the worst, more incompetent hosting you can buy. I remember when I spent a week debating their staff over what version of PHP was installed on a particular server. phpinfo() reported PHP 4, but they continually insisted it was PHP 5. It took a week before they f

How to Handle Special Fields on $this->query() statements - Forking from "MySQL Having Clausule "

2008-10-14 Thread Dérico Filho
Hello guys, So I asked a question about having clauses using $this->Model->find() method, and the answer was daunting, in my opinion: use in Model Class $this->query() method within a custom method... OK. I shall do it this way. One of the problems I face using $this->query() is: Whenever I ha

Re: Yet another site powered by Cakephp

2008-10-14 Thread Xavier Mathews
True i'm sorry. No i'm not being sarcastic i just gave it some thought! Xavier A. Mathews Student/Developer/Web-Master GG Client Based Tech Support Specialist Hazel Crest Illinois [EMAIL PROTECTED] "Fear of a name, only increases fear of the thing itself." On Tue, Oct 14, 2008 at 6:47 AM, v

Re: MySQL Having Clausule

2008-10-14 Thread Dérico Filho
Just as I have done... Ok, tks. On Oct 13, 5:50 pm, ORCC <[EMAIL PROTECTED]> wrote: > If you have query with complex conditions, I suggest you to use the > query() method directly > > $users = $this->User->query('YOUR SQL QUERY') --~--~-~--~~~---~--~~ You received

Re: App::import broken in RC3

2008-10-14 Thread Mathew
I'm a little confused how this got broken in RC3. I've looked at the changes from RC2 to RC3 in this url. https://trac.cakephp.org/changeset?new=trunk%2Fcake%2F1.2.x.x%2Fcake%2Flibs%2Fconfigure.php%407690&old=trunk%2Fcake%2F1.2.x.x%2Fcake%2Flibs%2Fconfigure.php%407296 I don't see anything that

Re: Please explain scaffolding changes in RC3

2008-10-14 Thread Mathew
Thanks mark! Streamlining is always good! I got my templates working, and have to admit editing 1 view for both add/edit is a lot less work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post t

Re: Please explain scaffolding changes in RC3

2008-10-14 Thread mark_story
This change was done, as Scaffolds were attempting to use too many templates in addition there was the possibility for both separate admin_action.scaffold as well as action.scaffold. This was not intended as you cannot scaffold both admin and non admin actions at the same time. As for merging th

Re: Warning (2): array_merge() [function.array-merge]: Argument #1 is not an array [CORE/cake/dispatcher.php, line 337]

2008-10-14 Thread [EMAIL PROTECTED]
Thanks for helping! I just repaced :url with :id and it works great now! --~--~-~--~~~---~--~~ 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 unsubscribe f

Re: HABTM goodness: searching!!

2008-10-14 Thread AD7six
On Oct 14, 11:38 am, Brenton B <[EMAIL PROTECTED]> wrote: > H ... will take a look, cheers. Or look inthe book habtm section (should have been pit stop 1) or search the group (should have been pit stop 2) Ironic that searching is the topic and is the thing that's missing. AD --~--~---

Re: Bug or API change in Model in RC3: 'dependent' can delete ALL records for associated model

2008-10-14 Thread Mathew
Is it possible to see all the changesets for RC3 on a specific file? For example; How can I browse the history of changes to the model.php file? I've been looking around the Cake website, I can see the SVN urls, the source code browser, but I'm looking for something like WebSVN. --~--~-~

Re: TreeBehaviour unsets primary key of data before save

2008-10-14 Thread AD7six
On Oct 14, 12:16 am, acoustic_overdrive <[EMAIL PROTECTED]> wrote: > Hi AD, > > It's the Searchable Behaviour from here: > > http://code.google.com/p/searchable-behaviour-for-cakephp/source/brow... > > You can see on line 27 it uses the id field from the data. > > If that's the official guidance

Move existing app to Subversion

2008-10-14 Thread gravyface
Probably out of scope for the list, but I'm going to start using SVN for my existing Cake 1.2 app; I've installed the subclipse plugin for Eclipse PDT on Windows. My dev server is a separate linux box that I've been working on through a mapped drive (the Apache document root is shared out). I

Re: Please explain scaffolding changes in RC3

2008-10-14 Thread Mathew
I guess I should log in, and try to update the documentation. I assume this is possible right? Can the documentation be edited by the public? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post t

App::import broken in RC3

2008-10-14 Thread Mathew
Hi, While using RC2 the following import worked. App::import(array('type'=>'Vendor','name'=>'gems.magpierss','file'=>'rss_fetch.inc')); Now under RC3 App::import is return false. This should load the file rss_fetch.inc from the \plugins\gems\vendors \magpierss folder in my gems plugin. Has th

AW: localization

2008-10-14 Thread Liebermann, Anja Carolin
Hi Claudia, Since you got it workling you might be able to help: In the cookbook (http://manual.cakephp.org/view/162/Localizing-Your-Application) it says to include the L10n like this: $uses('L10n'); class RecipesController extends AppController { //... } I am just wond

AW: xmlwriter

2008-10-14 Thread Liebermann, Anja Carolin
I would be interested as well in any help on this topic. The cookbook isn't very verbose on this: http://manual.cakephp.org/view/623/Xml In the end I would like to make an XML export out of my database, but at the moment I don't know how to get expat on my development server (WinXP) or on my p

Re: URL Confusion in Auth and Form Helper (create method) in RC3

2008-10-14 Thread gwoo
Sorry, this is not a real bug. We missed the post to the group, so thank you for following the rules. Your usage for $form->create is not correct. It should be $form->create('CoreUser', array('url' => array('controller'=>'CoreUsers', 'action'=>'login'))); --~--~-~--~~~-

Re: Please explain scaffolding changes in RC3

2008-10-14 Thread gwoo
The documentation is not correct. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PR

Re: Bug or API change in Model in RC3: 'dependent' can delete ALL records for associated model

2008-10-14 Thread gwoo
Can you find a changeset that modified the behavior? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send

How make logging for PHP Error and for MySQL in CAKEPHP

2008-10-14 Thread [EMAIL PROTECTED]
Hi I would make a logging system so that I can register all PHP error and MySQL Error . For make that I have inside app_controller.php the function beforeFilter that is : function beforeFilter() { ini_set('display_errors','0'); ini_set ('log_errors', 1);

Re: Multiple table conditions HABTM

2008-10-14 Thread hariharan
I am also stuck with the same problem . For HABTM or hasMany it doesnt query with join. rather queries each and every table in an individual manner, which is time consuming one. Another thing is cakephp does not support through association like ROR. suppose if I have two HABTM then i cant access

Email component SMTP solution: 501 5.1.3 Bad recipient address syntax

2008-10-14 Thread T M
If you find that you are receiving 5.1.x errors while trying to send SMTP emails it may be that your mail server has either the parameter strict_rfc821_envelopes = yes or adheres strictly to the ESMTP (RFC 5321) protocols which require email addresses to be enclosed in < > as in "John Doe <[EMAIL

Re: Uploading files to "private" folder

2008-10-14 Thread oceanguy
I discovered something yesterday in the cookbook which is relevant here, and awesome as well. I can't believe I didn't see it before. Media Views http://book.cakephp.org/view/489/Media-Views Enjoy On Oct 12, 2:52 pm, Orhan Toy <[EMAIL PROTECTED]> wrote: > Hi > > There a plenty of guides about

Re: email body/message does not come through

2008-10-14 Thread Gabriel Kolbe
found the answer... in the elements/email/text/thanks.cpt do this data['Contact']['content']; ?> On Tue, Oct 14, 2008 at 1:46 PM, gabriel <[EMAIL PROTECTED]> wrote: > > Hi My emails works, but the message/body/content part of the email > does not come through, the $this->Email->template = 'than

Re: Behaviors called for COUNT queries in RC3

2008-10-14 Thread Pablo Viojo
Model::afterFind is called now for a findCount, I've read the code for previous releases and it was called before. Is this a bug or a new feature?, should I change all my afterfind methods? Regards, Pablo Viojo [EMAIL PROTECTED] http://pviojo.net Are you Needish? ... http://needish.com On Sun

Re: more problems with RC3 and tests

2008-10-14 Thread mark_story
PhpNut has fixed this in the SVN head, update to that if you are still having troubles. -Mark On Oct 14, 3:34 am, "Christof Damian" <[EMAIL PROTECTED]> wrote: > I noticed that this is fixed no in the repository. Can't wait for > RC4/final now :-) > > 2008/10/7 Christof Damian <[EMAIL PROTECTED]>

Saving HABTM data with checkboxes

2008-10-14 Thread cem
Hi ; In my application one project can have more than one category . And there is a HABTM relationship between categories and Projects . How can I save more than one category for a project while creating a project how should I design the check boxes? Did anyone tried something similar before

Re: CakePHP Install Problem

2008-10-14 Thread darwin2kx
Forget this.. I'm going to symfony.. it seems to be working right out of the box. --Thread Closed-- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@google

Re: Validation using controller

2008-10-14 Thread Smelly_Eddie
bookme try reading up on the cakephp manual or api regarding validation. All your questions are answered very sufficiently there. On Oct 13, 2:17 pm, bookme <[EMAIL PROTECTED]> wrote: > Hi, > > I am using Integrate CakePHP with Kcaptcha from bakery. > > Finding problem at the time of captcha vali

Re: access session.userid in model?

2008-10-14 Thread Smelly_Eddie
Here's the short, It is possible to retrieve any value from Session, so long as you store it there first. A simple search in this mail group or on the web would have revealed this thread already discussing this topic in detail; http://groups.google.com/group/cake-php/browse_thread/thread/8911d611

email body/message does not come through

2008-10-14 Thread gabriel
Hi My emails works, but the message/body/content part of the email does not come through, the $this->Email->template = 'thanks'; does not come through...can anyone please help. set('title_for_layout', 'Contacts'); if(isset($this->data)) { if($this->Contact->create($this->data) && $this->

Re: simple AJAX

2008-10-14 Thread qwanta
Before looking at the cakephp ajax helper, and the different js frameworks (prototype, script.aculo.us, jquery etc) I suggest doing a simple AJAX example in pure PHP/javascript. There's a great tutorial here: http://ajaxphp.packtpub.com/1825_01_Final.pdf which is a chapter from this book http://a

Re: Yet another site powered by Cakephp

2008-10-14 Thread villas
> Thats nice i am not sure that it was really worth posting tho. I disagree. After reading your first comment on the thread, I found RyOnLife's contribution fascinating! :-) On Oct 13, 9:36 pm, [EMAIL PROTECTED] wrote: > Thats nice i am not sure that it was really worth posting tho. > > On 10/

Re: Solution to sharing sessions subdomains!!!

2008-10-14 Thread Marcus Silva
No, not really, but will look into it. how about some example how you manage your with memcache? As to the above problem, i really dont't like it as the loggeg in keeps logged in for a very long time (hours) by default. hope you can share. Cheers On Oct 14, 6:51 am, benko <[EMAIL PROTECTED]> w

Re: HABTM goodness: searching!!

2008-10-14 Thread Brenton B
H ... will take a look, cheers. On Oct 14, 12:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > If it is joins you are after, check out the "joins" key that you can > add to queries. It is not documented much yet (because it is rarely > needed) but it could be just what you need. > > I

Re: Solution to sharing sessions subdomains!!!

2008-10-14 Thread Jon Bennett
Hi mike, > Have you considered using a central database to handle your sessions? > If doing this causes a performance problem consider storing the > sessions into a distributed cache like memcached. do you have any links to show this in action? We have an app that's about to go live which uses w

Bug or API change in Model in RC3: 'dependent' can delete ALL records for associated model

2008-10-14 Thread [EMAIL PROTECTED]
Hi, I had to ask here before posting an unnecessary ticket. In 1.2 RC3, Model::del() will delete all records in the table of an associated model under these circumstances: • dependent is set to true • conditions is a string (as in the docs) and not an array as is the new preferred way to write co

Re: more problems with RC3 and tests

2008-10-14 Thread Christof Damian
I noticed that this is fixed no in the repository. Can't wait for RC4/final now :-) 2008/10/7 Christof Damian <[EMAIL PROTECTED]>: > I found the changeset which introduced the problem anyway: > > https://trac.cakephp.org/changeset/7596#file6 > >if (is_a($model, $class) ||

Re: HABTM goodness: searching!!

2008-10-14 Thread [EMAIL PROTECTED]
If it is joins you are after, check out the "joins" key that you can add to queries. It is not documented much yet (because it is rarely needed) but it could be just what you need. I have had to set up a special type of search query and ended up creating my own function to handle my not so commo