Re: cakephp3 errors..... after edit db info

2015-06-30 Thread Eric Haskins
Yeah I have dedicated servers so not run by GoDaddy let me know. Since I host many sites I am looking into having php 5.5 and php 5.4 for some our hosting customers. I see no issues with cakephp 3 and 5.5 . so maybe they need to change minimum requirements -- Like Us on FaceBook

Re: cakephp3 errors..... after edit db info

2015-06-29 Thread Eric Haskins
::config(['a']); Results in this error: *Fatal error*: Call to undefined method Bar::_config() in */home/farsight/public_html/cake3/webroot/index.php* on line *19* PHP Version 5.4.41 CPanel Server On Sunday, June 28, 2015 at 7:52:59 PM UTC-4, Eric Haskins wrote: Hey All So Im trying

cakephp3 errors..... after edit db info

2015-06-28 Thread Eric Haskins
Hey All So Im trying to get version 3 running. Aside from not liking the composer BS Im having a issue with initial install and setup. I get it running at http://cake3.farsightedmedia.com on the initial setup and works fine as soon as I change the DB credentials //'port' =

file upload

2014-07-23 Thread Eric Yullu
created an application that is utlizing file upload, but when i click download button i get error, media.ctp not found -- 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

Pagination Sort, Resetting Data

2014-02-27 Thread Eric Chan
Hello, I just starting baking with CakePHP and I'm slowly grasping the basics. So far I've created a view to display all the data in table format from a table in the database with pagination. There is a column in the table that contains browser information (Firefox, Chrome, Safari...etc). So

Re: how to get cache file name in arabic language

2013-09-27 Thread Eric Haskins
That is going to be tied to the OS the files are on. Most Linux webservers won't support that charset. You will need to come up with another way Eric On Thursday, September 26, 2013 7:50:57 AM UTC-4, Mokdij wrote: I am developing a website in Arabic language, i need to use a slug in Arabic

Re: hasMany weirdness

2013-09-15 Thread Eric Haskins
with joins using $this-PlayersToSeasons-query() and the problem is gone. I know that will send some Framework nazi's into committing suicide but you do what you have to to make your app work. Till I can sort out why cake is hanging me out to dry lol Eric Haskins High Octane Brands LLC

Re: hasMany weirdness

2013-09-13 Thread Eric Haskins
2013 01:58:43 UTC+3, Eric Haskins wrote: Has anyone else seen where hasMany returns empty arrays's? Example Players player_id Seasons season_id Divisions division_id PlayersToSeasons - hasMany Players, Seasons, Divisions, id season_id player_id division_id So many

hasMany weirdness

2013-09-12 Thread Eric Haskins
Has anyone else seen where hasMany returns empty arrays's? Example Players player_id Seasons season_id Divisions division_id PlayersToSeasons - hasMany Players, Seasons, Divisions, id season_id player_id division_id So many will come back perfect out of 300 players maybe 20 records

Re: Where are the sites?

2013-08-18 Thread Eric Haskins
Dave, I have some Open-Source but I have some proprietary stuff I am developing mainly in the SaaS market with CakePHP I would love to share but then I lose my companies edge. Eric Haskins http://highoctanebrands.com -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us

Re: live validation

2013-08-18 Thread Eric Haskins
So when your server side validation fails the email for the same reason as the Live version Dave it some how doesnt expose the users?? I see you post over and over and Im not sure you have thought out your argument Eric Haskins On Friday, August 16, 2013 7:00:34 PM UTC-4, advantage

Re: Data validation: Client or Server?

2013-08-16 Thread Eric Haskins
We always use both if not both server-side Eric Haskins High Octane Brands http://highoctanebrands.com On Friday, August 16, 2013 7:32:29 AM UTC-4, jer...@anthemwebsolutions.com wrote: I wanted to get some opinions on this. Cake's validation structure is easy to apply and works

Re: Data validation: Client or Server?

