Re: Cron Jobs

2014-11-23 Thread CrotchFrog
Thanks for the input. Looks like using *php -c* is the way to go however i'll have to look into things a bit further. It seems as though there is an issue on the server side that is keeping the script from executing. On Saturday, November 22, 2014 8:09:47 PM UTC-5, Andras Kende wrote: This

Re: using cakephp with nginx

2014-10-26 Thread CrotchFrog
When you say i have a redirection to my default login action *my_ip/my_cakephp_project/login* with an* 404 error* ... my first impression would be that your app is working but you are being denied (redirected) by the auth component. Looking at your config I don't think this is the case and

Re: using cakephp with nginx

2014-10-26 Thread CrotchFrog
; includefastcgi_params; } } HTH On Sunday, October 26, 2014 3:09:07 AM UTC-4, CrotchFrog wrote: When you say i have a redirection to my default login action *my_ip/my_cakephp_project/login* with an* 404 error* ... my first impression would be that your app is working but you

Re: using cakephp with nginx

2014-10-25 Thread CrotchFrog
I have multiple servers all running nginx and serving up Cake apps with no issues. The official CakePHP config from the book does in fact work because I'm currently using it in several locations. I do have configs that are quite different than the book but they are beyond the scope if simply

Re: using cakephp with nginx

2014-10-22 Thread CrotchFrog
I'm assuming you tried the configuration from the book ? http://book.cakephp.org/2.0/en/installation/url-rewriting.html#pretty-urls-on-nginx With a bit of tweaking to match your nginx config you should have no issues. On Tuesday, October 21, 2014 3:09:57 PM UTC-4, Saif Turki wrote: hi, i

2.5.5 Session Component

2014-10-09 Thread CrotchFrog
In 2.5.5 when setting a flash message from a controller and echoing in a view, directly echoing $message will display the set message whereas $this-Session-read('Message.flash.message'); will return null. Debugging $_SESSION indicates that the session is properly loaded however

Assets Helper

2014-01-09 Thread CrotchFrog
Every so often I find it necessary to overwrite certain styles or implement styles or js functionality specific to certain pages in my app. For some projects my app application-wide stylesheets and js can get really big really fast and I find it more manageable to break them down into smaller

Re: List of all Users belonging to Company?

2013-12-26 Thread CrotchFrog
Set up your paginate just as you would a normal search using the logged in users 'company_id' as the search criteria. $this-paginate = array( 'conditions' = array( 'User.company_id' = $this-Auth-user('company_id'))); $this-set('users', $this-Paginator-paginate()); I believe that

Strange console behavior

2013-12-02 Thread CrotchFrog
Using Cake 2.4.3 on Ubuntu server 12.04 LTS A new unexpected behavior started recently in one of my projects ... when I run 'cake bake' in the directory instead of the normal console output it displays what seems to be the contents of my default.ctp or possibly executing index.php. 'cake bake'

Re: cakephp

2013-10-30 Thread CrotchFrog
- MySQL - PostgreSQL - Microsoft SQL Server - SQLite On Wednesday, October 30, 2013 2:59:06 AM UTC-4, karthik...@gmail.com wrote: what are the drawbacks in cakephp? list out the supported databases? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

Re: Defining Plugin

2013-10-27 Thread CrotchFrog
PM UTC-4, CrotchFrog wrote: I've noticed recently some strange behavior when it comes to naming conventions and Plugins. For example if I create a link somewhere within a plugin ie. *$this-Html-link('Some Link', array('controller' = 'controller', 'action' = 'action')); * Following

Re: problems saving datetime

2013-10-25 Thread CrotchFrog
controller that are behaving the same way. Not sure if it's related to cache or sessions or perhaps a permissions issue of some sort but it's becoming increasingly more difficult to work around it. Any ideas are greatly appreciated. On Tuesday, October 22, 2013 4:41:38 PM UTC-4, CrotchFrog wrote

Defining Plugin

2013-10-25 Thread CrotchFrog
I've noticed recently some strange behavior when it comes to naming conventions and Plugins. For example if I create a link somewhere within a plugin ie. *$this-Html-link('Some Link', array('controller' = 'controller', 'action' = 'action')); * Following the link would land you on the page

Re: problems saving datetime

