Cron Jobs

2014-11-22 Thread Ed Propsner
Does anyone have an experience with setting up a cron job on a shared host where they must specify the location of the php.ini to be used? It's definitely possible but I haven't quite figured it out with cake and shell scripts. I have a site that is using PHP 5.4 fast cgi, but my crons are

Re: using cakephp with nginx

2014-10-26 Thread Ed Propsner
So basically you are able to see your project when visiting your server ip but getting a 404 when redirected to the login? My guess is that your login address looks like 192.168.1.123/my_broken_project/login? You actually *can *use an ip address as a *server_name *but only one site will be

Re: using cakephp with nginx

2014-10-26 Thread Ed Propsner
The only way I know of (off the top of my head) to use the same ip for multiple sites with nginx (besides the working config I already gave you) is to change the port your project listens on. Keep one at 80 and change the other to something like 8080 (or some other port not being used). Your

Re: Assets Helper

2014-01-10 Thread Ed Propsner
I never thought to look because app assets are precompiled/compressed during development, the helper was just a quick and simple solution for the time being. I'll be sure to clone a copy and have a look, thanks Mark. On Fri, Jan 10, 2014 at 5:48 AM, euromark dereurom...@gmail.com wrote: Whats

Re: Strange console behavior

2013-12-03 Thread Ed Propsner
I'm not quite too sure what to make of it. 'debug(Debugger::trace())' triggered the error that I could not re-declare class debugger. I removed the Debugger::trace() but the error remained. Fairly confident that I hadn't re-declared the class anywhere else I commented out 'Debugkit.Toolbar' and

Re: Defining Plugin

2013-10-28 Thread Ed Propsner
You're absolutely right, I was definitely confusing the two. I suppose that I'm so used to referencing the plugin as camel-case everywhere else within the app and since functions are camel-case and they are referenced as such in the URL, it wasn't a far stretch to make the mistake of constructing

Re: Defining Plugin

2013-10-28 Thread Ed Propsner
I was able to work everything out using $this-paginator options(). I appreciate the help :) On Mon, Oct 28, 2013 at 2:17 AM, Ed Propsner crotchf...@gmail.com wrote: You're absolutely right, I was definitely confusing the two. I suppose that I'm so used to referencing the plugin as camel-case

Re: Defining Plugin

2013-10-28 Thread Ed Propsner
that it was :) So yes, I still think I have something boogered within my app. On Mon, Oct 28, 2013 at 5:39 PM, Reuben Helms reuben.he...@gmail.comwrote: What options did you end up using? On Tuesday, October 29, 2013, Ed Propsner wrote: I was able to work everything out using

Re: Identical controller names

2013-10-09 Thread Ed Propsner
I thought better of the idea. Seems pointless to have identical names when there are so many others to choose from :) I suppose I was more curious about how it would effect the app moreso than actually creating the controllers. Thanks for the reply :) On Wed, Oct 9, 2013 at 11:40 PM, Reuben

Re: Identical controller names

2013-10-09 Thread Ed Propsner
Naming the files with the same name wouldn't be so difficult ... one of the files is contained in a plugin. My thinking was that within the app itself I would have controller and plugin.controller and although they would share the same name they are referenced differently and perhaps it wouldn't

Re: CakeEmail in Plugin

2013-09-27 Thread Ed Propsner
huh, sure enough :) I never came across that issue before but casting definitely did the trick. Thanks for the help! On Fri, Sep 27, 2013 at 12:22 PM, euromark dereurom...@gmail.com wrote: User setter/getter combinational methods is pretty dangerous IMO :) Especially with a typo-unsafe

Re: Cake CLI no longer works

2013-05-07 Thread Ed Propsner
Thanks for the response Steve, Just to rule out all possible causes to the issue I did go ahead and re-download 2.3.4 into ~/downloads (on a headless server). I executed ~/downloads/cakephp/app/Console/cake bake and it resulted in *: No such file or directohpry*. I also tried apt-get install

Re: Cake CLI no longer works

2013-05-07 Thread Ed Propsner
@Steve, yes PHP is installed on the machine and just to verify I get *-rwxrwxrwx 1 ed ed 1092 Apr 30 2012 /var/www/nk/Console/cake**. (I deleted cake from downloads dir, that was just for a test). @Euromark A good number of my apps are up to date with the most current version of Cake so I