2013-08-16 Thread Eric Haskins
). I still see some good bots getting thru but we also store Render time and Submit time which cleaned out a bunch more. Its fun :-) Eric Haskins High Octane Brands http://highoctanebrands.com On Friday, August 16, 2013 9:59:30 PM UTC-4, advantage+ wrote: Good stuff, but just think about

Re: install cakephp with on a sub-domain

2013-08-16 Thread Eric Haskins
directory. If you have full control of the server I would put in its own account or docroot anyway I hate nested sites. I do this for my hosting customers all the time Eric Haskins High Octane Brands http://highoctanebrands.com On Friday, August 9, 2013 11:20:59 AM UTC-4, gannher wrote: I

loginError Element

2013-08-15 Thread Eric Haskins
Afternoon all, I am having an issue with the Auth Component. I set 'flash' = array('key'='auth','element'='alerts/error'), in my Auth config in appcontroller. Permission errors work fine but invalid login is still using default element. Am I missing something somewhere? 'Auth' =

CakePHP 2.x Date Field Helper set year?

2013-08-07 Thread Eric Haskins
Hey everyone quick question. I have an app and Im having issues with Users setting birthdates to 2013-12-13 as an example. I know I should have a validator to make sure it isnt a future date but is there a way to seed the start year say 4 years ago? -- Like Us on FaceBook

Re: Cache Help

2013-08-01 Thread Eric Haskins
someone please feel free to point it out Eric Haskins High Octane Brands LLC Building Brands Not Just Business -- 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

2.3 Checkbox validation

2013-07-30 Thread Eric Haskins
Ok I must be doing something wrong on my checkbox validation because its always invalid Snip of validation: 'agever' = array( 'notEmpty' = array( 'rule' = array('equalTo', 'yes'), 'required' = true, 'message' = 'We require you to be over 13 to register without a Parent.' ) ),

Re: Salesforce Integration

2013-07-06 Thread Eric Haskins
Custom Auth? Im not familiar with the Salesforce API if I have some free time this weekend I will try and have a look Eric Haskins High Octane Brands On Friday, June 28, 2013 6:29:59 PM UTC-4, chris graber wrote: Anyone integrate with Salesforce? I'm trying out several things (PHP Toolkit

Re: redirect images url from live javascript

2013-07-06 Thread Eric Haskins
Trying to dechiper the question but I think he is getting the img tags via Ajax to render on his site. Can you give us the code you use to request said images and maybe we can give you some direction or js code to help you Eric On Thursday, July 4, 2013 2:46:18 AM UTC-4, baur79 wrote: hi

Re: redirect images url from live javascript

2013-07-06 Thread Eric Haskins
/); alert(imgtag); /script Handles the url change. You need to also download the images or do you have them?? Eric On Thursday, July 4, 2013 2:46:18 AM UTC-4, baur79 wrote: hi, i have use the 3rd party jquery ajax javascript it returns me the live code which contain img tags as img scr

Re: Disable pagination in one action

2013-07-04 Thread Eric Haskins
I agree with AD7six why would you need to disable instead of $news = $this-paginate('News'); do this and no paginator $news = $this-News-find('all'); -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because

Re: unlink()

2013-06-21 Thread Eric Haskins
That looks like your host has disabled the unlink command Eric High Octane Brands On Friday, June 21, 2013 8:00:06 AM UTC-4, raj kumar Pustela wrote: Hi to all, how to resolve below this one.. If you know any one Please help me. Warning: unlink() has been disabled for security reasons

requestAction and Auth issues

2013-06-21 Thread Eric Haskins
,'sort'='desc'))); will result in a Your Not Authorized To View This redirect to login Im stumped should I move my auth to a different location than beforeFilter in appcontroller? Eric -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com

Re: requestAction and Auth issues

2013-06-21 Thread Eric Haskins
Yes it is an element On Friday, June 21, 2013 2:23:34 PM UTC-4, euromark wrote: where do you run this statement? in the view ctp? Am Freitag, 21. Juni 2013 18:31:07 UTC+2 schrieb Eric Haskins: Hey All, I am running cakePhp latest and I just ran into an issue with requestAction

Re: Cakephp Manual Auth login returns true, but not logged in another page

