vcalendar appended to multipart email as text/calendar MIME type

2014-02-24 Thread Brian Love
text/calendar. Any suggestions would be helpful! Thanks, Brian -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this

Cake 2.0 - How to Specify a Primary Key

2013-01-08 Thread Brian QIS
Hello, We're coming from a custom CMS, and our MySQL database naming convention is a bit different. So, if I have a table called "users" with a primary key of "users_id", how do I set my model to look for "users.users_id" as the record ID rather than "users.id?" Thanks! -- Like Us on FaceBoo

Re: Problem with controller redirect

2012-08-09 Thread Brian Allemana
Jeremy, That was it! Thank you! The Cake Book says that beforeSave() does not take any arguments, otherwise I would have tried this. I shoulda checked the API to be sure. Cheers, -- Brian Allemana web developer + consultant 773.320.4127 b...@brianallemana.com web: http://www.brianallemana.com

Re: self join and HABTM relation

2012-04-06 Thread Brian Bowler
What have you tried so far? On Fri, Apr 6, 2012 at 5:10 AM, Reza Talamkhani wrote: > Hi > I need to create a 'posts' table in db and show related posts to users... > need to self join and HABTM (hasAndBelongsToMany) relation... > please help me > > -- > Our newest site for the community: CakePHP

Re: redirecting problem

2012-04-02 Thread Brian Bowler
Litto some more information would help, is it redirecting to a blank page instead of redirecting? On Mon, Apr 2, 2012 at 9:15 AM, Mike Griffin wrote: > On Fri, Mar 30, 2012 at 09:42, LITTO CHACKO wrote: > > hai guys, i have to met with other problem.. the problem is that whwn > > i tried to sub

Re: Database configuration problem

2012-03-27 Thread Brian Bowler
That usually means that you didn't close out one of your brackets or something. Can you post the code (sensitive details omitted)? On Tue, Mar 27, 2012 at 9:27 AM, AKinwunmi Damilare wrote: > Yes it helped. Thanks. But its giving an error saying expecting > T_function in one of the lines. Pls, h

Re: How do I redirect?

2012-03-19 Thread Brian Bowler
Please do I have the exact same problem and would like to know if you get this fixed. On Mon, Mar 19, 2012 at 10:56 AM, glevine wrote: > Right, so in the example I was mainly just wanting to show that I was > reaching those points in the code. Theoretically, if I remove the "print > 'before redi

Re: $this->redirect not working

2012-03-11 Thread Brian Bowler
ith the output of a debug on it. @Romel and @Vijay, same thing happens it just comes up completely blank. On Sun, Mar 11, 2012 at 12:01 AM, romel javier gomez herrera < bmxquiksilver7...@gmail.com> wrote: > try with this $this->redirect($this->referer()); > > > El 10 de

$this->redirect not working

2012-03-10 Thread Brian Bowler
So I have this function where the user can add the weight to materials and save them. However after the updateAll, $this->redirect doesn't work at all and the result shows up with a blank page with nothing in the source. In an ideal world I would have it redirect to a different page but at a minimu

Record-level permissions with ACL in CakePHP 2.0

2012-01-25 Thread Brian
I'm working on the authorization system for my web app. I began researching various ACL guides back during 1.3, but never found one that really clicked in my head. I've read the Cookbook tutorials, the Permissionable behavior, SuperAuth on github, etc trying to find a record-level auth solution tha

Problem with validation

2011-07-11 Thread Brian Lin
I'm experiencing my controller validating data even though the model has set a $validate array. I have two different controllers and models, A and B. So in controllerA, i have a $uses = modelB. Also I have a viewA function that adds data into tableB using $this- >ModelB->saveAll($this->data) In m

Re: nocache breaks when used in loop

2011-04-17 Thread Brian Sweeney
On Sat, Apr 16, 2011 at 1:47 PM, cricket wrote: > On Fri, Apr 15, 2011 at 3:37 PM, Brian Sweeney > wrote: > > On Fri, Apr 15, 2011 at 2:47 PM, cricket wrote: > >> > >> What the heck is this?! > >> echo ""; ?> > > > > Oh, and

Re: nocache breaks when used in loop

2011-04-15 Thread Brian Sweeney
On Fri, Apr 15, 2011 at 2:47 PM, cricket wrote: > What the heck is this?! > echo ""; ?> > Oh, and I just wanted to say that I was pretty sure this little snippet would get that kind of reaction. Nice to know that you care enough to point out the insanity of it all ;) -- Our newest site for the

