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
; 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 th

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 o

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 $_SESSION['Me

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 f

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

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 Twi

Re: Defining Plugin

2013-10-27 Thread CrotchFrog
sername which seems just fine from all outward appearances, the only problem is that instead of sorting the data as expected I'm greeted with the all-too-familiar error *UserManagerController *could not be found. * * On Friday, October 25, 2013 10:43:11 PM UTC-4, CrotchFrog wrote: > &g

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-25 Thread CrotchFrog
different 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

Re: problems saving datetime

2013-10-22 Thread CrotchFrog
le *in any of the article views. Could 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

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 before/

Re: problems saving datetime

2013-10-22 Thread CrotchFrog
generally the case :) On Monday, October 21, 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/ Perco

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.

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: 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 sys

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 two

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 attac

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

Re: Cake CLI no longer works

2013-05-06 Thread CrotchFrog
figuration. On Sunday, May 5, 2013 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 an

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 thi

Re: Hash.php

2013-03-01 Thread CrotchFrog
an come up 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): I

Re: ACL : Group vs. User

2013-02-24 Thread CrotchFrog
ut my 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

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 da

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

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 t

Re: Where to start?

2012-04-11 Thread CrotchFrog
folder named empty .It does not contain > any text or code in it. Shall i delete it , > > On Wed, Apr 11, 2012 at 1:38 PM, CrotchFrog wrote: > >> Delete the contents of the Model folder. >> >> >> On Wednesday, April 11, 2012 3:56:24 AM UTC-4, masoodi wrote: >

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 wrote: > >> Try to empty the cache and see

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

Re: CakeEventManager

2012-04-10 Thread CrotchFrog
localhost PHP v 5.3.8 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

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: 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 referen

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 w

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
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(), > JsBaseE

Re: JS->Submit

2012-03-21 Thread CrotchFrog
uccess:function (data, textStatus) {$("#weekList").html(data);}, type:"post", url:"\/acclaim\/admin\/shopHours\/getWeeks"});return false;}); Just sayin' ;) Anyhow, adding 'buffer' => false to the options array took care of the problem. Thank

Re: @Miles J - Uploader

2012-03-10 Thread CrotchFrog
atement appear when doing 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 P

Re: @Miles J - Uploader

2012-03-09 Thread CrotchFrog
rsday, March 8, 2012 9:38:05 PM UTC-8, CrotchFrog wrote: >> >> Using Cake 2.1 & Uploader 3.3 >> >> 'Uploader.Attachment' => array( >> 'fileName' => array( >> 'name' => 'generateFilename', >>

Re: @Miles J - Uploader

2012-03-08 Thread CrotchFrog
gt; array(), 's3' => array(), 'metaColumns' => array( 'ext' => 'ext', 'type' => 'type', 'size' => 'size', 'group' => 'group', 'width' => '', 'height' =

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 htt

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 Cake

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 tim

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

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 a

Re: Loading Classes

2011-10-10 Thread CrotchFrog
#x27;m a little fuzzy in this area. Thanks, - Ed On Oct 9, 6:09 am, CrotchFrog 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. >

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
ou do remove them and try to > > save. > > > On Sun, Oct 2, 2011 at 6:14 PM, CrotchFrog 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&quo

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" wrote: > Return "Entro" so it goes trough (!empty($this->data)) :-( > > Ing. Reynier Pérez Mira > Cel: +58 416.921.7406 > Correo: reynie...@gmail.com / reynie...@hot

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 aga

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 probl

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: 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: How to display a BLOB object in VIEW

2011-01-19 Thread CrotchFrog
_id > > do we have to send the value if ID from the database to VIEW ? > > On Wed, Jan 19, 2011 at 11:37 PM, Karthikeyan P > wrote: > > > > > > > > > thanks all...seems like almost there ... > > but what is *$photo_id* in the VIEW > > > Thanks &g

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', array('conditio

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 wrote: > How Do I share a variable or data

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 Auth->mapAction

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 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 files for me. For exa

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 acco