2013-10-22 Thread CrotchFrog
, 2013 1:26:38 PM UTC-4, CrotchFrog wrote: I ran into an issue trying to save a datetime field and I haven't been able to figure out why it's not saving (not failing). Database set up is Ubuntu Server 12.04 LTS w/ Percona Server 5.6 -- I'm using Cake 2.4.1 //table set up DROP TABLE

Re: Multiple checkbox in one line

2013-10-22 Thread CrotchFrog
If I remember correctly Form-input is wrapped in a div. You can try styling the div through the input options array such as 'div' = 'CssClass' or remove the div entirely if it helps the cause, 'div' = false. You can change from a div to something like span using 'wrap' = 'span'. Use

Re: problems saving datetime

2013-10-22 Thread CrotchFrog
changing from 'News' to 'Articles' have caused the issue somehow? I'm not quite sure where to start looking for the cause of the problem. On Tuesday, October 22, 2013 1:54:34 PM UTC-4, CrotchFrog wrote: Problem solved, I worked out the issue. I have a few spots in my layout that display

problems saving datetime

2013-10-21 Thread CrotchFrog
I ran into an issue trying to save a datetime field and I haven't been able to figure out why it's not saving (not failing). Database set up is Ubuntu Server 12.04 LTS w/ Percona Server 5.6 -- I'm using Cake 2.4.1 //table set up DROP TABLE IF EXISTS `news`; CREATE TABLE `news` ( `id` int(11)

Re: New to Cakephp

2013-10-21 Thread CrotchFrog
I can't understand why you would want to join the two and how you feel it would simplify your app. Doing so would be really bad form and completely defeats the purpose of the MVC architecture. If you're working with static views you could simply use the 'Pages' controller to serve your views.

Re: how to use GD library with cake php

2013-10-10 Thread CrotchFrog
You would use GD library with Cake just as you would any other PHP application. Run phpinfo() to see if GD support is enabled. If it is you're good to go and there's nothing more to do, if not you'll need to download and install it to your PHP/Apache server environment. I believe on Windows

Identical controller names

2013-10-09 Thread CrotchFrog
Would it be considered bad practice to have two identical controller names? For example I was wondering about having a 'UsersController' to keep my logic separate from 'UsersController' in one of my plugins, or would it be best to just name one or the other differently? I can foresee one or

Re: Upload Plugin 2.0

2013-10-03 Thread CrotchFrog
If it helps I can tell you how I do it using the Uploader plugin. In the model using Uploader create a function to generate the new name for you. public function generateFilename(){ return md5(rand(, )); } In the model using the Uploader attachment behavior

CakeEmail in Plugin

2013-09-27 Thread CrotchFrog
Cake 2.41 http://bin.cakephp.org/saved/108632 I'm running into problems trying to send email from plugin. When debug is set to 'Zero' it triggers error : Error: An internal error has occurred. When debug set to '2' it throws error: Error: Call to a member function subject() on a non-object.

Re: Cake CLI no longer works

2013-05-06 Thread CrotchFrog
4:29:50 AM UTC-4, CrotchFrog wrote: 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

Re: Auth Component; Strange behavior

2013-03-11 Thread CrotchFrog
Pablito was correct, there was a conflict in my code. I had a custom helper to handle ckeditor and it was causing the conflict. On Monday, March 11, 2013 7:56:19 PM UTC-4, cricket wrote: Define Auth Component does not work. If Auth is allowing access then what else do you need? Could this

Re: Hash.php

2013-03-01 Thread CrotchFrog
with. The biggest mystery to me now is why did the error start all of the sudden and why for some users and not others. On Wednesday, February 27, 2013 1:45:29 PM UTC-5, CrotchFrog wrote: (Cake 2.2.5) I recently started getting an error that reads: Warning (2): Invalid argument supplied for foreach

Re: ACL : Group vs. User

2013-02-24 Thread CrotchFrog
setup does not work the exactly the same. Have you used this plugin? On Sunday, February 24, 2013 1:37:03 PM UTC-5, Robert Winkky wrote: Have you checked out http://www.alaxos.net/blaxos/pages/view/plugin_acl_2.0 ? On Sunday, February 24, 2013 11:02:37 AM UTC-5, CrotchFrog wrote: I have

Miles J Uploader