Re: nocache breaks when used in loop

2011-04-15 Thread Brian Sweeney
On Fri, Apr 15, 2011 at 2:47 PM, cricket wrote: > > But yes, this is how I'm passing variables to > > the view. Except in some of the non-cached code where I'm using > > requestAction() to get data I need. > > But requestAction() is a horrible performance hog so hopefully you'll > get all of thi

Re: nocache breaks when used in loop

2011-04-15 Thread Brian Sweeney
On Thu, Apr 14, 2011 at 2:49 PM, cricket wrote: > On Thu, Apr 14, 2011 at 11:00 AM, Brian Sweeney > wrote: > > I think even though some of the content is state-sensitive the page could > > still benefit from view caching. It does present some difficulties, > though, >

Re: nocache breaks when used in loop

2011-04-14 Thread Brian Sweeney
On Thu, Apr 14, 2011 at 2:11 AM, cricket wrote: > On Wed, Apr 13, 2011 at 11:37 PM, Brian Sweeney > wrote: > > > I have a view that's fairly computationally expensive (lots of > table-formatted data). > > To speed up the page load I'm trying to use view ca

Re: nocache breaks when used in loop

2011-04-13 Thread Brian Sweeney
Thanks for pondering the issue a bit more. If there's any details you think might help let me know. I didn't want to bog down the original post with too much detail, hoping somebody might have run into the problem in the past. But I don't mind detailing what's going on and how I'm trying to work ar

Re: nocache breaks when used in loop

2011-04-13 Thread Brian Sweeney
Thanks for the thoughts. This is what I was planning to try tomorrow. There's a lot going on in the controller so I figure caching that much would be better than nothing. I'd still like to get the view cached at some point, but with all the problems I've been having I'm not sure I'm going to get th

Re: different pagination across views (not controllers)

2011-01-11 Thread Brian Mckphee
I found my own answer. To anyone who needs this see the following. In your function in the controller that you would like to have the custom order on do this $this->paginate = array('order' => 'yourModel.yourColumn DESC'); $data = $this->paginate('YourModel', array('yourColumn' => 'condition'));

Re: Clueless...Help please

2011-01-11 Thread Brian Mckphee
I agree with the last few posters. You may need to tell your client to look at their code. Are you merely a hosting provider or are you a coder? On Jan 10, 8:13 am, javier0051 wrote: > Hi > > I am a completely newbie to cake php. A new customer has a site > developed with cake php and we recent

Re: CakePHP 1.3 setup on Ubuntu

2010-08-25 Thread The Brian Martin
What does your .htaccess look like? On Aug 24, 12:22 pm, david wrote: > First, let me say I have CakePHP up and running perfectly on windows > with a wampserver instance running, so I'm familiar with the process. > I know how to get mod_rewrite setup, and set the permissions > appropriately, e

HtmlHelper within Helper causes sql_dump.ctp to fail.

2010-05-30 Thread Brian Jones
of the core CakePHP 1.3 library files, and pages where we aren't using MyHelper render the sql_dump.ctp output just fine. Has anyone experienced this before? I plan on spending a little time to troubleshoot this more, but am checking with the list with the hope that it's something s

Duplicate Queries 1.2.6 - 1.2.7

2010-05-04 Thread Brian Watson
I have an original app built on 1.2.6 and simply edited my webroot/index.php to pull the site using the 1.2.7 lib on the server. Everything works fine except I noticed extra queries. Exactly 4 additional queries happen on 1.2.7 and they are the exact same queries to the session table. I did a

Re: Version 1.3 Routing & Vanity URLs

2010-05-04 Thread Brian Watson
Did anyone find a solution to this as I have the exact same problem. Thanks - Original Message - From: "CharlesTMunger" To: "CakePHP" Sent: Monday, May 03, 2010 2:01 AM Subject: Version 1.3 Routing & Vanity URLs In my 1.2x app I have vanity URLs from the base. I.e., a user named "

Re: custom controller actions linking 2 datasets by datafield?

2010-03-27 Thread brian
If the Order & Customer associations re good then you can grab the latter's data through the former model, eg. $this->Order->Customer->whatever() You can make the route however you want. It could also just be "/orders/add/:customer_id", for example. Router::connect( '/orders/new/:customer