2013-06-21 Thread Eric Haskins
Where do you have your auth stuff setup in appcontroller beforeFilter? if so make sure the controllers extending AppController have public function beforeFilter() { parent::beforeFilter(); } I had a similar issue with logins not persisting Eric On Thursday, June 20, 2013 6:37:44 PM

Re: One page with Search/Edit/Add and Delete Buttons

2013-06-20 Thread Eric Haskins
/td /tr ?php } ? The delete button would then post to the delete() function in the controller etc Eric On Thursday, June 20, 2013 8:04:03 AM UTC-4, Mahdi Miad wrote: Hi all, I am new

Re: Can anyone help me with editing post_tags ???

2013-06-19 Thread Eric Haskins
What are you trying to do?? Example code? Eric On Wednesday, June 19, 2013 4:55:49 AM UTC-4, Lilit Bakunts wrote: -- View this message in context: http://cakephp.1045679.n5.nabble.com/Can-anyone-help-me-with-editing-post-tags-tp5715315.html Sent from the CakePHP mailing list

Re: Switch validation set within model?

2013-06-18 Thread Eric Haskins
right or proper (still new to cake) Eric On Thursday, June 13, 2013 2:55:08 AM UTC-4, LDSign wrote: Hi I would liket to switch a complete validation set for a model (in the controller). Deeper levels of the application requires more and more user data, so I had the idea to define

Re: How to edit a view in Cake php

2013-06-18 Thread Eric Haskins
Do you have a Customers Model? I have models for all of my tables On Monday, June 17, 2013 5:38:40 PM UTC-4, Raks wrote: Returns an Error {code:500,url:\/products\/listing_data.json,name:Call to a member function find() on a non-object} On Mon, Jun 17, 2013 at 1:26 PM, Gaurav Matta

Re: login error

2013-06-18 Thread Eric Haskins
Tiago, We are going to need a bit more to go on. can you post your Candidatos controller and model? Eric High Octane Brands On Monday, June 17, 2013 3:51:02 PM UTC-4, Tiago Cosme wrote: friends, I have a problem in cakephp. Simply my application stopped working basic requirements

Re: Error: Mysql requires a database connection

2013-06-18 Thread Eric Haskins
Raxit, Did you edit the settings to match your User and password for your Mysql instance? Mysql is running? Eric On Tuesday, June 18, 2013 12:28:00 PM UTC-4, Raxit wrote: Hi raj kumar, I have added database.php file with same content under config folder still it gives same error. I am

SaaS and AppController

2013-06-17 Thread Eric Haskins
etc. Thx Eric -- 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 receiving emails from it, send an email

Re: Unable to send mail from cakephp to CentOs (Postfic/DovCot).

2013-06-17 Thread Eric Haskins
customers set to default of no more than 1000 emails an hour. Eric On Thursday, June 13, 2013 5:28:17 AM UTC-4, Snehal Savaliya wrote: Hello, I am trying to send mail from cakephp site to CentOs (Postfic/DovCot). But I can able to only send that mail to 950 users. but above that I can not able

Re: How to edit a view in Cake php

2013-06-17 Thread Eric Haskins
( 'CustomerJoin.customer_id = ProductFamily.customer_id' ) ) ))); Again I dont know the code before or your table names Eric On Monday, June 17, 2013 1:37:38 PM UTC-4, Raks wrote: Have added a new Column... but m not able to get a column data from other model. I want

Re: SaaS and AppController

2013-06-17 Thread Eric Haskins
Thx AD I didnt realize the placeholders I had in the layout were the culprit Eric On Monday, June 17, 2013 9:19:31 AM UTC-4, AD7six wrote: On Monday, 17 June 2013 14:53:26 UTC+2, Eric Haskins wrote: I have an app I am working on and I was wondering if this is the designed

Re: where to make changes

2013-06-08 Thread Eric Haskins
Raks, /app/View/{controller}/{action}.ctp you really should read the book http://book.cakephp.org/2.0/en/index.html Eric On Friday, June 7, 2013 1:21:43 PM UTC-4, Raks wrote: Hi, Actually I have some code available with me in Cakephp, with model, view and controller. I need

