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 failing

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 sites

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 availabl

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 wrote: > Whats wrong with using the

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 eve

Re: Defining Plugin

2013-10-28 Thread Ed Propsner
ill have something out of wack, I just don't know what or where but I haven't stopped looking. Also, 99% of the time Cake screws up it was completely my fault, the other 1% of the time it's not my fault at all but I naturally assume that it was :) So yes, I still think I have something boo

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 wrote: > You're absolutely right, I was definitely confusing the two. I suppose > that I'm so used to referencing the plugin as camel-c

Re: Defining Plugin

2013-10-27 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 m

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 b

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 wro

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 wrote: > User setter/getter combinational methods is pretty dangerous IMO :) > Especially with a typo-unsafe language as PHP and multip

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 usually

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 cake

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 of

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 pa

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 error.

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 wrote: > well, probably it's the > > 'name' => 'name' // Saves the file in database with actual name of > uploaded file > > line. :) i would strip down

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 seeing

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 la

Re: Where to start?

2012-04-11 Thread Ed Propsner
ct(CakeRequest) { > params => array( > ) > data => array() > query => array() > url => 'post/helloworld' > base => '/tut_blog' > webroot => '/tut_blog/' > here => '/t

Re: Where to start?

2012-04-11 Thread Ed Propsner
blem is somewhere in webroot/index file .Do i need >>> to change that.I changed the name of file which i had named exactly in same >>> way which i saw on youtube. >>> >>> >>> On Wed, Apr 11, 2012 at 5:05 PM, Ed Propsner wrote: >>> >>>&g

Re: Where to start?

2012-04-11 Thread Ed Propsner
>> change that.I changed the name of file which i had named exactly in same >> way which i saw on youtube. >> >> >> On Wed, Apr 11, 2012 at 5:05 PM, Ed Propsner wrote: >> >>> I would recommend that the site where you get your "cakephp lesson" f

Re: Where to start?

2012-04-11 Thread Ed Propsner
again. http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html On Wed, Apr 11, 2012 at 6:37 AM, INTERNET DATA CENTRE wrote: > 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. > > >

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 wrote: > do you mean to say file name > file name Posts_controller > code > class PostsController extends AppController { > v

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 can'

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] Form->create(false);?> Form->input('date', array( 'label' =

@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
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 wrote: > https://gist.github.com/1361982 > > -- > Our newest site for the community: CakePHP Video T

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.

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 wrote: > I have a table named "userinformations ". I want to use "emaili

Re: Facebook authentication

2011-10-12 Thread Ed Propsner
ogin_url = $this->facebook->getLoginUrl(array( >'scope' => 'publish_stream', > 'redirect_uri' => ' > http://localhost/to_do_list/users/index')); > echo " ty

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 wrote: > I'm new to all of this, php/cakephp/facebook. I'm trying to create a > facebo

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 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 wrote: > > oop

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

Re: Loading Classes

2011-10-11 Thread Ed Propsner
DK from within your > bootstrap.php. > > Also this: $this->facebook = new Facebook(); Should be done in the > controllers beforeFilter(). > > On Oct 11, 5:44 am, Ed Propsner wrote: > > Thanks for the response Carlo, > > > > Loading the class in the bootstrap

Re: Loading Classes

2011-10-11 Thread Ed Propsner
->facebook->etc->etc throughout my entire app. Was I doing it wrong then or am I doing it wrong now? 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,

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 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 every f

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, wrote: > Today's To

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 wh

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 appea

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 wrote: > and now has a 500 - internal error :) > > > On 3 Feb., 13:11, Graham Weldon wrote: > > The CakePHP Book[1] has undergone a major facelift and incorporates a > > whole range of changes t

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 wrote: > I knew the solution was probably an obvious one. I know it may be bad > practi

Re: How much is too much?

2011-02-02 Thread Ed Propsner
data, it > grabs from the cache instead of the DB. > > On Feb 2, 7:41 am, Ed Propsner 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 > &g

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 wrote: > A hidden field could accomplish exactly what you are looking to do. > > $form->input('User.user_id', array('type

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 wrot

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 for

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 a

Re: Email Component

2010-07-21 Thread Ed Propsner
lowercase) // 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 wrote: > I recently changed names on one of my sites and

Re: Email Component

2010-07-20 Thread Ed Propsner
th Email component? if I > can send mail with mail() I can send with the component :S > > 2010/7/20 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 e

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 overl

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 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 are subscribed t

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. I'

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 wrote: > Google php date formats and replace it. > > > > On 6/21/10, Dilip Godhani

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 wrote: > Hi.. > > i have table name called: "promoter_interest_hobbies" > > i used the module name: "PromoterInterestHobbies" >

Re: Address not found

2010-06-20 Thread Ed Propsner
gs to do and not to do when moving my app to a production environment? On Sun, Jun 20, 2010 at 5:45 PM, euromark wrote: > what does it say if you set debug > 0 ? > usually that should always be your first step - because the error > messages will be much more detailed > > > On 2

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: 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 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 message becau

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 wrote: > > I removed the model name (Search) from the field(s) and the result was > the > > same ... minus [

Re: Format Array

2010-06-16 Thread Ed Propsner
g Ajax) only > contain the form field without having a form create and end? > What does the HTML look like, when the region is first populated after > you choose a country? Is it defined as: > [code] > ... name="data[Search][region]" ... > [/code] > > You have to

Re: Format Array

2010-06-16 Thread Ed Propsner
Search][region]= is throwing it off especially if the user sorts the data and the url switches back to "region=" as it was originally intended. I feel like this didn't help any 8-), let me know if I'm still being too vague. - Ed On Wed, Jun 16, 2010 at 3:03 AM, John Andersen wro

Re: Format Array

2010-06-15 Thread Ed Propsner
e to do is have $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 wrote: > I have a dropdown in one of my searches that is populated via ajax. &g

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: Validation - Multiple attempts

2010-06-13 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,

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 wrote: > > Hi all > > I wonder to know if any of you knows how to remove the cakephp references >

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 d

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 Even though in the end I ended up not using it I was able to paginate a custom query working from the e

Re: Sub-query, paginate, containable

2010-06-11 Thread Ed Propsner
On Fri, Jun 11, 2010 at 8:42 PM, Ed Propsner 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')

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' => array('Friend.fr

Re: Missing Database Table error

2010-06-11 Thread Ed Propsner
All of my underscored table names work just fine, but this is something I wonder about: If both parts of the underscored table name are plural (users_votes) .. would the model be UsersVote or UserVote. Do both parts get singularized? In any case, your issue still seems to be with naming conventio

Re: Query question(s)

2010-06-10 Thread Ed Propsner
user, > thus allowing the user to go back to previous results. > > Hope the above explanation is usefull to you :) > Enjoy, > John > > > On Jun 10, 10:04 am, Ed Propsner wrote: > [snip part for Calvin] > > @John: > > > > Are you using the db to cache yo

Re: Query question(s)

2010-06-10 Thread Ed Propsner
x27; => $orientation, 'User.gender' => $gender, 'User.age BETWEEN ? AND ?' => array($minAge, $maxAge), 'User.country' => $country, 'User.region' => $region ), @John: Are you using the db to cache your search results on the server side