2012-09-10 Thread CrotchFrog
I'm using Miles J Uploader plugin and Cake 2.2.2. I've configured the plugin in my model as $actsAs = Uploader.attachment. What I'm having problems with is that I have a custom function in the bootstrap to save the file with a unique filename and that works ok but its saves the record in the

Re: views controller model understand

2012-06-04 Thread CrotchFrog
My understanding is that you can have a controller without a model by declaring an empty $uses array in your controller. public $uses = array(); If the page is static you can also use the 'Pages' controller and create your view in /View/Pages (no model or controller method required). That page

Re: CakePHP 2.1.1 Auth/ACL PHPUnit

2012-04-14 Thread CrotchFrog
in your users controller login is your setFlash set to 'working' ?? On Saturday, April 14, 2012 6:37:30 AM UTC-4, rossjha wrote: Hi, I'm trying to create a user controller test case. I'm using Auth/ACL and i'm having problems with mock objects. With the test below, i get the following

Re: Where to start?

2012-04-11 Thread CrotchFrog
Delete the contents of the Model folder. On Wednesday, April 11, 2012 3:56:24 AM UTC-4, masoodi wrote: There are three folders in it models persistant views which one to delete On Wed, Apr 11, 2012 at 10:59 AM, CrotchFrog crotchf...@gmail.com wrote: Try to empty the cache and see

Re: Where to start?

2012-04-11 Thread CrotchFrog
not contain any text or code in it. Shall i delete it , On Wed, Apr 11, 2012 at 1:38 PM, CrotchFrog crotchf...@gmail.com wrote: Delete the contents of the Model folder. On Wednesday, April 11, 2012 3:56:24 AM UTC-4, masoodi wrote: There are three folders in it models persistant views

Re: Where to start?

2012-04-11 Thread CrotchFrog
Sorry, I just realized it was the PostsController and not the Post Model that was not being found. You sure you have the PostsController.php and it's not misspelled or anything like that? On Wednesday, April 11, 2012 4:27:52 AM UTC-4, CrotchFrog wrote: No, there is no need to delete

Re: How to set the incoming $id to be the last post entered