Using Roles and RolesUser

2013-06-07 Thread Eric Haskins
Hello Everyone, Im sorry if this was posted previously I did an exhaustive search but im still lost. I am working on a SaaS app that allows a couple of our domains to utilize the same codebase and I have come upon an issue with my 1 User to Many Roles. Im using cakePHP 2.3 I use 2

Re: Using Roles and RolesUser

2013-06-07 Thread Eric Haskins
Ok I found my answer before this question cleared moderation. public $hasAndBelongsToMany = array( 'Role' = array( 'className' = 'Role', 'joinTable' = 'roles_users', 'foreignKey' = 'user_id', 'assosciationForeignKey' = 'role_id', 'unique' = 'keepExisting' ) );

Re: Problem with CakePlugin on shared server

2012-01-27 Thread Eric
cleared the cache earlier too. It had no effect then. /Eric On Jan 26, 7:00 pm, y2k_2000 y2k2...@gmail.com wrote: This is a bug on Core/App.php, caused by a missing `Plugin` key on the paths array on `file_map` cache. To fix it, just find this line on App.php (line 547): self::_map($file

Re: Problem with CakePlugin on shared server

2012-01-27 Thread Eric
, but slightly persistent. My money is still on the class loader searching outside the app root for some reason. Since the error is intermittent, it's rather difficult to trace the problem in the code. Has this been reported as a bug (haven't found it), or should I do that? /Eric On Jan 27, 10:45 am

Problem with CakePlugin on shared server

2012-01-26 Thread Eric
Hi! I have several CakePHP installations on a server, two of them are 2.0 (recent installs). I now notice that the 2.0 installations seem to collide with eachother. Occationally when loading a page I get this error message: Fatal error: Uncaught exception 'MissingPluginException' with message

Re: Problem with CakePlugin on shared server

2012-01-26 Thread Eric
Ubuntu 11.10 here. On Jan 26, 2:14 pm, Jon Price jonpr...@donet.com wrote: Interesting..I've seen this as well but rareand thought I had misconfigured something. They are 2.0.x installs on a debian style linux. On Thu, Jan 26, 2012 at 4:38 AM, Eric eric.karls...@gmail.com wrote

XML-serialize() with CDATA?

2011-12-08 Thread Eric Blanpied
, and while I can see that there's support in the XML class, I can't for the life of me figure out how to make it do that. Can someone provide some guidance? thanks! -eric -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

ACL Helper?

2011-11-05 Thread Eric Blanpied
Hello, I'm trying to work out a good system to get at ACL data in my views, and while the net list archives have a handful of tips and partial solutions, I haven't found anything conclusively helpful. The most promising approaches I've seen add code to the login function to compile a list of

Re: Run a cron job in cakephp

2011-11-04 Thread Eric Blanpied
I think the best way to do it is with a queue. After doing several websites in which cron jobs were used for various not-so-cron things (cron job to wake up periodically and check for needed tasks? why not just spawn the tasks?), I came to the conclusion that a job queue was a much smarter answer.

Re: Run a cron job in cakephp