Re: Query question(s)

2010-06-09 Thread Ed Propsner
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 wrote: > > @Calvin: &

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 wrote: > Hi all, > > I'm following the basic cakephp Blog example, here is my code: > > posts_controller.php > class PostsController extends AppController > { >var $name = 'Posts'; >var $u

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-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: 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 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 redirects to th

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 wrote: > On Jun 7, 3:20 pm, Ed Propsner wrote: > > Are you using a custom Joi

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 wrote: > Hello. > I was creating an "add" form for a model called Practitioner. > Everything seems to work fine, after submitting the form changes are > saved successfully

Re: Query question(s)

2010-06-07 Thread Ed Propsner
o change from mySite/thisIsMyPage to my-site/this-is-my-page. - Ed On Mon, Jun 7, 2010 at 11:55 AM, calvin wrote: > If all of your search options are OR conditions, then you could > theoretically do something like this: > SELECT ... WHERE contents REGEXP '(opt1|opt2|opt3|opt4|opt5|opt6)&#

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

Re: Query question(s)

2010-06-05 Thread Ed Propsner
d containable with this query as well as a bunch of other conditions (with a set value) and I'm confusing myself more than anything else which isn't a real stretch for me to begin with 8-). Any suggestions are appreciated. Thanks. - Ed On Fri, Jun 4, 2010 at 11:54 PM, Ed Propsner wrote:

Re: Query question(s)

2010-06-04 Thread Ed Propsner
e3a4b389c6b > > 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 Propsner wrote: > > I was checking out the book on complex queries and not re

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 form

Re: Select options after validate are not displayed

2010-05-30 Thread Ed Propsner
0 svi, 21:27, Ed Propsner 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 wrote: > > > I have t

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 wrote: > I have that problem that after validation, when it is again diplayed > my form with error messages, there are no optio

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 )

Re: Cakephp Sample application

2010-05-29 Thread Ed Propsner
8-) On Sat, May 29, 2010 at 3:33 AM, John Andersen wrote: > 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" wrote: > > Actually i did a sampl

Method :: Address does not exist

2010-05-27 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 n

Re: Auth Error

2010-05-27 Thread Ed Propsner
w the password will be saved how it will be ecoded? > > thanks > > 2010/5/28 Ed Propsner > > 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

Re: Auth Error

2010-05-27 Thread Ed Propsner
have to wait many days hehe > > 2010/5/27 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&

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 no

Re: Ajax problem ???

2010-05-27 Thread Ed Propsner
at 1:33 PM, Ed Propsner 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

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 wrote: > @Ernesto: >> Interesting, the only two controllers that are

Re: 404 error since updating to 1.3

2010-05-26 Thread Ed Propsner
Component? > > On 26 Mag, 16:05, Ernesto wrote: > > same problem here. > > > > rolled back to RC4 :) > > > > On 26 Mag, 12:24, Ed Propsner wrote: > > > > > > > > > I just updated to 1.3 stable from RC4 yesterday and I've been having

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 wrote: > As written in the CakePHP book at: > > http://book.cakephp.org/view/1435/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 debug($this-

  1   2   3   >