Re: CakePHP 3.1.6 - Time::_formatObject throws exception "calling ->format on a null" on what should be valid data

2016-01-06 Thread glk
_formatObject does exactly what the docs say! Maybe the docs could emphasize it a littler more, and the function should probably throw a more informative InvalidArgumentException? On Tuesday, January 5, 2016 at 5:29:30 PM UTC-7, glk wrote: > > I've modified the Time::_formatObject fun

CakePHP 3.1.6 - Time::_formatObject throws exception "calling ->format on a null" on what should be valid data

2016-01-05 Thread glk
I've modified the Time::_formatObject function allow some debug info (beginning at line 617) as follows: debug($date); > debug($format); > debug($locale); > debug($dateFormat); > debug($timeFormat); > debug($timezone); > debug($calendar); > debug($pattern); > > static::$_formatters[$

Re: CakePHP 3.1.1 - deleteAll when using condition NOT IN array fails

2016-01-03 Thread glk
hat version of cakephp are you using? What is the full error and the SQL > query? > > On Tuesday, December 29, 2015 at 7:54:41 PM UTC+1, glk wrote: >> >> Hello, >> >> A function in OpSpTable.php uses the following code: >> >>

CakePHP 3.1.1 - deleteAll when using condition NOT IN array fails

2015-12-29 Thread glk
Hello, A function in OpSpTable.php uses the following code: $op_id = 18; > $actualUsed = [2, 101]; > > $conditions = [ > 'OpSps.op_id' => $op_id, > 'OptSps.ec_id NOT IN' => $actualUsed, > ]; > >

Re: Avoid converting date/datetime fields to Cake/Time instances with CakePHP 3

2015-10-26 Thread glk
ain what I think it should be doing. Again, I'm sorry for mistakenly stating that the time is always output for a "date" field. By the way, "time" fields are also fixed format in the marshaller! On Monday, October 26, 2015 at 4:36:21 AM UTC-6, José Lorenzo wr

Re: Avoid converting date/datetime fields to Cake/Time instances with CakePHP 3

2015-10-23 Thread glk
@JoseLorenzo The reason is that the cake $this->Form->input('date_field') always generates 3 input fields. If the input uses type=text, the field is populated with mm/dd/, hh:mm:ss And all we should have is mm/dd/... of course it should also be LOCALE format. -- Like Us on FaceBook

cakephp 3.1 - mySQL data field types of DATE and TIME don't seem to populate the input fields correctly when using input type = text

2015-10-22 Thread glk
Since I don't want to use 3 fields of input for a date, the idea of using a text field with a datepicker seemed logical. I've set : //Config\USER_LOCALE = 'en_US' I18n::locale( Config\USER_LOCALE ); Time::$defaultLocale = Config\USER_LOCALE; So I'm expecting the have a date for

Basic usage of cakePHP 3.0 Upgrade tool - Where to install the upgrade tool?

2015-07-03 Thread glk
Ok, you got me into cakePHP 3.0, but now it's time to actually upgrade a V2 site to V3. The Upgrade tool README.md says "After downloading/cloning the upgrade tool, you need to install dependencies with 'composer' OK, but the what FOLDER was I supposed to download and unpack the upgrade-maste

Re: Not allowed use mod_rewrite... Trying to get pretty urls to work... No css or js

2014-12-18 Thread glk
ot; too much "mydomaint" > should "mydomain" > The same in your Enjoy, John > > On Wednesday, 17 December 2014 23:52:35 UTC+2, glk wrote: >> >> Thinking... I wanted to add the following info: >> >> >> ServerName mydomain >>

Re: Not allowed use mod_rewrite... Trying to get pretty urls to work... No css or js

2014-12-18 Thread glk
Sorry HK, but the docs show that Apache's DocumentRoot should be set the webroot folder! >From the 2.x Docs under Installation: Production A production installation is a more flexible way to setup CakePHP. Using this method allows an entire domain to act as a single CakePHP application. Thi

Re: Not allowed use mod_rewrite... Trying to get pretty urls to work... No css or js

2014-12-17 Thread glk
Thinking... I wanted to add the following info: ServerName mydomain ServerAlias mydomain.tld DocumentRoot "E:/mydomaint/app/webroot" Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all #ScriptA

Not allowed use mod_rewrite... Trying to get pretty urls to work... No css or js

2014-12-17 Thread glk
I have a working "site" on my development machine that uses mod_rewrite. However, I'm informed that I will not be able to deploy the site with mod_rewrite... so the docs say: App.baseUrl If you don’t want or can’t get mod_rewrite (or some other compatible module) up and running on your server

Re: AppController::beforeRender usage question.

2014-11-07 Thread glk
the SecurityComponent calculates its hash? On Friday, November 7, 2014 11:26:33 AM UTC-7, glk wrote: > > When looking at the Security I find the following: > > Controller creates data array. > View is rendered. > 1) In the view I create an input for a field NOT already defi