Cake CLI no longer works

2013-05-05 Thread Ed Propsner
I've been running Cake on Ubuntu Server 12.04 for quite some time now and never a problem. I don't necessarily have a problem with CakePHP itself, but more than likely something changed on my system and I can't quite figure it out. I recently tried to bake a model for a newly added table in one

Auth Component; Strange behavior

2013-03-11 Thread Ed Propsner
Using Cake 2.2.5 My app is exhibiting a strange behavior in one of my controller/views. I have $this-Auth-allowedActions = array('view', 'index'); defined in the beforeFilter of one of my controllers. When an authenticated user navigates to the index view, Auth Component does not work on that

Hash.php

2013-02-27 Thread Ed Propsner
(Cake 2.2.5) I recently started getting an error that reads: Warning (2): Invalid argument supplied for foreach() [CORE]/Cake/Utility/Hash.php, Line 50] Line 50 in Hash.php is part of get() function for the Hash class. Trying to debug anything in that function results in a memory allocation

ACL : Group vs. User

2013-02-24 Thread Ed Propsner
I have implemented ACL in my app and I'm regulating access using Groups, however, I would like for some users within the same group to have slightly different permissions. Has anyone been able to accomplish this? Is this even possible? It seems as though I can change permissions for both the Group

Re: Miles J Uploader

2012-09-10 Thread Ed Propsner
Thanks Johannes, When I try stripping down it saves the record in the database with name as empty. On Mon, Sep 10, 2012 at 8:12 AM, Johannes N johannes.n...@socialisten.atwrote: well, probably it's the 'name' = 'name' // Saves the file in database with actual name of uploaded file line.

Testing CakeEmail

2012-05-10 Thread Ed Propsner
I have two working examples of this http://bin.cakephp.org/view/412028290 using 2.1.1. However, using 2.2 running the same mocks in the test case CakeEmail is not responding the same. I don't think the issue is with the version of Cake but instead me overlooking something that I'm just not

Re: Where to start?

2012-04-11 Thread Ed Propsner
The file should be named PostsController.php http://book.cakephp.org/2.0/en/getting-started/cakephp-conventions.html On Wed, Apr 11, 2012 at 6:24 AM, INTERNET DATA CENTRE imti...@gmail.comwrote: do you mean to say file name file name Posts_controller code php class PostsController extends

Re: Where to start?

2012-04-11 Thread Ed Propsner
/en/tutorials-and-examples/blog/blog.html On Wed, Apr 11, 2012 at 6:37 AM, INTERNET DATA CENTRE imti...@gmail.comwrote: But the cakephp lesson where from i got this shows same file name and it works good there. I have even tried with that file name also. On Wed, Apr 11, 2012 at 4:05 PM, Ed

Re: Where to start?

2012-04-11 Thread Ed Propsner
exactly in same way which i saw on youtube. On Wed, Apr 11, 2012 at 5:05 PM, Ed Propsner crotchf...@gmail.comwrote: I would recommend that the site where you get your cakephp lesson from should be this one http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html Work through

Re: Where to start?

2012-04-11 Thread Ed Propsner
i saw on youtube. On Wed, Apr 11, 2012 at 5:05 PM, Ed Propsner crotchf...@gmail.comwrote: I would recommend that the site where you get your cakephp lesson from should be this one http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html Work through (not copy and paste) the blog

Re: Where to start?

2012-04-11 Thread Ed Propsner
= '/tut_blog' webroot = '/tut_blog/' here = '/tut_blog/post/helloworld' } object(CakeResponse) { } On Wed, Apr 11, 2012 at 5:38 PM, Ed Propsner crotchf...@gmail.com wrote: The only thing that should really need changing in webroot/index is the CAKE_CORE_INCLUDE_PATH

Re: CakeEventManager

2012-04-11 Thread Ed Propsner
I did do some debugging at line 268. The initial error was complaining that Warning (2): array_merge() [function.array-merge]: Argument #1 is not an array [CORE/Cake/Event/CakeEventManager.php, line 268] and argument #1 for array_merge was $this-_listeners[$eventKey] which returned a rather

CakeEventManager

