vcalendar appended to multipart email as text/calendar MIME type

2014-02-24 Thread Brian Love
/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 group and stop

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 FaceBook

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 reza.talamkh...@gmail.comwrote: 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

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 griff...@gmail.com wrote: On Fri, Mar 30, 2012 at 09:42, LITTO CHACKO li...@axtecindia.com wrote: hai guys, i have to met with other problem.. the

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 damilareak...@gmail.com wrote: Yes it helped. Thanks. But its giving an error saying expecting T_function in

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 levine.g...@gmail.com 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

Re: $this-redirect not working

2012-03-11 Thread Brian Bowler
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 marzo de 2012 21:24, Brian Bowler bbowle...@gmail.com escribió: So I

$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

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

Re: nocache breaks when used in loop

2011-04-17 Thread Brian Sweeney
On Sat, Apr 16, 2011 at 1:47 PM, cricket zijn.digi...@gmail.com wrote: On Fri, Apr 15, 2011 at 3:37 PM, Brian Sweeney eclecticg...@gmail.com wrote: On Fri, Apr 15, 2011 at 2:47 PM, cricket zijn.digi...@gmail.com wrote: What the heck is this?! echo ?php $product_id = $product_id

Re: nocache breaks when used in loop

2011-04-15 Thread Brian Sweeney
On Thu, Apr 14, 2011 at 2:49 PM, cricket zijn.digi...@gmail.com wrote: On Thu, Apr 14, 2011 at 11:00 AM, Brian Sweeney eclecticg...@gmail.com 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

Re: nocache breaks when used in loop

2011-04-15 Thread Brian Sweeney
On Fri, Apr 15, 2011 at 2:47 PM, cricket zijn.digi...@gmail.com 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

Re: nocache breaks when used in loop

2011-04-15 Thread Brian Sweeney
On Fri, Apr 15, 2011 at 2:47 PM, cricket zijn.digi...@gmail.com wrote: What the heck is this?! echo ?php $product_id = $product_id; ?; ? 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

Re: nocache breaks when used in loop

2011-04-14 Thread Brian Sweeney
On Thu, Apr 14, 2011 at 2:11 AM, cricket zijn.digi...@gmail.com wrote: On Wed, Apr 13, 2011 at 11:37 PM, Brian Sweeney eclecticg...@gmail.com 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

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

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

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 javier.ange...@gmail.com wrote: Hi I am a completely newbie to cake php. A new customer has a site developed with

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: 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 david.fi...@gmail.com 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

HtmlHelper within Helper causes sql_dump.ctp to fail.

2010-05-30 Thread Brian Jones
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 simple that I have overlooked. Brian Jones brian.jo

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 ryan.dy...@gmail.com To: CakePHP cake-php@googlegroups.com Sent: Monday, May 03, 2010 2:01 AM Subject: Version 1.3 Routing Vanity URLs In my 1.2x app I have vanity

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: 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_id',

Pagination question

2010-03-11 Thread Brian Allemana
' = 'page:\d+' ) ); Can anyone shed some light? Many thanks, -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

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

2010-03-09 Thread Brian
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. To post to this group, send email to cake-php@googlegroups.com

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 mathew.hu...@gmail.com wrote: I work with TinyMCE in my CakeApp. When I press the image icon, it shows the image window.

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 arkand...@gmail.com 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

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 php...@gmail.com 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

Re: Controller and Session in View

2009-10-14 Thread brian
On Wed, Oct 14, 2009 at 4:00 AM, Prof. No Time libertylivingst...@gmail.com 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-user

Re: Debug Error?

2009-10-14 Thread brian
On Tue, Oct 13, 2009 at 4:16 PM, Dave Maharaj :: WidePixels.com d...@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

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

2009-10-14 Thread brian
and controller. On 14 Okt., 10:15, Dr. Loboto drlob...@gmail.com wrote: AppModel Object - cake did not find your model file and created AppModel as Miles and Brian both already said. On Oct 14, 2:57 am, Obelix obelixm...@web.de wrote: Hello, i have test if Model available and it's look like

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 christian.lusz...@gmail.com wrote: Hello, I read several threads about this but not found a final cake-like

Re: Selecting empty rows?