Re: AppController::beforeRender usage question.

2014-11-07 Thread glk
When looking at the Security I find the following: Controller creates data array. View is rendered. 1) In the view I create an input for a field NOT already defined in the data array... blackhole 2) I create an input for a field NOT already defined in the data array (type=hidden) I also get.

Looking for a "is form dirty" plugin

2014-11-07 Thread glk
Hello everyone, I'm looking for some type of plugin that will let me find out in the controller (during a post) whether or not the form has actually had any data "changed." Thanks, Greg -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP ---

AppController::beforeRender usage question.

2014-11-05 Thread glk
Hello everyone, I'm trying to "add" data fields to $this->request->data within the AppController::beforeRender() function. When the view is created, all of the data fields exist, but when the form is submitted... the great blackhole appears. I probably need to just put the additional fields i

Re: 3.0 - input without model name

2014-11-05 Thread glk
Hello Mark, What do you mean by "The inputs in 3.0 do not contain the model name* unless you put it there*. Put it Where? On Wednesday, November 5, 2014 5:49:34 AM UTC-7, mark_story wrote: > > My mistake, I misread your post. The inputs in 3.0 do not contain the > model name unless ypu put i

Re: find('all') with results using id as the index instead of 0,1,2,3,...

2014-10-29 Thread glk
Thank you Dario... The longer I work with Cake, the more cool stuff I find within! -- 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 unsubscri

Re: Security Component is Ruining my Life

2014-10-18 Thread glk
Florian... What a wonderful idea. Just wish I understood all of Cake well enough to help implement. I've fought with the Security Component many times and, although I've never lost, it has created many headaches. Hope the Development team can add this functionality during debugging. -- Li

find('all') with results using id as the index instead of 0,1,2,3,...

2014-10-18 Thread glk
missing something in Cake. Is there something in Cake that would take care of this more "automagically?" Thanks in advance for any assistance, glk -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message

MVC question in basic design of export csv file

2013-08-17 Thread glk
the $this->response->file() would be replaced by a "success" setFlash, and just return to the referrer! Thank you for any assistance, glk -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because yo

Double inclusion of jquery (using Html->script) leads to many problems. I suggest a solution.

2013-08-04 Thread glk
Hello all, I've got more of a cake design question that a problem (at this point anyway). I'm using the htmlHelper and the $this->Html->css and $this->Html->script to make sure all the jquery and other stuff gets loaded properly. My problem arose when I was using .load() to pull a different c

Re: I have 405 html files (help)... what is the proper convention location for these files?

2013-05-16 Thread glk
> > Wow! I'm sorry I won't be able to try this out today But thanks! > Maybe I'll actually learn how to communicate everything the first time some > day. > I'll let you know either way! Thanks again! Greg -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter ht

Re: I have 405 html files (help)... what is the proper convention location for these files?

2013-05-16 Thread glk
Andre, Thank you for a great explanation... I'm using xampp and have my VirtualHost DocumentRoot pointed at my /app/webroot, so essentially I have Cake in private folders and my webroot is my public_html. This works great for my testing, and I just "assumed" that the folders such as /app/Mod

Re: I have 405 html files (help)... what is the proper convention location for these files?

2013-05-16 Thread glk
Andre, I thought webroot was my "public_html" folder as far as Cake was concerned!? I would like to keep the html OUT of the public folders, so if I understand you correctly I can place the folder as /app/docs/doc1.html and then have htaccess in that folder to stop the RewriteEngine? Your ass

I have 405 html files (help)... what is the proper convention location for these files?

2013-05-16 Thread glk
Hello All, I have help documentation in html, png files located in a single folder... Created by another. Where should these files be located within the site's app folder. A folder within /View/Pages are as separate folder /View/Help? If this Help were in PDF format, where (by convention) sh

CakeDC TinyMCE issues trying to get installed properly. Seems to be unable to find css?

2013-05-06 Thread glk
I'm using Cake 2.2.1 My bootstrap.php loads the TinyMCE My messages_controller adds to helpers = array('TinyMCE.TinyMCE'); My Messages edit.ctp view contains: echo $this->Form->input('message_text'); $this->TinyMCE->editor(array('selector' => "textarea#MessageMessageText", 'theme' => 'simple',

Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; But execute is trying to use function name as the $sql

2012-12-04 Thread glk
Hello all, thank you in advance for any help you may be able to provide. I'm using cakePHP 2.2.1 The following code works perfectly: class OptionsController extends AppController { var $uses = array('Option', 'ShooterEvent', 'ShooterOption'); public function calc($id) { $paid_entries =

Re: Question about HtmlHelper::loadConfig()

2012-12-04 Thread glk
Hello Novrian, I'm really new here, so I may not be the best person to answer your question. But I'll try and maybe learn something along the way... I would try one of three ideas: 1. Try using your own specialized View/Helper/AppHelper.php Remember, don't alter the CakePHP AppHelper

Re: Using function config() fails to define PHP variables