2012-04-10 Thread Ed Propsner
Any idea what would cause this error? Warning (2): array_merge() [function.array-merge]: Argument #1 is not an array [CORE/Cake/Event/CakeEventManager.php, line 268] Cake version is 2.1 I didn't have a problem until I moved the app to remote server. My guess is that I botched the set up but I

JS-Submit

2012-03-17 Thread Ed Propsner
I recently switched computers and for whatever reason I decided to go with WampServer on this machine instead of XAMPP which I have been using up until now. I have a JS request that seems to have stopped working once I switched. [code] ?=$this-Form-create(false);? div class=shopHourDate ?php

@Miles J - Uploader

2012-03-08 Thread Ed Propsner
@Miles, With the newest version of your uploader, when deleting a row from the db the corresponding file should be deleted locally. I have everything else working great except for file deletion. What am I overlooking? Regards, ED -- Our newest site for the community: CakePHP Video Tutorials

Re: Making a real mess of Auth Component

2011-11-13 Thread Ed Propsner
I've been beating myself in the head with the bible for quite some time now ;) misusing Basic HTTP authentication is purely me misusnderstanding Basic HTTP authentication. ... I've come to the conclusion hours ago that I was heading down the wrong road with it and switched gears accordingly. I

Re: Making a real mess of Auth Component

2011-11-13 Thread Ed Propsner
Yikes! I almost feel foolish seeing that ;) No harm done, I've gotten into areas I' never messed with and learned a few things in the process. Thank you. On Sun, Nov 13, 2011 at 5:59 AM, majna majna...@gmail.com wrote: https://gist.github.com/1361982 -- Our newest site for the community:

Re: Auth Component: Unable to login You are not authorized to access that location. message displayed

2011-10-15 Thread Ed Propsner
Seems like the Auth Component is keeping you out try adding this to the beforeFilter() in your controller: $this-Auth-allowedActions = array('updateuserprofile'); HTH - Ed On Fri, Oct 14, 2011 at 11:46 PM, DK techi dk.te...@gmail.com wrote: I have a table named userinformations . I want

Re: Loading Classes

2011-10-12 Thread Ed Propsner
Hindsight is 20/20. I'll keep it mind IF I ever another problem to that extent. On Wed, Oct 12, 2011 at 2:46 AM, Miles J mileswjohn...@gmail.com wrote: That really is weird. Would of been useful to zip up and send to the Cake devs :p On Oct 11, 11:15 am, Ed Propsner crotchf...@gmail.com

Re: Facebook authentication

2011-10-12 Thread Ed Propsner
Out of curiosity when Facebook redirects back to http:://localhost/app/users/index if you refresh the page at that point is $this-facebook-getUser() now available? On Wed, Oct 12, 2011 at 1:12 PM, Kyle kyleschr...@gmail.com wrote: I'm new to all of this, php/cakephp/facebook. I'm trying

Re: Facebook authentication

2011-10-12 Thread Ed Propsner
, Ed Propsner crotchf...@gmail.com wrote: Out of curiosity when Facebook redirects back to http:://localhost/app/users/index if you refresh the page at that point is $this-facebook-getUser() now available? On Wed, Oct 12, 2011 at 1:12 PM, Kyle kyleschr...@gmail.com wrote

Re: Loading Classes

2011-10-11 Thread Ed Propsner
? Frankly, I'm ignorant enough in this area to not know the difference. Does 2.0 handle this differently and I'm just not understanding it? - Ed On Tue, Oct 11, 2011 at 12:15 AM, Carlo Cruz yummydwa...@gmail.com wrote: You could always use a 'require_once' in bootstrap. On Oct 11, 12:24 pm, Ed

Re: Loading Classes

2011-10-11 Thread Ed Propsner
this: $this-facebook = new Facebook(); Should be done in the controllers beforeFilter(). On Oct 11, 5:44 am, Ed Propsner crotchf...@gmail.com wrote: Thanks for the response Carlo, Loading the class in the bootstrap has the same effect as in the AppController ... the class is only available

Re: Loading Classes

2011-10-11 Thread Ed Propsner
oops ... was ready another thread ... I meant @Miles ;) On Tue, Oct 11, 2011 at 2:14 PM, Ed Propsner crotchf...@gmail.com wrote: @Mark That doesn't make sense. Including a file *anywhere* in the application imports it into the scope, this is part of PHP, not CakePHP. I couldn't agree