2011-11-04 Thread Eric Blanpied
werne...@gmail.com On Fri, Nov 4, 2011 at 06:16, Eric Blanpied sparkal...@gmail.com wrote: I think the best way to do it is with a queue. After doing several websites in which cron jobs were used for various not-so-cron things (cron job to wake up periodically and check for needed tasks? why

Re: Going back to school: ACL

2011-10-30 Thread Eric Blanpied
of access control. Thanks, everyone! -eric On Fri, Oct 28, 2011 at 11:08 AM, alaxos ala...@gmail.com wrote: Hi Jeremy, As far as I know, the core ACL does not support multiple groups per user. Before using ACL, I used myself a home made component that allowed to grant/deny access based

Re: jquery autoComplete in cakephp 1.3

2011-10-11 Thread Eric Blanpied
I've found it quite easy with jquery UI. Something like this ought to work in your .ctp file. Where #UserName is your field's id, and $usernames is the list of choices. If you want your autocomplete to do server-side lookup, check the jquery UI docs. script type=text/javascript

Persson Queue Plugin - job progress inspection

2011-09-04 Thread Eric Blanpied
hard it would be to add Gearman support to the Queue plugin? thanks -eric -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe

Subclassing one's own Controllers

2011-08-18 Thread Eric Blanpied
, but when I try that in cake (1.3) I get a class-not-found error. I've seen some discussion of using behaviors for this, but that seems contrary to this setup, where the main controller has a model, plenty of views, methods, etc. Advice? thanks -eric -- Our newest site for the community

Re: Subclassing one's own Controllers

2011-08-18 Thread Eric Blanpied
. /2pence Advice? thanks -eric -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send

Re: How do you do it?

2011-04-18 Thread Eric Anderson
I've always thought about that same issue. I think there's some good JQuery / Ajax image upload and cropping plugins. On a basic level, I'd probably allow an upload then refresh the same page after the successful upload. On reload, the page would be in the editing state, so instead of just

Custom Order by

2011-03-06 Thread Eric Anderson
Hi everyone, I was wondering if you could help me with this strange ordering issue. I have a list of posts and I want to order them by date created, however, I want to have featured posts show up in the list BEFORE the unfeatured posts. Essentially, it would be any post that is featured, ordered

How to properly use conditions in model associations

2011-03-02 Thread Eric Anderson
Hi everyone, I'm wondering what is the 'proper' or 'suggested' way of using conditions in model associations. I'm using an Activity model to log activities performed throughout my app. I then use this table to output activity feed / notifications style sections to users. The problem I'm having is

Re: How to properly use conditions in model associations

2011-03-02 Thread Eric Anderson
@googlegroups.com] On Behalf Of Eric Anderson Sent: Wednesday, March 02, 2011 3:57 PM To: CakePHP Subject: How to properly use conditions in model associations Hi everyone, I'm wondering what is the 'proper' or 'suggested' way of using conditions in model associations. I'm using

Fat Models vs. App Controller

2011-02-26 Thread Eric Anderson
save an activity, feeding it arguments (as well as delete an activity). Moreover, I need to often grab a feed, customized based on the arguments I feed it. I'm trying to avoid using RequestAction. Thanks! Eric -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Fat Models vs. App Controller

2011-02-26 Thread Eric Anderson
, save data, etc by calling the function through related models. As for libs, what do you mean? I can create a library for these functions? Can you explain further? Thanks! Eric On Feb 26, 4:39 pm, euromark dereurom...@googlemail.com wrote: usually you would put functions you use in multiple

Re: Fat Models vs. App Controller

2011-02-26 Thread Eric Anderson
Awesome article. Thanks! I think I'm going to move everything over to my model, via either an available function I can then call from other controllers or place the function in beforeSave, afterSave, etc. Should work great. Eric On Feb 26, 5:59 pm, Sam Sherlock sam.sherl...@gmail.com wrote

Component or Behavior?

2011-01-09 Thread Eric Anderson
Hi everyone, I'm creating an app and have a situation where after an event occurs, I need to save data in many different models. Essentially, when a competition ends, I need to save the winner, award points to everyone who entered the competition and as well as award credits. Essentially, I end

Js (Jquery) Helper Append Instead of Update

2011-01-02 Thread Eric Anderson
at the jquery_engine.php helper class and it doesn't seem to be built, but are there any other ways around this? Thanks, Eric 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

Re: Js (Jquery) Helper Append Instead of Update

2011-01-02 Thread Eric Anderson
, Eric Anderson andersoneric...@gmail.com wrote: Hi, Does anyone know how to position the insertion of a returned HTML from an AJAX request using the Js helper (JQuery) ? I know there is an 'update' option, however there are times when I need append, replace, etc instead of just updating

Js (Jquery) Helper Confirm before Request

2010-12-30 Thread Eric Anderson
sending the request AND if cancel is clicked, the request is NOT sent. Any ideas? Thanks! Eric 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

Re: Js (Jquery) Helper Confirm before Request