Pagination question

2010-03-11 Thread Brian Allemana
'product_size_category' => 'psc-[a-zA-Z0-9\{\}_-]+', 'product_size' => 'ps-[a-zA-Z0-9\{\}_-]+', 'color' => 'cl-[a-zA-Z0-9\{\}_-]+', 'gender' => &#x

Initial loading of Cake problem: Trying to get property of non-object in ...

2010-03-09 Thread Brian
pache2.2\htdocs \first_app\cake\libs\cache\file.php on line 252 Thoughts? Brian Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. T

Re: I can't list my files from the uploads folder (when app is online). Everything works local.

2010-02-23 Thread brian
Check your error logs and make sure debug is set to 2 (the action that fetches the view probably sets it to 0 if it's an ajax call). On Tue, Feb 23, 2010 at 1:17 PM, mattyh88 wrote: > I work with TinyMCE in my CakeApp. > When I press the image icon, it shows the image window. > I've added a brows

Re: looking for developer (Were based in Cleveland, Ohio)

2010-01-28 Thread brian
So you're looking to hire a coder for free? Programmers are small businesses, too. On Thu, Jan 28, 2010 at 8:24 AM, Andrew wrote: > There are a few things we would do to make it worth while for the > developer. You would be part of something that has the ability to do > real good by organizing sp

Re: Problem to select right value on $form->input (select) with text index

2009-10-14 Thread brian
Cake only handles integer primary keys, AFAIK. On Wed, Oct 14, 2009 at 4:41 PM, Leonardo "Hackin" Freire wrote: > Hi dudes, > I'm getting a little problem when populate a select through the > $form->input. > In my controller "Contato", where i save the client_id field, I populate an > variable c

Re: Selecting empty rows?

2009-10-14 Thread brian
On Wed, Oct 14, 2009 at 5:00 PM, BeroFX wrote: > > How can I select records where a column doesn't contain any value, > like ''. > > Doing it like this $this->Document->find('all', array > ('conditions'=>array('Document.title'=>''))); produces a WHERE > `Document`.`title` = NULL query and that's

Re: How to switch between databases dynamically by session value

2009-10-14 Thread brian
Are you certain that the settings for 'testcases' are correct? Did you by any chance name the database 'testcases' instead of 'db_testcases'? On Wed, Oct 14, 2009 at 6:24 AM, Christian wrote: > > Hello, > > I read several threads about this but not found a final "cake-like" > solution. A lot of

Re: model relations: Problems to run local functions over Model relations

2009-10-14 Thread brian
How can i test the name > definition before i create model and controller. > > > On 14 Okt., 10:15, "Dr. Loboto" wrote: >> "AppModel Object" - cake did not find your model file and created >> AppModel as Miles and Brian both already said. >> >

Re: Debug Error?

2009-10-14 Thread brian
On Tue, Oct 13, 2009 at 4:16 PM, Dave Maharaj :: WidePixels.com wrote: > > I ran a find and replace for all debug(); > > Still same thing. I meant the Debugger class, not debug(). Like Debugger::log(), Debugger::dump(), etc. If Configure's debug setting is 0 you'll get a fatal error if you have

Re: Controller and Session in View

2009-10-14 Thread brian
On Wed, Oct 14, 2009 at 4:00 AM, Prof. No Time wrote: > > Thanks Brian, > > I am using the AUTH component. I want to access Auth.user() in the > view and I think the only way I can do that is if I can get the > controller in the view so I can say this->controller->Auth-&g

Re: Obama: Afghanistan decision in 'coming weeks'

2009-10-14 Thread brian
On Tue, Oct 13, 2009 at 8:46 PM, Larry E. Masters aka PhpNut wrote: > Do not send spam like this to the CakePHP google group, I will block your > account if it happens again. > -- > /** > * @author Larry E. Masters > * @var string $userName > * @param string $realName > * @returns string aka PhpN

Re: Debug Error?

2009-10-13 Thread brian
What do you have in the layout file immediately after that? Also, do you have any code using Debugger class anywhere? That'll kill your app if debug is set to 0. On Tue, Oct 13, 2009 at 1:45 PM, Dave Maharaj :: WidePixels.com wrote: > > I have one page that is blank when i turn debug to 0. Ever

Re: app/webroot path missing using default mod_rewrite setup

2009-10-13 Thread brian
On Tue, Oct 13, 2009 at 2:17 PM, Josh K wrote: > > Thanks.  That works. Would WWW_ROOT still work properly if I ever made > any changes to the .htaccess setup, moved my webroot directory, or > changed servers?  I think all I would need to do in that case is to > set the correct path in app/webroo

Re: Controller and Session in View

2009-10-13 Thread brian
On Tue, Oct 13, 2009 at 12:37 PM, Prof. No Time wrote: > > Hello People, thanks so much for your attempts at my bake problem. > Obviously no one was close at all to the answer but I figured out > myself how to bake and I have baked successfully quite a number of > times now. I am new to this cake

Re: app/webroot path missing using default mod_rewrite setup

2009-10-13 Thread brian
On Tue, Oct 13, 2009 at 11:23 AM, Josh K wrote: > > When I enabled mod_write in CakePHP, I set my .htaccess files > according to > http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess. > Accessing the URLs work fine with this default setup. > > However, $webroot now  = /, which me

Re: What locale code to use when using Translate behavior?

2009-10-13 Thread brian
On Tue, Oct 13, 2009 at 11:19 AM, Rawna wrote: > > I was wondering if CakePHP got it stored somewhere. Maybe from the > L10n class? Yes, look at the source for the L10n class. Use get(). --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: model relations: Problems to run local functions over Model relations

2009-10-13 Thread brian
If Cake doesn't find the model, it uses AppModel. The latter does not have a method getLocalTest(). On Tue, Oct 13, 2009 at 5:34 AM, Obelix wrote: > > Thanks for your Answer. > > I will test it in the evening. > > So that does not happen i generate the plugin(cms), model and > controller with 'C

Re: Update now save

2009-10-13 Thread brian
On Tue, Oct 13, 2009 at 4:25 AM, Henrik Gemal wrote: > > I have a table with: > name, hour, status > > hour is the hour of the time. > > So I have to check each hour that name is ok and set the status. > So eventually I get a table like: > > test, 1, 1 > test, 2, 0 > test, 3, 0 > > t

Re: lost stylesheet depending on $html->link format ??

2009-10-13 Thread brian
And what do you see when you view source? On Tue, Oct 13, 2009 at 2:14 AM, Jas wrote: > > My style or layout, disappears on some pages, I've narrowed it down to > the way $html->link is setup and have fixed some pages, but not the > ones that have a parameter, for example /users/edit/1 it still

Re: retrieve online status of a user while logged in

2009-10-12 Thread brian
On Mon, Oct 12, 2009 at 5:11 PM, DigitalDude wrote: > > Hey, > > > hmm ok this would be a workaround I think. I was more like using a > field called is_online, which is 0 when not logged in, when logging in > it would be set to 1 and then a javascript function could refresh this > field every let

Re: Can you recommend quality (virtual) server hosting?

2009-10-12 Thread brian
johncompanies.com On Mon, Oct 12, 2009 at 4:34 AM, Martin Westin wrote: > > Hi, at my day-job we have plans to expand to the US. For that purpose > I wanted to find a reliable hosting provider. Any good/bad experiences > you can share would be welcome. > > I am looking for: > • Server hosting /

Re: Defining URL

2009-10-12 Thread brian
Create a route for it: Router::connect( '/manage/experiences/', array('controller' => 'experiences', 'action' => 'index', 'manage' =>true) ); $html->link('Experience', array('controller' => 'experiences', 'action' => 'index', 'manage' =>true)); On Mon, Oct 12, 2009 at 3:05 PM,

Re: TextHelper Problem

2009-10-12 Thread brian
On Mon, Oct 12, 2009 at 3:24 PM, euromark (munich) wrote: > > well the helper IS NOT available in the controller right away > > you need to add > > App::import(Helper,Text); > $this->Text = new TextHelper(); > > now you can work with it... brian probably didnt re

Re: TextHelper Problem

2009-10-12 Thread brian
Use $this->Text->whatever() while in the controller and $text->whatever() in the view. But note that autoLinkUrls() returns the string. You'll need to modify the value in $this->data. Either that, or use the method in your view. On Mon, Oct 12, 2009 at 9:52 AM, Lukar Dennig wrote: > > Hi everyo

Re: retrieve online status of a user while logged in

2009-10-12 Thread brian
Add a last_login field to users table. In Users:login() do something like: $this->User->id = $this->Auth->user('id'); $this->User->saveField('last_login', date('Y-m-d H:i:s')); Then you can fetch the id, name, etc. of all users whose last_login is within some period of time. There's no bullet-pr

Re: Internal Server Error

2009-10-09 Thread brian
es not matter here. > > Using the model or the controller, it does not work as expected. > > > On 9 out, 17:56, brian wrote: >> Why use ClassRegistry::init() if this code is in your >> CompaniesController? You should be able to just do: >> >> $this->set(&

Re: Internal Server Error

2009-10-09 Thread brian
Why use ClassRegistry::init() if this code is in your CompaniesController? You should be able to just do: $this->set('companies', $this->Company->getAll()); Come to that, why even have a getAll() method? $this->set('companies', $this->Company->find('all')); On Fri, Oct 9, 2009 at 12:52 PM, rlc

Re: tree behaviour - remove from tree

2009-10-09 Thread brian
How are you calling the method in your controller (or model)? On Fri, Oct 9, 2009 at 10:28 AM, leo wrote: > > I'm using tree behaviour and want to remove a node from the tree > without deleting its children. > > I'm having trouble getting this to work. The manual says > 'removeFromTree()' and li

Re: Internal Server Error

2009-10-09 Thread brian
On Fri, Oct 9, 2009 at 11:08 AM, rlcabral wrote: > > Hi, > > Something really strange is happening on my app. > > I have a function called "search". It is working fine. > > However, if I login and use the same search function, I get an > internal error message. > > Now, the most strange thing on

Re: E-mail component rendering a template fails with no error message

2009-10-09 Thread brian
On Fri, Oct 9, 2009 at 1:02 AM, Bruno Bergher wrote: > > Hi there, > > Summary: when using EmailComponent I bump into a strange problem in > the View class. Using CakePHP 1.3.0.0. > > I'm using EmailComponent  in a very standard way. In my controller I > have: > > $this->Email->to = 's...@email.c

Re: ability to users to delete their comment's

2009-10-09 Thread brian
On Fri, Oct 9, 2009 at 11:19 AM, Simon wrote: > > if that code gose to controller then this should go to view but the > other  users will see this link > link(__('Delete', true), array('action'=>'delete', > $comment['Comment']['id']), null, sprintf(__('Are you sure you want to > delete # %s?', tr

Re: Server has broken links

2009-10-09 Thread brian
Set debug to 2. When set to 0, Cake displays a 404 message. It's probable that you have an error somewhere. Perhaps your files are not in sync. Or, maybe there's a permissions problem. Also, check Cake's error log. On Fri, Oct 9, 2009 at 4:59 AM, Michael Gaiser wrote: > I have been making a site

Re: Intergrate cakephp with just static html pages

2009-10-08 Thread brian
by far the most traffic, so it would be great to have > a static html  (which could be generated as well) that the webserver > could send without having to initialize the cakephp framework. > > I guess ther needs to be som rewriterule ... ? > > Cheerio, Stefan > > > On 29 Se

Re: $this->paginate["fields"]

2009-10-07 Thread brian
$this->paginate['fields'][] = "Model.first_name as example"; OR: array_push($this->paginate['fields'], 'Model.first_name as example'); On Wed, Oct 7, 2009 at 7:00 PM, Kyle Decot wrote: > > I want to append a dynamically created field to my paginated results > but when I do > > $this->paginate[

Re: pagination: remember the page from where i come

2009-10-07 Thread brian
In the view with the paging, do debug($this->params['paging']). The page number should be in $this->params['paging']['ModelName']['page']. You could pass that to the 2nd controller, which would use it to get you back where you came from. On Wed, Oct 7, 2009 at 7:29 AM, Obelix wrote: > > Hallo, >

Re: Model Files do not get read in by the system.

2009-10-07 Thread brian
You're the second person today. Clear out app/tmp/cache/models/ and set debug > 0 to have Cake check the model schema on each request. On Wed, Oct 7, 2009 at 9:51 AM, paullb wrote: > > > I have noticed that my model files do not get read by Cake -AT ALL-. I put > garbage characters into one file

Re: Validating a HABTM relationship

2009-10-07 Thread brian
I can't answer your question about HABTM/saveAll() but what I've done in the past is put the validation rule in the 'JoinModel'. In the controller for the other model: $this->SavingModel->JoinModel->set($this->data); if (!$this->SavingModel->JoinModel->validates()) { $this->SavingModel->

Re: fopen: failed to open stream

2009-10-07 Thread brian
file.php is where the error was triggered; it's not the file that cannot be opened. Look more closely at the first path--you need to allow the webserver to have write access to your app/tmp directory (and all subdirectories). On Wed, Oct 7, 2009 at 9:43 AM, Jacksm wrote: > > Hi, >  I am setting

Re: Model Files

2009-10-07 Thread brian
On Wed, Oct 7, 2009 at 9:22 AM, Brendan Paull wrote: > > 3 questions for the group regarding Models > > 1. Does CakePHP even read the contents of the model files. I run my > code, then I completely clear the contents of the file or put garbage > data in for values such as $useTable and there is a

Re: Set:sort "A Set-compatible path"

2009-10-07 Thread brian
On Wed, Oct 7, 2009 at 10:17 AM, alberto wrote: > > Where I can find the syntax of the variable $path that are passed to > the Set:sort ? For sort() you'll probably be using '{n}.ModelName.field_name'. The '{n}' part represents the array index and you provide that exactly as shown. You just need

Re: problem in Auth->loginRedirect.

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 7:01 PM, lokesh sharma wrote: > > Currently I'm facing problem in Auth->loginRedirect. > AS per my requirement, I have to pass parameter value also in > controller's action. But after searching alot, I didnt find any option > except  '$this->Auth->loginRedirect = array('con

Re: acl tutorial - invalid node

2009-10-06 Thread brian
this->Acl->deny($group, 'controllers'); >    $this->Acl->allow($group, 'controllers/Posts/add'); >    $this->Acl->allow($group, 'controllers/Posts/edit'); >    $this->Acl->allow($group, 'controllers/Widgets/add'); >    $this->Acl-

Re: Translate field names

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 3:11 PM, emmexx wrote: > > > > On 6 Ott, 19:54, brian wrote: >> Do you have a .po file containing a translation for 'table_id'? And >> have you set the language? > > Not yet but I expected that without a po file, or a translation,

Re: Problem with Model Association

2009-10-06 Thread brian
That shouldn't be an issue. What was the file name? If it wasn't news_post.php that would do it. On Tue, Oct 6, 2009 at 3:01 PM, Raman wrote: > > Thanks brian, tried that, but it didn't work. I found the solution > though. I'm using CakePHP version 1.3, so this mi

Re: Email Function

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 1:50 PM, Dave Maharaj :: WidePixels.com wrote: > My controller is getting out of control > > I have 3 different registration functions which all send emails > > such as: > > if ($this->User->save($this->data, true, > array_intersect(array_keys($this->User->schema()), $wh

Re: Problem with Model Association

2009-10-06 Thread brian
In Comment.php, add var $belongsTo = array('NewsPost'); On Tue, Oct 6, 2009 at 1:02 PM, Raman wrote: > > Hello, > > Im very new to CakePHP and have just started to learn Model > Association. If I make any errors in the google group, please excuse > me this is my first time on any google group. >

Re: email validation

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 12:47 PM, Simon wrote: > > i have 2 fields email and confirm_email  i tired this validation didnt > work > > 'email_confirm' => array('rule' =>  array( 'notSame'),'message' => > 'email not same') Have a look here: http://bakery.cakephp.org/articles/view/using-equalto-vali

Re: Changing field names, need help

2009-10-06 Thread brian
I can't think of a compelling reason to do that in Cake. I doubt doing that would play nicely with FormHelper, for one thing. On Tue, Oct 6, 2009 at 12:38 PM, PaulMan wrote: > > Hello, > > Select .  Workflow.id as Fa, Workflow.name as Fb ... > > How can this be done using the 'fields' pa

Re: Second DB datasource, not related to a model

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 12:38 PM, p_W wrote: > > At my company we have a large Oracle DB that stores the information > for all our employees and users.  The app I am writing uses a MSSQL db > and also has a 'users' table, as we want to store the information for > the users of our app in a differen

Re: Query (using "greater than")

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 12:20 PM, gimperdan...@gmail.com wrote: > > thanks!! Maybe the book is outdated or just a typo. > Outdated. The behavior changed awhile ago. It should be edited. If you have a Bakery acct. you can edit it yourself. See ('How You Can Help'): http://book.cakephp.org/ If no

Re: Translate field names

2009-10-06 Thread brian
Do you have a .po file containing a translation for 'table_id'? And have you set the language? http://book.cakephp.org/view/163/Localization-in-CakePHP On Tue, Oct 6, 2009 at 10:54 AM, emmexx wrote: > > On 25 Set, 12:47, "rich...@home" wrote: >> No, you only want to translate the label, not th

Re: acl tutorial - invalid node

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 9:42 AM, Manu wrote: > > Hi > > I'm trying to do the acl tutorial from the cake docs. > Unfortunately I can't edit the permissions. > When I try to setup the permissions I get this warning. > > Warning (512): DbAcl::allow() - Invalid node [CORE\cake\libs\controller > \compo

Re: Odd Image Path

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 12:57 PM, Jimbo2150 wrote: > > I set up my laptop so that I can access or edit files and view it on > the browser through my LAN (Apache is on my desktop computer). When I > loaded the pages in the browser on the laptop, I notice that CSS and > Images are linked incorrectly

Re: Validation with bindModel on the fly

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 2:40 AM, Cristian Cassina wrote: > > Hi everyone, > > this one is puzzling me. In my app, validation works like a charm for > every model I have, except one. In that one, validation works but, > here the rules: > > var $validate = array( >                'name' => array

Re: Bug? - Accessing Deep Model Relations In Plugins

2009-10-06 Thread brian
On Mon, Oct 5, 2009 at 8:45 PM, MeanStudios wrote: > > Greetings, > > I'm not sure if this is a bug or not but here it goes. If I have 3 > models (Layout, Template, Page).  Layout has many Page and Template. > Page and Template have only one Layout.  If I am in the > PagesController and I do some

Re: Field Naming conventions and hasmany records

2009-10-06 Thread brian
On Mon, Oct 5, 2009 at 9:02 PM, #2Will wrote: > > OK, cool thanks. The comment is saving properly now. > > so i have this: > > echo $form->textarea('ForumComment.comment', array('rows'=>5)); >                if ($form->isFieldError('ForumCommentComment')){ >                        echo $form->err

Re: RequestAction: how to pass form data, form errors and paginate url options FROM along

2009-10-05 Thread brian
On Mon, Oct 5, 2009 at 2:47 PM, brian wrote: > Ordinarily, I'd suggest you dump the requestAction() calls and put the > logic in your model and call it from there. But you need to paginate, > so it has to be in the controller. In that case, you could put the > pa

Re: RequestAction: how to pass form data, form errors and paginate url options FROM along

2009-10-05 Thread brian
Ordinarily, I'd suggest you dump the requestAction() calls and put the logic in your model and call it from there. But you need to paginate, so it has to be in the controller. In that case, you could put the pagination logic in ProfilesController. As for the shout_to() method, you could probably pu

Re: Field Naming conventions and hasmany records

2009-10-05 Thread brian
On Mon, Oct 5, 2009 at 2:52 AM, vekija wrote: > > You'll have to save the topic first and then fetch it's id. From the > cookbook: "If neither of the associated model records exists in the > system yet (for example, you want to save a new User and their related > Profile records at the same time)

Re: Uploader Plugin now does Model attachments

2009-10-04 Thread brian
On Sun, Oct 4, 2009 at 8:29 PM, Miles J wrote: > > Many have asked for a way to attach files to a Model to do automatic > file uploading and database saving, within my Uploader Plugin. Well > now you can, its really easy! > > http://www.milesj.me/resources/script/uploader-plugin#Attaching-Files-T

Re: showEmpty?

2009-10-04 Thread brian
I believe it's 'empty => 'Select your State'. If the param is false, null, or the empty string, Cake outputs an empty option. On Sun, Oct 4, 2009 at 8:13 AM, Dave Maharaj :: WidePixels.com wrote: > > I had a same / similar question for input selects which is related to this. > > I have my echo $

Re: Excluding a node from a tree, and adding a parent node

2009-10-04 Thread brian
On Sat, Oct 3, 2009 at 10:44 PM, Rawna wrote: > > Hi, I'm using Cake's Tree bhavior and I got a couple of questions: > > 1. How do I exclude a node when generating a a tree list? (i.e. using > generatetreelist()) ? I'm going to use it when editing a category. > > 2. When adding a new category, it

Re: Access Classes In Layout Help??

2009-10-03 Thread brian
gt; showing >>> > within the default.ctp.  If I add this car action to the app_controller >>> > (instead of car model) and set the variables there, will all the views >>> have >>> > access to that variable? How can I make a global "set" variable

Re: How to remove query's description in footer

2009-10-03 Thread brian
In app/config/core.php: Configure::write('debug', 0); On Sat, Oct 3, 2009 at 11:39 AM, lokesh sharma wrote: > > I'm beginner in cake PHP. After configure database, model, controller > & view, I got my page running but in footer I'm getting queries > related information which  I want to remove.

Re: Caching dynamic url view

2009-10-03 Thread brian
o use cacheAction to grab > dynamic urls. For instance if I wanted to cache /posts/view/* how > could this be done? You would not want to manually create routes and > cacheAction entries for each post that is created. > > > On Oct 3, 12:29 pm, brian wrote: >> Why not

Re: Caching dynamic url view

2009-10-03 Thread brian
Why not just create a simplified route for that URL? Something like: '/badge', array('controlller' => 'posts', 'action' => 'your_action', 'id' => 23, 'size' => '180x150') On Fri, Oct 2, 2009 at 10:58 PM, thinline wrote: > > > I am trying to implement full view caching for a specific method in a

Re: Access Classes In Layout Help??

2009-10-03 Thread brian
On Sat, Oct 3, 2009 at 4:18 AM, hahmadi82 wrote: > > > Now I see!  So the set variables change depending on which view is showing > within the default.ctp.  If I add this car action to the app_controller > (instead of car model) and set the variables there, will all the views have > access to tha

Re: Using a page outside of CakePHP

2009-10-03 Thread brian
On Sat, Oct 3, 2009 at 2:54 AM, Josh K wrote: > > Thanks for the reply.  I would actually like to use the two pages > outside of the Cake document root since I have Cake and its app files > on a subdirectory.  For example: > > I would like to copy: > > /home/public_html/cake/app/views/forms/form1

Re: Using a page outside of CakePHP

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 11:09 PM, Gonzalo Servat wrote: > > On Sat, Oct 3, 2009 at 1:01 PM, Josh K wrote: >> >> Is it possible to use a page outside of a CakePHP application? All but >> two pages of my Cake app require authentication. I have two public >> forms that submit data to the application

Re: Access Classes In Layout Help??

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 10:55 PM, hahmadi82 wrote: > > > Ok so I actually didn't create a layout for each view from my controllers. > Instead, all the views use the same layout, which is the default.ctp. Is > that incorrect? From my understanding, the default layout is loaded by every > view and t

Re: learning by example: twitter?

2009-10-02 Thread brian
If you're using jQuery, have a look at the form plugin. It'll allow you to painlessly have a form submit through an AJAX call. Ad you can set up a callback function to take care of changing the display, handling data sent back from the server, etc. But, if you're brand new to Cake (or jQuery) rea

Re: Still sort array help

2009-10-02 Thread brian
natcasesort() returns a boolean, not an array. debug(natcasesort($merged)); On Fri, Oct 2, 2009 at 6:07 PM, Dave Maharaj :: WidePixels.com wrote: > > No matter what i try I still cant sort an array. > > $merged = array_merge ($new_skills, $selected); >    debug($merged); > Array > ( >    [0] =>

Re: Auth component loop redirect

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 9:36 AM, mathaios wrote: > > Brian you nailed it...I was having a small navigation element in the > layout > > thank you! > Yeah, that one was driving me nuts once. I was so happy to find that post! --~--~-~--~~~---~--~~

Re: paginator, containable -> what $key for sort()

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 5:49 AM, Melanie Sommer wrote: > > Hello, > > I am using containable behaviour in paginate() in my controller namend > "E". > > In my view I can use sort('title of cell in table E') to sort the > results. But I did not find a way to sort by any fields not belonging > to tab

Re: Question about on merge two different Model paginate

2009-10-01 Thread brian
On Thu, Oct 1, 2009 at 9:08 AM, byqsri wrote: > > Can someone help me about this? > > On 7 Set, 09:13, "marco.rizze...@gmail.com" > wrote: >> Hi >> I have this situation: >> I have a model Event and a model News ,  Both models have  the field >> 'created' . >> Now in my view I would create a sin

  1   2   3   4   5   6   7   8   9   10   >