Re: Loading Classes

2011-10-10 Thread Ed Propsner
I'm trying to load Facebook's php sdk. I'm currently using App::import. I'm loading it into the App Controller but the problem I'm having now is that the class is only available within that controller and not accessible to the rest of my controllers. - Ed On Mon, Oct 10, 2011 at 9:12 PM, Miles J

Pagination Problem

2011-06-29 Thread Ed Propsner
I've been poking around with this for a bit and have yet to find out what's going wrong. I'm passing a paginated result set to a view and everything renders fine until I try to access the next page of results. Example: // CONTROLLER // $this-paginate = array( 'contain' = array( 'OnlineUser',

Facebook apps with Cake

2011-06-23 Thread Ed Propsner
Just wondering if anyone has experience with facebook iframe canvas apps using Cake? I've been using fbml for older apps with no issues but for my newest app moved to PHP SDK 3.0 and iframes. Everything seems to work fine except for redirecting users to other pages within the iframe. I've tried

Re: Digest for cake-php@googlegroups.com - 4 Messages in 3 Topics

2011-04-03 Thread Ed Propsner
@ShadowCross: That's it! I don't rely on the book as much as I used to (there is a lesson to be learned here) ... I could have saved myself a lot of tinkering. Thanks so much for the help and getting me pointed in the right direction. - ED On Sat, Apr 2, 2011 at 11:39 PM,

Paginate pre-ordered list

2011-03-29 Thread Ed Propsner
I need to paginate a list of results having the search return the results in the order I presented the list to the search. I'm trying to paginate a list of users but I'm using a separate table to define the order, there is no column in the users table to use for the order. Here is an example of

Missing Database Table

2011-02-18 Thread Ed Propsner
I know this a common error but I'm not seeing what I'm overlooking here. I uploaded a project to remote server and the app complains that I'm missing DB tables. I assumed it was the cache and emptied it out but the problem still persists. The tables are there so that is not the issue. The app

Re: php statement is_set or array_key_exist ??

2011-02-07 Thread Ed Propsner
I won't get into the actual coding on how to do it but it's quite simple really. One approach is - User $hasMany Favorites When loading a page that contains the possible favorite have the controller use containable behavior and pass the current session user info containing their favorites list

Re: A facelift for the CakePHP Book

2011-02-03 Thread Ed Propsner
I was getting the same thing seems to have cleared up. On Thu, Feb 3, 2011 at 10:11 AM, euromark dereurom...@googlemail.comwrote: and now has a 500 - internal error :) On 3 Feb., 13:11, Graham Weldon predomin...@gmail.com wrote: The CakePHP Book[1] has undergone a major facelift and

How much is too much?

2011-02-02 Thread Ed Propsner
I'm working on part of my app where I'm harvesting a list of ID's from the db and passing the list to my view. It's a bit of work to get the initial list so to minimize the load and NOT have to repeat the process with each successive page load I would just like to pass the initial list back and

Re: display user ID

2011-02-02 Thread Ed Propsner
A hidden field could accomplish exactly what you are looking to do. $form-input('User.user_id', array('type' = 'hidden', 'value' = $this-Session-read('Auth.User.id')); The user id will accessible in your controller through $this-data HTH On Wed, Feb 2, 2011 at 12:53 PM, Paul Wheatley

Re: display user ID

2011-02-02 Thread Ed Propsner
I'd go with euromark's answer :) He's right about the field being easily manipulated. On Wed, Feb 2, 2011 at 1:03 PM, Ed Propsner crotchf...@gmail.com wrote: A hidden field could accomplish exactly what you are looking to do. $form-input('User.user_id', array('type' = 'hidden', 'value

Re: How much is too much?

2011-02-02 Thread Ed Propsner
to access the data, it grabs from the cache instead of the DB. On Feb 2, 7:41 am, Ed Propsner crotchf...@gmail.com wrote: I'm working on part of my app where I'm harvesting a list of ID's from the db and passing the list to my view. It's a bit of work to get the initial list so to minimize

Re: How much is too much?

2011-02-02 Thread Ed Propsner
@Miles:: Worked like a charm, thank you. I never used cache because I never had an overwhelming need for it before. I could kick myself for my ignorance. :) On Wed, Feb 2, 2011 at 3:16 PM, Ed Propsner crotchf...@gmail.com wrote: I knew the solution was probably an obvious one. I know it may