2010-12-30 Thread Eric Anderson
zijn.digi...@gmail.com wrote: On Thu, Dec 30, 2010 at 4:35 PM, Eric Anderson andersoneric...@gmail.com wrote: Hi everyone, I'm trying to use the Js Helper (JQuery) to create a request link that when clicked, confirms before sending the request. If cancel in the dialog is clicked

CakePHP has it's own domain, but placed in a subfolder

2010-10-16 Thread Eric Anderson
in a subfolder if the subfolder has its own domain pointing to it. When trying to access the domain however, I receive Internal Server Error (500). Are there amendments I need to make to my htacces if my app is in a subfolder, but still has its own domain? Thanks, Eric Check out the new CakePHP

Re: CakePHP has it's own domain, but placed in a subfolder

2010-10-16 Thread Eric Anderson
server doesn't support apache module mod_rewrite check this :D -- Tilen Majerlehttp://majerle.eu 2010/10/16 Eric Anderson andersoneric...@gmail.com Hi guys, I've done some searching but haven't found a direct answer to this question. I'm pointing a domain of mine to a subfolder

Re: CakePHP has it's own domain, but placed in a subfolder

2010-10-16 Thread Eric Anderson
2010/10/16 Eric Anderson andersoneric...@gmail.com It does though, as I'm using it to manage a WordPress install in the root as well as another Cake app in a subfolder (without it's own domain, it's being accessed via domain.com/subfolder). On Oct 16, 2:35 pm, Tilen Majerle tilen.maje

CakeDC Ratings Plugin

2010-09-26 Thread Eric Anderson
/ratings/views/helpers/ rating.php on line 20 For some reason the helper cannot find the Html helper which it extends. Does anyone have any insight on how to fix this? Thanks! Eric Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

Re: CakeDC Ratings Plugin

2010-09-26 Thread Eric Anderson
'], 'createForm' = array('url' = array($this-passedArgs, 'rate' = $item['id'], 'redirect' = true; I'm trying to allow rating of entries in my post model. Do I need to change the $item['rating'] to something else? Eric On Sep 26, 8:22 pm, Eric Anderson andersoneric

Re: How to handle multiple user types

2010-05-14 Thread Eric Anderson
I have a parties table as well. On May 14, 3:17 am, Zaky Katalan-Ezra procsh...@gmail.com wrote: What is the other tables? Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. You received this message because you are subscribed to

How to handle multiple user types

2010-05-13 Thread Eric Anderson
Hi everyone, I'm just curious how everyone else out there handles different user types when they have different data associated with them? I have a system that has guests, members and hosts. Each user type has many different fields associated with them. Currently I handle it by having a main

AJAX Pagination for more commments style functionality

2010-05-02 Thread Eric Anderson
! Eric 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 To unsubscribe from

Re: Calling actions inside a controller

2010-04-26 Thread Eric Anderson
Thank you both so much! I really appreciate it. Eric On Apr 26, 1:06 am, Jeremy Burns jeremybu...@me.com wrote: Good point.. As far as I know, the key difference is: $this-functionName() is used to call another function that ought to return a value back to the calling function

Calling actions inside a controller

2010-04-25 Thread Eric Anderson
just need to call one controller action inside of another. I know it's simple, but I can't seem to figure it out. Thanks! Eric 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

Re: Simple Acl controlled Application Tutorial - Problem with release 1.2.5??

2009-09-30 Thread Eric
for edit [28] = Created Aco node for delete ) After this I get some errors about not having a view for this controller, but I think that is expected. Hopefully this helps... Eric On Sep 29, 9:10 am, robmcvey robmc...@gmail.com wrote: We aregoing through the Simple Acl controlled Application

Re: Session/Cookie problem with Facebook JS + PHP

2009-07-27 Thread Eric
Just as a followup, I have had no side effects using localhost.com ... and it definitely did not work using localhost On Jul 21, 7:10 am, rchavik rcha...@gmail.com wrote: I agree. A better way would be to stage your application with myapp.com (or whatever name you want), and set that in your