2012-10-20 Thread glk
Sorry, I didn't specify this earlier. I'm trying to use the function described in the docs at: - Core Libraries - General Purpose - Global Constants an

Using function config() fails to define PHP variables

2012-10-18 Thread glk
I need the same variables in every view (with a form) and tried using the config() function to read the file from the Config folder. It is read in just fine, and I can generate output from the config file (e.g. debug($variable)). However, after the loading of the file, none of the variables are d

Re: Trying to exec a cake shell fails...

2012-09-18 Thread glk
With a little more time... The working directory for the script, as supplied to the script from apache, is webroot (i.e. E:\project\trunk\app\webroot) It has to be set to E:\project\trunk\app so that cake can figure out where everything is! -- Like Us on FacekBook https://www.facebook.com

Trying to exec a cake shell fails...

2012-09-18 Thread glk
Hello... I'm trying to use the "hello world" shell which is located at E:\project\trunk\app\Console\Command\HelloShell.php. Using the command window, "cake hello" works exactly as described... However, every attempt I've made to execute this script from a cake controller has failed. The controlle

Error trying to use console\cake bake - working folder versus document root issue

2012-08-06 Thread glk
Hello, I'm trying to use "cake bake" my app root is e:\mysite\trunk\app which is not inside of the xampp\htdocs folder. Path has the additional item of e:\mysite\trunk\app\console add. Working folder is e:\mysite\trunk\app xampp has document root set to app\webroot as usual. xampp has virtual

Re: cakePHP v2.1 and urls generated by $this->Html->css from default.ctp (.htaccess changes)

2012-06-04 Thread glk
Ok, I goofed (again)! I was using the .htaccess info for 2.0 Upgrading for 1.3... Cake v2.1.3 migration requires changes to .htaccess! -- 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

Re: cakePHP v2.1 and urls generated by $this->Html->css from default.ctp

2012-06-04 Thread glk
On Sunday, June 3, 2012 4:09:05 PM UTC-6, glk wrote: > > I'm converting from 1.3 to 2.1. I'm having problems getting any of my > stylesheets to load properly from any link other than home! > > //sitename:8080/ > using home.ctp, then one time through default.

Re: cakePHP v2.1 and urls generated by $this->Html->css from default.ctp

2012-06-03 Thread glk
Sorry... The sample code:echo $this->Html->css('ezshoot_common'); It should read: echo $this->Html->css('cake.generic'); -- 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

cakePHP v2.1 and urls generated by $this->Html->css from default.ctp

2012-06-03 Thread glk
I'm converting from 1.3 to 2.1. I'm having problems getting any of my stylesheets to load properly from any link other than home! //sitename:8080/ using home.ctp, then one time through default.ctp (in App/View/ Layouts) the code "echo $this->Html->css('ezshoot_common');" generates //sitename:80

CakePHP as framework with Embarcader RadPHP... Anyone?

2011-08-07 Thread glk
Hello... Has anyone successfully integrated Cake into the RadPHP development tool? I have it working if I always publish the RadPHP project to a server, but I'm not able to test directly within RadPHP. Thanks, Greg -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakeph

Re: Is there a maximum depth of reference for $this->Form->input()?

2011-03-18 Thread glk
Duh! Sometimes it doesn't pay to get up in the mornings! Thank you! On Mar 17, 9:09 pm, kdubya wrote: > Looks like your forgot the echo in front of the call to > $this->Form->input("ShooterEvent.$we.ShooterOption.$wo.entryfee", > > $optbab); -- Our newest site for the community: CakePHP Vid

Is there a maximum depth of reference for $this->Form->input()?

2011-03-16 Thread glk
Hello, I have a very large amount of data for a person... Many Levels (models)... The following code works fine... EXCEPT for the $Form->input(). There is absolutely nothing generated by the input call. echo $this->Form->input("ShooterEvent.$we.post", $bab); if (isset($this->data['ShooterEvent

Has anyone developed a default CakePHP theme for jQuery

2011-02-16 Thread glk
Hello, I'm finally trying to use jQuery, and everything is working ok, but none of the themes seem to work "nicely" with the default cake.generic.css. They want to change everything! I'm really just trying to use the jquery.ui.tabs right now, but by the time I get the general theme stuff, and the

Re: V1.3 use of plugins vs vendors: accessing css, js, images, etc.

2011-02-09 Thread glk
;link") will fail, because > the HTML tags are interpreted by the webbrowser running on the client > workstation (which is usually a different machine from the server). > > You will need to convert the local path to a valid url path, which > does not include the name of the docu

V1.3 use of plugins vs vendors: accessing css, js, images, etc.

2011-02-09 Thread glk
Hello, I'm trying to get a tabs class (written by a 3rd party) to work well with Cake. I started out using it as an app/vendors/apphp_tabs just like the tcpdf class is... but the tabs class wants to access other files within the same directory structure. I read a little more, and Cake v1.3 says