ACL Question

2011-01-15 Thread Ed Propsner
I've been plugging away with Cake for some time now with extremely few issues. I recently decided that ACL was the right choice for my app ... now I have issues :) I've toyed with it long enough now that I understand the concept and mechanics of it but the issue I'm having is this: When granting

Re: Email Component

2010-07-21 Thread Ed Propsner
) // ignores both email and name and sends using server address $this-email-from = 'Some Name' // sends okay but is obviously missing the email address On Tue, Jul 20, 2010 at 5:36 PM, Ed Propsner crotchf...@gmail.com wrote: I recently changed names on one of my sites and moved the entire site

Email Component

2010-07-20 Thread Ed Propsner
I recently changed names on one of my sites and moved the entire site to a different dir on the server. Everything went smooth enough except now I'm unable to send emails. Mail sends ok using PHP mail() function but not when using the email component. The email is NOT set up for SMTP. Am I

Re: Email Component

2010-07-20 Thread Ed Propsner
related with Email component? if I can send mail with mail() I can send with the component :S 2010/7/20 Ed Propsner crotchf...@gmail.com I recently changed names on one of my sites and moved the entire site to a different dir on the server. Everything went smooth enough except now I'm unable

Re: how to create forms

2010-07-19 Thread Ed Propsner
http://book.cakephp.org/view/1384/Creating-Forms On Mon, Jul 19, 2010 at 10:14 AM, amr_AJ ramruth...@gmail.com wrote: how to create forms Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you

Model Associations

2010-06-30 Thread Ed Propsner
Is there a best practice or rule of thumb to work from when defining model associations? It seems pretty cut and dry and there's not much that you can really mess up. I know this problem has been brought up here in the past but I'm still unable to find a solution after reviewing older threads.

Re: naming convention problem

2010-06-21 Thread Ed Propsner
Set your debug to at least 1 and see what the error is telling you then. It will give you a better idea of what's going on. On Mon, Jun 21, 2010 at 6:26 AM, Master Ram ramganga...@gmail.com wrote: Hi.. i have table name called: promoter_interest_hobbies i used the module name:

Re: How i increase date formate..!

2010-06-21 Thread Ed Propsner
You can create a form element specifically for the year and set options for $minYear and $maxYear. It's all in the book 8-) http://book.cakephp.org/view/1416/year On Mon, Jun 21, 2010 at 8:32 AM, Jonathon Musters luvz2...@gmail.comwrote: Google php date formats and replace it. On 6/21/10,

Address not found