2009-10-14 Thread brian
On Wed, Oct 14, 2009 at 5:00 PM, BeroFX ber...@gmail.com 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

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 leohac...@gmail.com 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

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 mciver.ja...@gmail.com 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

Re: Update now save

2009-10-13 Thread brian
On Tue, Oct 13, 2009 at 4:25 AM, Henrik Gemal henrikge...@gmail.com 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

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 obelixm...@web.de wrote: Thanks for your Answer. I will test it in the evening. So that does not happen i generate the plugin(cms), model and

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 joshkrae...@gmail.com 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

Re: Controller and Session in View

2009-10-13 Thread brian
On Tue, Oct 13, 2009 at 12:37 PM, Prof. No Time libertylivingst...@gmail.com 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

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 joshkrae...@gmail.com 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

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 d...@widepixels.com wrote: I have one page that is blank when i

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-proof

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 lukarden...@gmail.com

Re: TextHelper Problem

2009-10-12 Thread brian
On Mon, Oct 12, 2009 at 3:24 PM, euromark (munich) dereurom...@googlemail.com 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 read your post

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, Dave

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 martin.westin...@gmail.com 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:

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 e.blumsten...@googlemail.com 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

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 mjgai...@gmail.com wrote: I have

Re: ability to users to delete their comment's

