Re: FULL_BASE_URL error using requestAction()

2012-11-22 Thread Jonathan Sundquist
What version are you using. On Nov 22, 2012 1:39 AM, Miles J mileswjohn...@gmail.com wrote: I keep seeing this in my debug.log, any ideas? 2012-11-22 03:22:36 Notice: Notice (8): Use of undefined constant FULL_BASE_URL - assumed 'FULL_BASE_URL' in

Auth allow for shared functions in Appcontroller

2012-11-22 Thread MetZ
Hi. Anyone know how I can auth allow shared functions in appcontroller? Appcontroller: public function beforeFilter() { $this-Auth-allow('SharedFunction'); OtherController.php public function beforeFilter() { parent::beforeFilter(); $this-Auth-allow('ControllerSpesificFunction',

Re: Auth allow for shared functions in Appcontroller

2012-11-22 Thread Jeremy Burns : Class Outfit
I hope I haven't misunderstood what you are trying to do... If they are shared functions just put and allow them in app controller and call them from any other controller like so: $this-myFunctionName(). On 22 Nov 2012, at 16:04, MetZ met...@gmail.com wrote: Hi. Anyone know how I can auth

Re: Model can't find the table in the database

2012-11-22 Thread andrea esposito
Yes,it is.I have the model name Product and the table name products.The model is stored in app/models/product.php.I am using cakephp 1.3. 2012/11/21 lowpass zijn.digi...@gmail.com Is that literally the error msg? Do you have a model name Model? On Wed, Nov 21, 2012 at 11:43 AM, and

CakeDC CsvImport Behavior with belongsTo

2012-11-22 Thread Kevin
Hi All! I've implemented the CakeDC CsvImport Behavior ( https://github.com/CakeDC/utils/blob/master/Model/Behavior/CsvImportBehavior.php) to allow me to save csv data to my models. It's working fine, but I have some questions if there is anyone else who has used this behavior. Say I have the

CakeFTP Configuration Connection Problems

2012-11-22 Thread Dale Bengston
I followed the instructions for installing and activating cakeFTP on git. The plugin is active, as I can get to mysite/ftp/client and enter server info to test. When I use mysite/ftp/client to test, I get the error Ftp.FtpsController could not be found and Create the class FtpsController

MySQL views as model table

2012-11-22 Thread Arthur
Hello, I have model with only select functions. How to set mysql view as model table instead real sql table? For example: class SomeModel extends AppModel { public $name = 'someView'; // this is a view function getEntries() { return $this-find('all'); } } I need it instead

Problema de migracion a otro isp. CORE/cake/libs/cake_session.php

2012-11-22 Thread Oscar Lastera
Hola, Estoy migrando a otro isp un sistema Cake. Me da varios errores que tiene pinta de ser de lo mismo. ¿Como puedo solventar este error? Gracias a todos. [http://php.net/function.session-start]: open(/home/imcb/tmp/sess_t6p9j5a42rla2l6h085pplm302, O_RDWR) failed: Permission denied (13)

Re: Model can't find the table in the database

2012-11-22 Thread lowpass
I just looked online and found another plea for help involving that msg. ACL was involved there as well. Alas, no fix mentioned. On Thu, Nov 22, 2012 at 11:18 AM, andrea esposito andreaesposit...@gmail.com wrote: Yes,it is.I have the model name Product and the table name products.The model is

Re: Auth allow for shared functions in Appcontroller

2012-11-22 Thread lowpass
He means that he wants his AppController actions Auth::allow()ed globally. I've never run into this personally; don't know if it's a bug. Are these *actions* or just global functions that your controllers call internally? The latter I've done many times. There's no need to allow them as they're

Re: Problema de migracion a otro isp. CORE/cake/libs/cake_session.php

2012-11-22 Thread lowpass
That looks like it has nothing to do with Cake, although it does have its own tmp directory. I think this is a general tmp directory that your host has set up for each client. Contact them and ask that they change the permissions to allow the web server to write to that directory. On Thu, Nov

Re: video upload script

2012-11-22 Thread Chris
anyone,...? On Tuesday, November 20, 2012 9:45:42 AM UTC-8, Chris wrote: hi guys,... can anyone recommend video upload script,... so I'll be able to embed videos to my site, just like in facebook,... just by placing a youtube, vimeo, etc, video URL (not the embed code, just URL), and

Re: MySQL views as model table

2012-11-22 Thread Jorge Gonzalez Ortiz
Hi Arthur, MySQL views are like tables in MySQL, so if you put the following property in your model: class SomeModel extends AppModel { public $useTable = 'viewName'; } The find methods will work perfectly, because the SELECT Statements generated by the Cake Model work the same way as in

Re: video upload script

2012-11-22 Thread lowpass
If it's to work from just the URL then uploading has nothing to do with this. Neither Cake, for that matter. There's this: http://jonraasch.com/blog/youtubin-jquery-plugin If you want something that works with vimeo, etc. I suppose google might help. On Thu, Nov 22, 2012 at 2:44 PM, Chris

Re: Auth allow for shared functions in Appcontroller

2012-11-22 Thread MetZ
Hi. I have a function in my AppController = TellaFriend That allows a visitor to email his friend about a spesific page on the website, eg: shared by all controllers Now, if I need to have the function available to my views using PostsController, I need to put in Auth allow TellaFriend in

Re: Auth allow for shared functions in Appcontroller

2012-11-22 Thread lowpass
When AppController::beforeFilter() runs, it knows only about the methods in AppController. If you want to have dedicated actions for each controller then you need to specifically allow() them in each controller. Your controller action might in turn call parent::TellAFriend() which is a method in

Re: Auth allow for shared functions in Appcontroller

2012-11-22 Thread lowpass
Ignore what I said. I just thought about it for a minute and that's incorrect. Auth::allow merges the actions: $this-allowedActions = array_merge($this-allowedActions, $args); So when it runs in a given Controller the other actions are merged with whatever you allow in AppController. I just

Re: WebHosting Suggestion needed

2012-11-22 Thread romel javier gomez herrera
hi. http://www.rackspace.com/ or http://www.softlayer.com/ regards 2012/11/21 Wallace Cardoso Colaco Ricardo wallace@gmail.com Thanks Guys. I'm going to study the advantages and disadvantages of each one and let my boss pick one out .. Thanks, Happy holidays! On Nov 20, 2012, at

Re: WebHosting Suggestion needed

2012-11-22 Thread John Hardy
I just saw the name rackspace and just had to chime in. I've been a loyal customer, I and the companies i've worked for have dumped hundreds of thousands ( Maybe millions ) on rackspace service, and now more exclusively the cloud. for the past 3 days there have been major latency and network

Re: WebHosting Suggestion needed

2012-11-22 Thread Wallace Cardoso Colaco Ricardo
Romel, Thanks for your suggestion. We are considering these two already. John, good to know that you have had issues with them. These are the kind of issue that we don't want to experience. We are definitely considering using AWS. I didn't know their service until this week. And I'm amazed

find and display groups by higher ranking

2012-11-22 Thread Chris
hi guys,... can anyone help please. how can I find groups by higher ranking: I have a group table with 'rank filed in db: e.g. id rank 66 102 65 33 64 77 63 151 $groups = $this-Group-find('all', array('conditions' = array('Group.rank' = how to display group with higher ranking on

Re: video upload script

2012-11-22 Thread Chris
thanks cricket,... I'll go dig into it,... but I need to save embed code in db,... On Thursday, November 22, 2012 11:55:08 AM UTC-8, cricket wrote: If it's to work from just the URL then uploading has nothing to do with this. Neither Cake, for that matter. There's this:

Re: find and display groups by higher ranking

2012-11-22 Thread Marcelo F Andrade
On Fri, Nov 23, 2012 at 12:18 AM, Chris chris...@yahoo.com wrote: $groups = $this-Group-find('all', array('conditions' = array('Group.rank' = how to display group with higher ranking on top of others ))); $this-Group-find('all', array('order' = 'Group.rank')) Always check the