2010-06-20 Thread Ed Propsner
Can anyone help me see what I might be missing here. I keep getting this error using the following set up: *Error: *The requested address *'/webContacts/contactUs'* was not found on this server. M = web_contact.php class WebContact extends AppModel { var $name = 'WebContact';

Re: Address not found

2010-06-20 Thread Ed Propsner
., 22:46, Ed Propsner crotchf...@gmail.com wrote: Can anyone help me see what I might be missing here. I keep getting this error using the following set up: *Error: *The requested address *'/webContacts/contactUs'* was not found on this server. M = web_contact.php class

Re: Format Array

2010-06-16 Thread Ed Propsner
think the following would be necessary: The code that returns data for your ajax call. The code of the view in which the dropdown data is to be used. Enjoy, John On Jun 16, 2:55 am, Ed Propsner crotchf...@gmail.com wrote: My last post was a bit misleading ... The way I should have

Re: Format Array

2010-06-16 Thread Ed Propsner
, 10:58 am, Ed Propsner crotchf...@gmail.com wrote: Sorry about that John, I'm not quite with it today ... i'm a bit under the weather. This is the part of the view for the search. $form-input('country', array( 'label' = '', 'type' = 'select', 'empty' = '-- Select --', 'selected

Re: Format Array

2010-06-16 Thread Ed Propsner
unfortunately haven't played around with Ajax as much, so can't shed any light on the issue! Enjoy, John On Jun 16, 11:59 am, Ed Propsner crotchf...@gmail.com wrote: I removed the model name (Search) from the field(s) and the result was the same ... minus [Search] in the array (obviously

Re: Ajax tutorials (help)

2010-06-16 Thread Ed Propsner
http://book.cakephp.org/view/1358/AJAX On Wed, Jun 16, 2010 at 2:26 PM, hoss7 hoss...@gmail.com wrote: i want help for ajax in cakephp or sample code or idea Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this

Format Array

2010-06-15 Thread Ed Propsner
I have a dropdown in one of my searches that is populated via ajax. When the form submits (GET) my params end up looking something like: [code] [minAge] = 31 [maxAge] = 41 [country] = Chile [data] = Array (

Re: Format Array

2010-06-15 Thread Ed Propsner
$this-params array arrive at the controller already formatted the way I want instead of me having to manipulate the array once it get's there. On Tue, Jun 15, 2010 at 5:47 PM, Ed Propsner crotchf...@gmail.com wrote: I have a dropdown in one of my searches that is populated via ajax. When the form submits

Re: Validation - Multiple attempts

2010-06-14 Thread Ed Propsner
the record I take the id from the session. I don't rely on the record id being in the url. If I did that, then the user could easily change it upon submitting the form, which would be a bad thing :) Hope this helps you on the way, John On Jun 14, 3:34 am, Ed Propsner crotchf...@gmail.com wrote

Validation - Multiple attempts

2010-06-13 Thread Ed Propsner
I notice that when I submit a form to a url such as http://mysite.com/controller/action/25 If validation fails on the first attempt the form reloads under the exact same url and retains all of $this-data but if the validation fails on subsequent attempts the form reloads but the record id gets

Re: Remove cakephp references from cookies

2010-06-13 Thread Ed Propsner
I haven't toyed with the cookies yet but it looks like they can be configured in app/config/core.php Configure::write('Session.cookie', 'CakePHP'); HTH - Ed On Sun, Jun 13, 2010 at 7:50 PM, sherzo shahrzad.azimi...@gmail.com wrote: Hi all I wonder to know if any of you knows how to remove

Re: Custom pagination with plain SQL

2010-06-12 Thread Ed Propsner
Have you checked out the section of the book on custom query pagination? http://book.cakephp.org/view/1237/Custom-Query-Pagination http://book.cakephp.org/view/1237/Custom-Query-PaginationEven though in the end I ended up not using it I was able to paginate a custom query working from the

Sub-query, paginate, containable

2010-06-11 Thread Ed Propsner
I set up a sub-query that needs to utilize 'containable behavior' and I need to paginate the results. [code] $conditionsSubQuery['Friend.user_id'] = $this-Auth-User('id'); $dbo = $this-Friend-getDataSource(); $subQuery = $dbo-buildStatement( array( 'fields' =

Re: Sub-query, paginate, containable

2010-06-11 Thread Ed Propsner
:42 PM, Ed Propsner crotchf...@gmail.com wrote: I set up a sub-query that needs to utilize 'containable behavior' and I need to paginate the results. [code] $conditionsSubQuery['Friend.user_id'] = $this-Auth-User('id'); $dbo = $this-Friend-getDataSource(); $subQuery = $dbo-buildStatement

Re: Query question(s)

2010-06-10 Thread Ed Propsner
10, 10:04 am, Ed Propsner crotchf...@gmail.com wrote: [snip part for Calvin] @John: Are you using the db to cache your search results on the server side? I learned some hard lessons in the past and need to cut down the load wherever I can. Is there any specific advantages to setting up

Re: Help cake basic

2010-06-09 Thread Ed Propsner
In your PostsController try using var $uses = array('Post'); On Wed, Jun 9, 2010 at 8:27 AM, Pedro pedrohme...@gmail.com wrote: Hi all, I'm following the basic cakephp Blog example, here is my code: posts_controller.php ?php class PostsController extends AppController { var $name =

Re: Query question(s)

2010-06-09 Thread Ed Propsner
as a match. To perform the same search using AND, you'd simply check to see if 3 13 = 13, which it obviously does not. But a record that has a value of 13 for the type field would evaluate to: 1101 1101 = 1101 So such a record would be return as a result. On Jun 8, 10:36 am, Ed Propsner

Re: Query question(s)

2010-06-08 Thread Ed Propsner
@Calvin: I do like the idea of using array_sum() and storing the options as an INT, I've taken this approach in the past with a different app (once) and it worked out just fine. In this case let's say you have a value of 3 stored in the db representing 2 options ... '1' = 'video, '2' = 'audio. A

Re: General development with MVC and Cake in particular

2010-06-08 Thread Ed Propsner
It doesn't seem like the blog tutorial is really your thing but have you tried it? All the fundamentals are there including functions and how they relate to views, as well as passing data back and forth between MVC. It really is the best place to start and any additional info can be found in the

Re: Query question(s)

2010-06-07 Thread Ed Propsner
://dev.mysql.com/doc/refman/5.0/en/regexp.html#operator_regexp On Jun 6, 1:24 pm, Ed Propsner crotchf...@gmail.com wrote: I found a usable solution, a bit exhaustive and long-winded perhaps, but usable nonetheless. I still need to put together a dynamic query and I'm finding myself avoiding

Re: Strange error after model save method

2010-06-07 Thread Ed Propsner
Are you using a custom Join statement in your query, particularly a RIGHT JOIN? On Mon, Jun 7, 2010 at 2:34 PM, Roland Pish rolandp...@gmail.com wrote: Hello. I was creating an add form for a model called Practitioner. Everything seems to work fine, after submitting the form changes are

Re: Strange error after model save method

2010-06-07 Thread Ed Propsner
Looks like Cricket knows what the deal is. I suggested the custom join because I messed one up once and it ended up looking for a column named 'right'. 8-) On Mon, Jun 7, 2010 at 3:30 PM, cricket zijn.digi...@gmail.com wrote: On Jun 7, 3:20 pm, Ed Propsner crotchf...@gmail.com wrote: Are you

Re: Stop Auth component from redirecting

2010-06-07 Thread Ed Propsner
If I'm following you correctly you could use $this-Auth-autoRedirect = false; On Mon, Jun 7, 2010 at 4:11 PM, junker37 junke...@gmail.com wrote: How can I stop the auth component from redirecting? Currently, when I make an ajax call, and the user isn't allowed to the requested action, cake

Re: Query question(s)

2010-06-06 Thread Ed Propsner
. There could be 20 choices or there could be 2. Every solution I'm coming up with is ridiculously excessive for something that should be so simple. I'm sure the answer is there, I'm just not familiar enough with Cake at this point to see it. - Ed On Sat, Jun 5, 2010 at 4:36 PM, Ed Propsner crotchf

Re: Query question(s)

2010-06-05 Thread Ed Propsner
for me to begin with 8-). Any suggestions are appreciated. Thanks. - Ed On Fri, Jun 4, 2010 at 11:54 PM, Ed Propsner crotchf...@gmail.com wrote: Thanks Calvin, point well taken. I'll just stick with GET like I always have for searches. I tweaked the routing and got things cleaned up a bit so

Query question(s)

2010-06-04 Thread Ed Propsner
I was checking out the book on complex queries and not really finding what I'm looking for. I'm trying to create a query that covers both a basic and advanced search. The form may be submitting all or just some of the options available on the page depending on what the user chooses. Once the

Re: Query question(s)

2010-06-04 Thread Ed Propsner
search result, which might be something like: http://yoursite.com/search/paegan+terrorism+tactics/f83e3a4b389c6b That will decrease your server load, allow you to use a POST form, and still allow the user to bookmark/link the search results (at least for a time). On Jun 4, 10:40 am, Ed

Re: Select options after validate are not displayed

2010-05-30 Thread Ed Propsner
Are you submitting the form to a different controller or action other than the one where you are setting your select values? - Ed On Sun, May 30, 2010 at 2:22 PM, Ziki zixw...@gmail.com wrote: I have that problem that after validation, when it is again diplayed my form with error messages,

Re: Select options after validate are not displayed

2010-05-30 Thread Ed Propsner
. On 30 svi, 21:27, Ed Propsner crotchf...@gmail.com wrote: Are you submitting the form to a different controller or action other than the one where you are setting your select values? - Ed On Sun, May 30, 2010 at 2:22 PM, Ziki zixw...@gmail.com wrote: I have that problem that after

Re: Cakephp Sample application

2010-05-29 Thread Ed Propsner
8-) On Sat, May 29, 2010 at 3:33 AM, John Andersen j.andersen...@gmail.comwrote: What version of CakePHP are you using? Version 1.1?? I have no idea whether the .thtml files are valid for CakePHP version 1.2.x or 1.3! Enjoy, John On May 29, 10:23 am, Gopinath T.M gopi4bre...@gmail.com

Re: Deep associations

2010-05-29 Thread Ed Propsner
By the looks of it you named your model correctly as Items but in your conditions your are referencing Item. To find count ... $this-Section-find('count' , array( 'conditions' = array( 'Items.user_id' = 1 )

Method :: Address does not exist

2010-05-28 Thread Ed Propsner
Anyone have an ideas where I should start looking for the cause of this warning: Method OnlineUsersHelper::address does not exist It's not set up any differently from the rest of my helpers. The function executes okay and returns the correct output, I just get the warning. - Ed Check out the

Re: Ajax problem ???

2010-05-27 Thread Ed Propsner
Propsner crotchf...@gmail.com wrote: I know it was grasping at straws but the switch to 1.3 stable didn't help. However now the console bakes empty models and terminates with a fatal error when baking controllers, 8-) On Tue, May 25, 2010 at 12:52 AM, Ed Propsner crotchf...@gmail.comwrote

Re: Auth Error

2010-05-27 Thread Ed Propsner
Just to be sure make sure your config for the Auth component in the AppController looks something like this: class AppController extends Controller { var $components = array('Auth'); } By the looks of it you may also want to change your security salt and cipherSeed in App/Config/Core.php I'm

Re: Auth Error

2010-05-27 Thread Ed Propsner
days hehe 2010/5/27 Ed Propsner crotchf...@gmail.com Just to be sure make sure your config for the Auth component in the AppController looks something like this: class AppController extends Controller { var $components = array('Auth'); } By the looks of it you may also want to change your

Re: Auth Error

2010-05-27 Thread Ed Propsner
will be saved how it will be ecoded? thanks 2010/5/28 Ed Propsner crotchf...@gmail.com First and foremost make sure that you actually have a controller named users_controller.php in your app/controllers dir On Thu, May 27, 2010 at 5:59 PM, Davor Ilic webfa...@gmail.com wrote: The Security i had

Re: how i apply css on $html-link

2010-05-26 Thread Ed Propsner
I would use: $html-div('current', $html-link('Add', array( 'controller' = $this-params['controller'], 'action'='view' ) ) ); - Ed On Wed, May 26, 2010 at 2:41 AM, Dilip Godhani dilip.godh...@gmail.comwrote: Can any One hellp How i

Re: 404 error since updating to 1.3

2010-05-26 Thread Ed Propsner
I just updated to 1.3 stable from RC4 yesterday and I've been having the same exact problem (amongst a few others) ever since. I have to toy with it some more but it seems to only happen when passing data into the controller action. As soon as the action sees $this-data it dies. Even

Re: how i apply css on $html-link

2010-05-26 Thread Ed Propsner
John is correct, I've used it both ways I'm just a bit partial to divs. I've also defined css rules inline using 'style' = but I rarely use that method. - Ed On Wed, May 26, 2010 at 5:12 AM, John Andersen j.andersen...@gmail.comwrote: As written in the CakePHP book at:

Re: 404 error since updating to 1.3

2010-05-26 Thread Ed Propsner
SecurityComponent? On 26 Mag, 16:05, Ernesto e.fanz...@gmail.com wrote: same problem here. rolled back to RC4 :) On 26 Mag, 12:24, Ed Propsner crotchf...@gmail.com wrote: I just updated to 1.3 stable from RC4 yesterday and I've been having the same exact problem (amongst a few

Re: 404 error since updating to 1.3

2010-05-26 Thread Ed Propsner
The security component was indeed the problem (404 error should have been a huge clue). I was confident that I had my restrictions set up correctly in beforeFilter(). On Wed, May 26, 2010 at 3:38 PM, Ed Propsner crotchf...@gmail.com wrote: @Ernesto: Interesting, the only two controllers

Re: Ajax problem ???

2010-05-25 Thread Ed Propsner
I know it was grasping at straws but the switch to 1.3 stable didn't help. However now the console bakes empty models and terminates with a fatal error when baking controllers, 8-) On Tue, May 25, 2010 at 12:52 AM, Ed Propsner crotchf...@gmail.com wrote: just wondering, I'm still on RC4

  1   2   3   >