2009-10-09 Thread brian
On Fri, Oct 9, 2009 at 11:19 AM, Simon simon_d...@hotmail.com wrote: if that code gose to controller then this should go to view but the other  users will see this link ?php echo $html-link(__('Delete', true), array('action'='delete', $comment['Comment']['id']), null, sprintf(__('Are you

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 bruno.berg...@gmail.com 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 =

Re: Internal Server Error

2009-10-09 Thread brian
On Fri, Oct 9, 2009 at 11:08 AM, rlcabral ricardolcab...@gmail.com 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

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 ponton@gmail.com 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

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, rlcabral

Re: Internal Server Error

2009-10-09 Thread brian
or the controller, it does not work as expected. On 9 out, 17:56, brian bally.z...@gmail.com wrote: 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

Re: Intergrate cakephp with just static html pages

2009-10-08 Thread brian
is 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 Sep., 02:00, brian bally.z

Re: Set:sort A Set-compatible path

2009-10-07 Thread brian
On Wed, Oct 7, 2009 at 10:17 AM, alberto alberto.pri...@gmail.com 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

Re: Model Files

2009-10-07 Thread brian
On Wed, Oct 7, 2009 at 9:22 AM, Brendan Paull brendan.pa...@gmail.com 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

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 ftwo...@gmail.com wrote: Hi,

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()) {

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 brendan.pa...@gmail.com wrote: I have noticed that my model files do not get read by Cake -AT ALL-. I put garbage

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 obelixm...@web.de

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 kdec...@gmail.com wrote: I want to append a dynamically created field to my paginated results but when I do

Re: Field Naming conventions and hasmany records

2009-10-06 Thread brian
On Mon, Oct 5, 2009 at 9:02 PM, #2Will willjbar...@gmail.com 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

Re: Bug? - Accessing Deep Model Relations In Plugins

2009-10-06 Thread brian
On Mon, Oct 5, 2009 at 8:45 PM, MeanStudios cody.lundqu...@gmail.com 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

Re: Validation with bindModel on the fly

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 2:40 AM, Cristian Cassina principess...@gmail.com 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(                

Re: Odd Image Path

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 12:57 PM, Jimbo2150 jimbo2...@gmail.com 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

Re: acl tutorial - invalid node

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 9:42 AM, Manu manu...@gmail.com 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

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 emmeics...@gmail.com wrote: On 25 Set, 12:47, rich...@home richardath...@gmail.com wrote: No, you

Re: Query (using greater than)

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 12:20 PM, gimperdan...@gmail.com 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'):

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 paulwoolcoc...@gmail.com 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

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 pho...@gmail.com wrote: Hello, Select .  Workflow.id as Fa, Workflow.name as Fb ... How can this be done using the

Re: email validation

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 12:47 PM, Simon simon_d...@hotmail.com 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:

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 rlali...@gmail.com 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

Re: Email Function

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 1:50 PM, Dave Maharaj :: WidePixels.com d...@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,

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 rlali...@gmail.com wrote: Thanks brian, tried that, but it didn't work. I found the solution though. I'm using CakePHP version 1.3, so this might be a bug I

Re: Translate field names

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 3:11 PM, emmexx emmeics...@gmail.com wrote: On 6 Ott, 19:54, brian bally.z...@gmail.com 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, the label

Re: acl tutorial - invalid node

2009-10-06 Thread brian
');    $this-Acl-allow($group, 'controllers/Widgets/edit'); } I really only try to do the acl tutorial but I cant get it done. you can see the code on the doc site tutorial ACL. The get a warning when I try to allow or deny. On Oct 6, 7:43 pm, brian bally.z...@gmail.com wrote: On Tue, Oct 6, 2009 at 9:42

Re: problem in Auth-loginRedirect.

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 7:01 PM, lokesh sharma is011.lok...@gmail.com 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  

Re: Field Naming conventions and hasmany records

2009-10-05 Thread brian
On Mon, Oct 5, 2009 at 2:52 AM, vekija vedran.konto...@gmail.com 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

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

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 bally.z...@gmail.com 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 pagination logic

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 asumaw...@gmail.com 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

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 d...@widepixels.com wrote: I had a same / similar question for input selects which is related to this. I

Re: Uploader Plugin now does Model attachments

2009-10-04 Thread brian
On Sun, Oct 4, 2009 at 8:29 PM, Miles J mileswjohn...@gmail.com 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!

Re: Using a page outside of CakePHP

2009-10-03 Thread brian
On Sat, Oct 3, 2009 at 2:54 AM, Josh K joshkrae...@gmail.com 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:

Re: Access Classes In Layout Help??

2009-10-03 Thread brian
On Sat, Oct 3, 2009 at 4:18 AM, hahmadi82 hahmad...@gmail.com 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

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 thinline...@gmail.com wrote: I am trying to implement full view caching for a

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 is011.lok...@gmail.com 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  

Re: Access Classes In Layout Help??

2009-10-03 Thread brian
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 that comes from a specific query? brian-263 wrote: On Fri, Oct 2, 2009

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

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 5:49 AM, Melanie Sommer melanie-som...@mailinator.com 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

Re: Auth component loop redirect

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 9:36 AM, mathaios mathaio...@gmail.com 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! --~--~-~--~~~---~--~~ You

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 d...@widepixels.com wrote: No matter what i try I still cant sort an array. $merged = array_merge ($new_skills, $selected);    debug($merged); Array

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)

Re: Access Classes In Layout Help??

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 10:55 PM, hahmadi82 hahmad...@gmail.com 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

Re: Using a page outside of CakePHP

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 11:09 PM, Gonzalo Servat gser...@gmail.com wrote: On Sat, Oct 3, 2009 at 1:01 PM, Josh K joshkrae...@gmail.com 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

Re: 10.2 Simple Acl controlled Application tutorial problem

2009-10-01 Thread brian
Someone else posted 2 days ago about the same problem :-) Change the line with App::objects() to use: Configure::listObjects('controller'); On Thu, Oct 1, 2009 at 6:15 AM, Marcelo marcelo.benzaq...@gmail.com wrote: Hi everyone, I'm doing the cakephp.org acl tutorial and I'm stuck in the

Re: Auth component loop redirect

2009-10-01 Thread brian
Do you have an requestAction() code? If so, try adding this in AppController::beforeFilter() if (isset($this-params['requested'])) $this-Auth-allow($this-action); http://thewebandthings.synodicsolutions.com/2009/07/01/increasing-life-expectancy-with-2-lines-of-code-cakephp-auth-component/

Re: Help Program Issues on a program I did not write

2009-10-01 Thread brian
On Thu, Oct 1, 2009 at 11:51 AM, Dr. Loboto drlob...@gmail.com wrote: Under TheOtherModel brian ment some other model from $uses that have association with needed EvaluationMixeval model. Check that models associations and use the one that associated with EvaluationMixeval (if there is any

Re: Question about on merge two different Model paginate

2009-10-01 Thread brian
On Thu, Oct 1, 2009 at 9:08 AM, byqsri marco.rizze...@gmail.com wrote: Can someone help me about this? On 7 Set, 09:13, marco.rizze...@gmail.com 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

  1   2   3   4   5   6   7   8   9   10   >