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

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
Its a hack and Im just taking a shot in the dark with no idea how you get the tags code wise but script type=text/javascript var imgurl = 'img src=./images/file.png'; // I assume this is already in a var somewhere just putting for sake of understanding imgtag = imgurl.replace(./,/ticketstaff/);

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
Hey All, I am running cakePhp latest and I just ran into an issue with requestAction and my auth. It seems like even though I allow index action in my NewsController $latest_news = $this - requestAction(array('controller' = 'news','action' =

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
Im assuming the if() is in your controller not a view file?? Here is a snip of a view for one of my older apps I am working on updating. I use postLinks like this ?php if(count($divisions)0){ foreach ($divisions AS $row){

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
class Sites extends AppModel { public function dataValidate1(){ $validatevar = array( 'firstname' = array( 'mustNotEmpty' = array( 'rule' = 'notEmpty', 'message' = 'Please enter

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
I have an app I am working on and I was wondering if this is the designed behavior. As usual my controllers extend AppController I use the beforeFilter() to determine the site the request is for and setup the environment widgets,auth etc. My concern is if I put a mail() in the beforeFilter

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

2013-06-17 Thread Eric Haskins
Is this on a server under your control or Shared Hosting (hostgator,DirectNic, etc) Cake shouldnt be blocking or stopping you unless there is a memory issue due to how many records. I would look at your hosting setup some hosts have implemented hourly limits etc. I have my hosting

Re: How to edit a view in Cake php

2013-06-17 Thread Eric Haskins
Not sure how your getting your *$products *array You could use a $products = $this-{Model}-find('all',array( 'joins' = array( array( 'table' = 'customers', 'alias' = 'CustomerJoin', 'type' = 'INNER', 'conditions' = array(

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 to

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' ) );