Re: Cache not configured properly

2009-07-27 Thread Eric
Thanks - memcached was not installed correctly. So it was defaulting back to file caching? I didn't realize you can cache an individual variable with file caching like that. With no load on the server, it was just as fast. On Jul 26, 12:04 pm, euromark (munich) dereurom...@googlemail.com wrote:

Re: Cache not configured properly

2009-07-25 Thread Eric
Turns out it is actually working, but I'd still like to fix the error msg for debug mode if possible. On Jul 25, 11:35 pm, eric.winch...@gmail.com eric.winch...@gmail.com wrote: Warning (512): Cache not configured properly. Please check Cache::config(); in APP/config/core.php

Re: $ajax-form - NOT WORKING!!!!! ARGHHHH

2009-07-22 Thread Eric Silva
you called the prototype.js? -- Eric Silva On Wed, Jul 22, 2009 at 10:24 PM, Davidd...@kabaddle.com wrote: Hello, I am trying to work with ajax helper to do a comments form on a test blog system. I am fairly new...but have managed to pick most things up...but this is doing my head

Re: Cake function that does Model.Field to $array[Model][Field]

2009-06-26 Thread Eric Silva
$array[Model][*f*ield] ?? -- Eric Silva On Fri, Jun 26, 2009 at 8:37 AM, Ernesto e.fanz...@gmail.com wrote: Hello i can't find the CakePHP's built-in function that does Model.Field to $array[Model][Field] i'll use that function in a Helper. is that correct? better ideas

Re: Database design

2009-05-27 Thread Eric Silva
First, sorry my bad English... Well, you could have a field type that reference the entity that has the commentary. Pattern Single Table. Braindead wrote: Well, my problem is not directly related to CakePHP, but as it's about database design maybe I'll get some good answers. On my page I

Re: Validation messages and redirect issue

2009-05-04 Thread Eric Martin
and grab whatever errors are present. Use die(debug($this-User-validationErrors)) in your action to see how its laid out. Does that make sense? On Mon, May 4, 2009 at 1:07 AM, Eric Martin emarti...@gmail.com wrote: I'm having a problem getting validation messages to show up for a register

Acl example help.

2009-01-12 Thread Eric
I just installed cakePHP 1.2, I am at step 10.2.6 in the Example Applications section of the manual. I have added the buildAcl() function to the app_controller.php file, but how do I run the function? I have tried several methods, but keep getting errors. Any help is appreciated. Thanks...

Scaffolding and Bake Question

2009-01-12 Thread Eric
Hello, I have an entity called Event and an entity called Gathering. A Gathering is comprised of one or more Event. I have a table called events and a table called gatherings. I also have a table called events_gatherings that contains 2 fields event_id and gathering_id. The Gathering model

Re: Scaffolding and Bake Question

2009-01-12 Thread Eric
The event types for both is INT. There is not a title in either table. On Jan 12, 1:55 pm, Rob Wilkerson r...@robwilkerson.org wrote: On Jan 12, 2:36 pm, Eric err...@gmail.com wrote: Hello, I have an entity called Event and an entity called Gathering.  A Gathering is comprised of one

Re: About CakePHP

2008-11-07 Thread Eric Saboia (Fortes Informatica)
Hey.. Nobody can ask my question? On 6 nov, 09:56, Eric Saboia (Fortes Informatica) [EMAIL PROTECTED] wrote: Hello, I´m looking for some of Cake´s history (why it begun, what inspirated it, etc)... where can i get information about that? Thanks

About CakePHP

2008-11-06 Thread Eric Saboia (Fortes Informatica)
Hello, I´m looking for some of Cake´s history (why it begun, what inspirated it, etc)... where can i get information about that? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to

SQL expressions in paginate or find