2012-04-10 Thread CrotchFrog
I would think to just put it in an if construct and execute the statement if the expression evaluates to true, no? function mypage($id = null) { if (empty($id)){ $id = $this-Post-find('first', array('order' = array('Post.id DESC'))); } $this-Post-recursive = 0;

Re: CakeEventManager

2012-04-10 Thread CrotchFrog
but not on remote server PHP v 5.2.17. Is there a possibility this issue is not completely resolved, or is it merely coincidence I'm having an identical problem? - ED On Tuesday, April 10, 2012 12:52:26 PM UTC-4, CrotchFrog wrote: Any idea what would cause this error? Warning (2

Re: Where to start?

2012-04-10 Thread CrotchFrog
Try to empty the cache and see if it helps. /app/tmp/cache/ On Sunday, April 8, 2012 8:02:47 AM UTC-4, masoodi wrote: Dear friends , I am new to cake . I have installed it .Now after installation what shall be our first action.i mean to say what have we to do after installation.It

Re: redirecting problem

2012-04-02 Thread CrotchFrog
I have to agree with Mike, are you sure it's making it that far into the code and have you tried testing the redirect on it's own? Alter your 'if' statement to alert in the case the condition (send email) fails. if ($this-Email-send()){ $this-redirect('/sellers/message'); } else {

Re: redirecting problem

2012-03-31 Thread CrotchFrog
Did it make a difference for you or are you still having problems with the redirect? The difference would be in naming conventions http://book.cakephp.org/2.0/en/getting-started/cakephp-conventions.html Sticking with conventions, 'seller' in your redirect should be plural 'sellers' to

Re: redirecting problem

2012-03-30 Thread CrotchFrog
try:: $this-redirect('/sellers/message'); On Friday, March 30, 2012 4:42:47 AM UTC-4, LITTO CHACKO wrote: hai guys, i have to met with other problem.. the problem is that whwn i tried to submit a form it saves all data nad when it is asked to redirect after saving it..it doesn't

Re: Using $this-Js in view file

2012-03-22 Thread CrotchFrog
What you have there looks like it should work okay. Check that your debug is not set at zero and try it again, it's probably throwing an error you're not seeing. Also, you can use Configure::write('debug', 2); directly in the controller method for your view. HTH, ED On Thursday, March 22,

Re: JS-Submit

2012-03-21 Thread CrotchFrog
. Thanks for the help. - ED On Sunday, March 18, 2012 9:57:38 AM UTC-4, David Cole wrote: Have you considered going with JQuery and using the .submit() ? http://api.jquery.com/submit/ On Saturday, March 17, 2012 3:30:08 AM UTC-5, CrotchFrog wrote: I recently switched computers

Re: JS-Submit

2012-03-21 Thread CrotchFrog
Correction :: You can combine options of FormHelper::submit(), JsBaseEngine::request(), and *JsBaseEngine::event()* my bad ;) On Wednesday, March 21, 2012 3:14:17 AM UTC-4, CrotchFrog wrote: @aSh!Q's :: You can combine options of both FormHelper::submit(), JsBaseEngine::request

Re: @Miles J - Uploader

2012-03-10 Thread CrotchFrog
a model delete? On Friday, March 9, 2012 9:25:09 PM UTC-8, CrotchFrog wrote: It's correctly generating the path and works fine when manually deleting with Uploader. On Friday, March 9, 2012 1:30:31 PM UTC-5, Miles J wrote: Can you throw some debug($path)'s in Uploader.delete() to see if its

Re: @Miles J - Uploader

2012-03-09 Thread CrotchFrog
PM UTC-8, CrotchFrog wrote: Using Cake 2.1 Uploader 3.3 'Uploader.Attachment' = array( 'fileName' = array( 'name' = 'generateFilename', 'baseDir' = '', 'uploadDir' = 'img/artist', 'dbColumn' = 'path', 'importFrom' = '', 'defaultPath' = '', 'maxNameLength

Re: Is there no $this-referer() in cake 2.1 any more?

2012-03-08 Thread CrotchFrog
I've been using $this-referer() in 2.1 with no issues. ie. $this-redirect($this-referer()); On Thursday, March 8, 2012 5:10:28 AM UTC-5, heohni wrote: How can I get now the referer? In $this-request-params nothing? -- Our newest site for the community: CakePHP Video Tutorials

Re: @Miles J - Uploader

2012-03-08 Thread CrotchFrog
= array( 'Artist' = array( 'className' = 'Artist', 'foreignKey' = 'artist_id', 'conditions' = '', 'fields' = '', 'order' = '' ) ); - ED On Thursday, March 8, 2012 3:56:50 AM UTC-5, CrotchFrog wrote: @Miles, With the newest version of your uploader, when deleting a row from the db

Making a real mess of Auth Component

2011-11-12 Thread CrotchFrog
I could use a bit of help straightening out my Auth, Autth-login. In the process of trying to get it to work I made a nice enough mess that I just need to start over. I'm not using Form based Authentication (first time I've attempted this) and I'm also using a Model other than User (first

Re: onClick in button

2011-11-12 Thread CrotchFrog
Just to eliminate the obvious ... have you included the .js using $this-Html-script() or some other method? Have you checked the script for errors using Firebug or something similar? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Strange View behavior

2011-11-06 Thread CrotchFrog
Just a little bit ago I ran into a situation where my View is displaying nothing, as in a blank page. The result is the same with 2.0 RC3 2.1 which would lead me to believe it's a coding issue, but there are no errors to be found as far as I can see. I tested the method in the controller

Re: Strange View behavior

2011-11-06 Thread CrotchFrog
Quick update. The issue is resolved. I restructured the method in the controller and walked through it again. Again, it executes to completion. The elseif() in the method is keeping the view from rendering even though the statement itself is not failing. Perhaps a coding issue I'm just not

Re: Loading Classes

2011-10-10 Thread CrotchFrog
fuzzy in this area. Thanks, - Ed On Oct 9, 6:09 am, CrotchFrog crotchf...@gmail.com wrote: I'm a bit confused in the proper use of App::import() vs. App::uses() in migrating to 2.0. I'm try to load the Facebook php sdk from the Vendor folder as I used to in 1.3. In 1.3 what worked for me

Loading Classes

2011-10-09 Thread CrotchFrog
I'm a bit confused in the proper use of App::import() vs. App::uses() in migrating to 2.0. I'm try to load the Facebook php sdk from the Vendor folder as I used to in 1.3. In 1.3 what worked for me was : App::import('Vendor', 'facebook) function __construct(){ parent::__construct();

Re: I can find() but can't save(), why?

2011-10-02 Thread CrotchFrog
Just wondering if this issue has been resolved? I'm having the same problem with 2.0 RC2. On Sep 30, 4:46 am, reynie...@gmail.com reynie...@gmail.com wrote: Return Entro so it goes trough (!empty($this-data)) :-( Ing. Reynier Pérez Mira Cel: +58 416.921.7406 Correo: reynie...@gmail.com /

Re: I can find() but can't save(), why?

2011-10-02 Thread CrotchFrog
:14 PM, CrotchFrog crotchf...@gmail.com wrote: Just wondering if this issue has been resolved? I'm having the same problem with 2.0 RC2. On Sep 30, 4:46 am, reynie...@gmail.com reynie...@gmail.com wrote: Return Entro so it goes trough (!empty($this-data)) :-( Ing. Reynier Pérez Mira

Re: Pagination Problem

2011-06-30 Thread CrotchFrog
Thanks for answering Johan :) I tracked the problem down to passing form data via GET through an iframe. I located where the problem was occurring, but I couldn't figure out why. I tried a few different approaches to no avail. In any case I resorted to using POST and Cache and the app once again

Re: Paginate pre-ordered list

2011-04-01 Thread CrotchFrog
@ShadowCross: I originally tried your example of: [code] $this-paginate('Like', array( 'contain' = array('User'), 'conditions' = array( 'Like.count ' = 0 ), 'order' = array( 'Like.count' = 'desc', 'Like.modified' = 'asc' ) ); [/code] The problem I

Re: Paginate pre-ordered list

2011-03-30 Thread CrotchFrog
@ShadowCross: Thank you for the help, I appreciate it. The combination of class LikesController extends AppController { ... var $paginate = array( 'limit' = 20, ... ); AND $this-helpers[] = 'Paginator'; while it does in fact load the

Re: Paginate pre-ordered list

2011-03-30 Thread CrotchFrog
There is not much going on at all with the Like::getMostLiked() function. The Like Model works in conjunction with Facebook. FB's Like button doesn't work so well with password protected pages so I basically re-wrote their script for the Like button and now it does what I want and then some. The

Re: How to display a BLOB object in VIEW

2011-01-19 Thread CrotchFrog
I'm not sure if this will help you but it's how I display BLOB type images. Like Ryan said, you'll have a separate action in your controller specifically for displaying your photo. // PHOTOS CONTROLLER function displayPhoto() { $this-set('photo', $this-Photo-find('first',

Re: How to display a BLOB object in VIEW

2011-01-19 Thread CrotchFrog
to VIEW ? On Wed, Jan 19, 2011 at 11:37 PM, Karthikeyan P pkaarthike...@gmail.comwrote: thanks all...seems like almost there ... but what is *$photo_id* in the VIEW Thanks On Wed, Jan 19, 2011 at 9:24 PM, CrotchFrog crotchf...@gmail.com wrote: I'm not sure if this will help

Re: ACL Question

2011-01-17 Thread CrotchFrog
Hi John, I do use a plugin to manage permissions and it seems to work quite well although I still prefer the shell interface for adding/removing aro/ aco and creating permissions on the fly. The grey area for me right now is authorizing CRUD vs. otherActions. I know that I can use

Re: Sharing data/values across different controllers

2011-01-17 Thread CrotchFrog
Have you considered writing your data to the session or passing it through a redirect()? $this-redirect(array('controller' = 'someController', 'action' = 'edit', $data)); or $this-Session-write('Some.data', $data); On Jan 17, 10:27 pm, zer0_gravity zr...@hotmail.com wrote: How Do I share a

Re: baking 1.3.0 problems?

2010-05-25 Thread CrotchFrog
@invisibleman: Did you ever resolve this problem? I'm having the same issue. On Apr 27, 6:18 am, invisibleman daveyjones...@gmail.com wrote: i can't seem to bake my models, views or controllers in the stable of cakephp 1.3.0 is anyone else having this problem? It just seems to create empty

Dynamic Form Data

2010-03-21 Thread CrotchFrog
I finally gave in and decided to give Cake a shot so please pardon my ignorance to what may seem obvious to you. The majority of my sites are Ajax heavy so I decided this would be as good a place as any to start so I set to work on a (what should be simple) form that creates itself dynamically