2008-09-26 Thread Eric C. Weaver
In one model's (controller's) index action, I'd like to fetch an additional column to tell whether the timestamp field is recent. What I'd like to be able to do (and tried unsuccessfully) would be something like $this-paginate['fields'] = array('Model.*', (ts current_timestamp - interval '4

Re: Filemaker and CakePHP

2008-07-17 Thread Eric
), and it was a pain to work with - I really didn't like FileMaker after that. Admittedly, this was back when Filemaker was not relational either (FM 6 or 7 as I recall), so maybe things have improved.  But if it still doesn't support SQL, maybe not. On Jul 17, 5:24 am, Eric [EMAIL PROTECTED] wrote: Hi

Filemaker and CakePHP

2008-07-16 Thread Eric
Hi, Has anyone had success using Filemaker as a repository for Cake? There have been a few posts here on the issue, but nothing for quite some time. I realize it is quite a task since Filemaker does not really handle SQL. Filemaker does have a PHP API and there is something called FX.php which

Re: Auth Redirect Losing $_GET value

2008-07-05 Thread Eric
You may be able to turn off the Auth redirect and handle it yourself. I think the redirect location is stored in the Session object. This thread may help. http://groups.google.com/group/cake-php/browse_thread/thread/557a6367f823ef61/db0ffd9be8548bad#db0ffd9be8548bad On Jul 4, 8:31 am, Kyle

Re: Use models/views object from other controllers/models/views ?

2008-07-04 Thread Eric
I am not entirely sure of what you are going after, but if otherController and Foo are related in some way, you can do the following. public function myaction(){ $this-otherController-Foo-setText(hello world); $this-set('foo', $this-otherController-Foo); } That said, in general if there is

Model Validation Rule Builder

2008-07-04 Thread Eric
I created a new way of creating validation rules for models, which I think is kind of slick, but I don't really think the way I have it working is very cake-like and I need some advice on how best it should be implemented. Right now in a model I am doing the following to add my RuleBuilder ?php

Re: Auth login redirect unreliable?

2008-07-02 Thread Eric
that the user was trying to access via the session, and redirect there, but taking them to the front page works for me . Hopefully this helps. -Eric On Jul 2, 10:44 am, leo [EMAIL PROTECTED] wrote: On 2 Jul, 17:27, dr. Hannibal Lecter [EMAIL PROTECTED] wrote: I see what you mean, but I'm not sure

CakePHP 1.2 RC2 - Apache Crash on Vista

2008-07-01 Thread Eric Martin
I ran into an issue tonight that caused Apache 2.2 to crash on Vista using RC2. Basically, I deleted a helper file from my file-system but forgot to remove the reference to it (var $helpers = array()) from my app_controller.php file, which caused httpd.exe to crash/shut down. I'm not sure if it

Re: CakePHP 1.2 RC2 - Apache Crash on Vista

2008-07-01 Thread Eric Martin
Ahh...thanks floob. I didn't think to search on trac (duh), but will next time. At least now there is mention of it here in the groups (I couldn't find anything previously). On Jul 1, 12:53 am, floob [EMAIL PROTECTED] wrote: Hi Eric, I believe I had the same issue a few days ago.  There's

Re: Should I learn cake 1.1 or 1.2?

2008-05-31 Thread Eric Martin
As long as you understand the pros and cons of each, it's really up to you. I personally chose to work with 1.2 and have been using the nightly builds. IMO, the new features outweigh any lack of documentation (real or perceived). I believe a 1.2 RC release is expected soon, if that influences

Cake 1.2 open_basedir ERROR

2008-01-25 Thread ERic ZoU
Hi, When I update my 1.19 to 1.2 beta, I saw these below: open_basedir restriction in effect What's going on? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Re: 1.2 is-dir Error

2008-01-25 Thread ERic ZoU
Anyone? On Jan 24, 9:33 am, ERic ZoU [EMAIL PROTECTED] wrote: Hi, everyone, I update my 1.19 to 1.2. There are errors occur below. What happened? Is the error from my Host? Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/usr/share/pear/cake/libs/model

1.2 is-dir Error

2008-01-24 Thread ERic ZoU
Hi, everyone, I update my 1.19 to 1.2. There are errors occur below. What happened? Is the error from my Host? Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/usr/share/pear/cake/libs/model) is not within the allowed path(s): (/webhosting/katiezhou) in

  1   2   3   >