QA Automation - Alpharetta GA - 3+Months Contract

2015-06-02 Thread Andy Johnson
! Warm Regards, Andy Johnson • Sr. Technical Recruiter • Panzer Solutions, LLC 50 Washington Street • 9th Floor, SONO Corporate Center • Norwalk CT 06854 USA Office: 203 -652 -1444 Ext 259 • Fax: 203-286-1457 • Email: ajohn

Re: Jquery mobile+Phonegap mobile app and authentication

2012-08-26 Thread Andy
Arash, I seem to have the same problem, would you mind posting your solution with your sample code and all? On Saturday, June 23, 2012 8:45:50 AM UTC-4, Arash wrote: Thanks Tarique, it looks to be the correct way but i didn't have any success using it! Here is what i did: 1. used HTTP

Re: Error: The requested address was not found on this server.

2012-07-25 Thread Andy Gale
apache server allow .htaccess http://httpd.apache.org/docs/current/mod/core.html#allowoverride 3. Does your apache server have mod_rewrite enabled? http://httpd.apache.org/docs/current/mod/mod_rewrite.html Cheers, Andy -- Andy Gale http://andy-gale.com http://twitter.com/andygale

Re: Archive old data from model's table

2012-07-25 Thread Andy Gale
-partitionable I haven't tried it but maybe this will help you. -- Andy Gale http://andy-gale.com http://twitter.com/andygale -- 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

Re: LESS CSS

2012-07-19 Thread Andy Gale
-less-css-in-cakephp-application/ -- Andy Gale http://andy-gale.com http://twitter.com/andygale -- 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 with their CakePHP related

Re: 3.0: a peek into CakePHP's future

2012-07-06 Thread Andy Gale
On Fri, Jul 6, 2012 at 2:17 PM, Marsson C. marss...@gmail.com wrote: Does it mean Cake 3.0´s Model will return objects instead of arrays ? Yes Model layer rewrite: Models to return objects from queries -- Andy Gale http://andy-gale.com http://twitter.com/andygale -- Our newest site

Re: CakePHP 1.3 :: What does if block do in cake/lib/controller.php ?

2011-11-23 Thread Andy Gale
. an entirely different object which is a copy of $obj. So in PHP4, = is need to assign a reference to $obj to $obj2. In PHP5... $obj2 = $obj; ... assigns $obj2 as a reference of $obj by default so = is not required. Cheers, Andy -- Andy Gale http://andy-gale.com http://twitter.com/andygale

Re: CakePHP 2.0.3 out of the oven

2011-11-17 Thread Andy Gale
/default.ctp on line 44 You need to include the Session helper I'd imagine. -- Andy Gale http://andy-gale.com http://twitter.com/andygale -- 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

Re: Se Ya Cake..bake a dick cake frosting on your face...............

2011-09-11 Thread Andy Gale
...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Andy Gale http://andy-gale.com http://twitter.com/andygale -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Media Manager not handling uploads - why?

2011-08-26 Thread Cape Town Andy
Hi, I installed David Pearsson's media manager per the readme file but can't see how to link it to my forms so that it handles image uploads. I've scoured Google, the bakery, and ask.cakephp.org but can't find any clear answer on this. Any help or examples would be appreciated. Thanks, Andy

Re: Warning (512)

2011-01-07 Thread Andy Dirnberger
What version of Cake are you using? findAll() was replaced by find('all') in 1.2. From the 1.3 docs: http://book.cakephp.org/view/1017/Retrieving-Your-Data#find-all-1021 On Jan 6, 7:22 pm, AndreGuerreiro andreadguerre...@gmail.com wrote: Hi, I got this message

Re: Common Punctuation

2010-11-29 Thread Andy Dirnberger
The 'i' means case insensitive, so you don't need the A-Z anymore: '/^[\-\'\.\sa-z]+$/i' On Nov 29, 3:54 am, Stephen step...@ninjacodermonkey.co.uk wrote: My mistake, i goes after the forward slash. *'rule' = array('custom', '/^[\-\'\.\sa-zA-Z]+$/i'),* On 29 November 2010 08:53, Stephen

Re: Memcached not working on default settings

2010-09-21 Thread Andy Gale
On Tue, Sep 21, 2010 at 4:02 PM, j.blotus j.blo...@gmail.com wrote: I recently set up memcached as well, it's too bad that it doesn't give you a great idea of how things are working behind the scenes. Run memcached with the -vv option and it will tell you exactly what's going on. -- Andy Gale

Re: How to use CURRENT_TIMESTAMP in find conditions array

2010-09-20 Thread Andy Dirnberger
Did you try array(..., 'ClubsPlayer.start_datetime = CURRENT_TIMESTAMP')? On Sep 19, 5:38 pm, DerBjörn b.unkh...@googlemail.com wrote: Hi Zaky, yes with time() it works like that: ClubsPlayer.start_datetime =' = date('Y-m-d H:i:s', time()) but i thought there is a easilier way :) Thanks

Re: Why are there no logs?!

2010-09-10 Thread Andy Dirnberger
What are you using for the log setting in core.php? On Sep 10, 7:52 am, psybear83 psybea...@gmail.com wrote: Hi everybody From Ruby On Rails I'm used that while developing my log files are full of informations about what pages were rendered etc. In CakePHP I'm missing this - I don't even

Re: Why are there no logs?!

2010-09-10 Thread Andy Dirnberger
: as mentioned above i use define('LOG_ERROR', 2); On Fri, Sep 10, 2010 at 3:11 PM, Andy Dirnberger andy.dirnber...@gmail.com wrote: What are you using for the log setting in core.php? On Sep 10, 7:52 am, psybear83 psybea...@gmail.com wrote: Hi everybody From Ruby On Rails I'm used

Re: Need help from a routing expert

2010-08-30 Thread Andy Dirnberger
Router::connect('/threads/*', array('controller' = 'threads', 'action' = 'index')); On Aug 30, 7:52 am, Greg Skerman gsker...@gmail.com wrote: Ok so this should be fairly easy right? I have a few controllers (forums, threads and posts) The index of the forums controller shows the list of

hasMany relationship not appearing in array

2010-08-20 Thread Andy Fitz Diack
view for posts (with a comment existing) I only get Posts and Users, with no mention of Comments. Is there a reason for this? Andy Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed

Homepage Sweeper (clear cache) Question

2010-08-07 Thread andy
this? If all else fails... I may just have to put in some code to delete the main Homepage cache file manually after a model is saved or deleted. But I still hope there is a cleaner way... Andy Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: Backend best option

2010-08-03 Thread Andy Gale
generation point of view but maybe not from a performance point of view. Depends how important performance is really. -- Andy Gale http://andy-gale.com http://twitter.com/andygale Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions

Re: CakePHP Tags Plugin Question 2

2010-08-02 Thread Andy Dirnberger
There's an error in your syntax. The line should be $filter = array('Event.postcode' = '4883'); On Aug 2, 11:24 pm, #2Will willjbar...@gmail.com wrote: Sorry but i seem to be struggling today.  Ive got my index page showing my paginated list and filtering by tag, but what if i want to add in

Re: Display images outside webroot folder

2010-07-26 Thread Andy Gale
consider all images url in webroot img Any help plz They are outside the document root so your web server can't serve them. -- Andy Gale http://andy-gale.com http://twitter.com/andygale Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: Element caching using memcache

2010-07-26 Thread Andy Gale
On Mon, Jul 26, 2010 at 1:31 PM, majna majna...@gmail.com wrote: Andy Gale, you can't cache elements  and views in cache engine (1.2 or 1.3, because Cache::read() and Cache::Write is not even used here). It requires refactoring cache() and clearCache() functions (basics.php) to implement

Re: Element caching using memcache

2010-07-25 Thread Andy Gale
://book.cakephp.org/view/434/requestAction -- Andy Gale http://andy-gale.com http://twitter.com/andygale Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP

Re: Link with image and text

2010-07-25 Thread Andy Dirnberger
Things will be different if you're using Cake 1.3, but it will be along the lines of: $this-Html-link($this-Html-image('folio/thumb/' . $feature['Entry'] [0]['image'], array('alt' = __($feature['Portfolio']['title'], true), 'border' = 0)) . 'h3' . $feature['Portfolio']['title'] . '/h3', URL_HERE,

Re: Website Structure

2010-07-22 Thread Andy H
Hi Chaim, This is more of a HTML/css question rather than a cakephp question. Try checking out some web libraries like JQuery or similar. These will help you achieve what you are after On Jul 21, 6:13 pm, Chaim ch...@oxfordshul.com wrote: Hello, I am a beginner to CakePHP, so forgive my

Re: Problems with blog tutorial Warning (512): SQL Error: 1064:

2010-07-12 Thread Andy H
Hi, The first line of you edit function has a mistake. should be $this-Post-id = $id; Good luck! On Jul 9, 11:13 pm, BlaineRumsey bla...@blainerumsey.com wrote: Hello,  I am new to cake and I am trying to complete the blog tutorial in the manual for 1.3  for getting started.  I am at the

Re: 404 Error in Debug Mode

2010-07-07 Thread Andy Dirnberger
The 404 page is the same. When an error occurs in production mode, the site will return a 404 instead of the actual error. That's the only difference in how 404s are handled. The difference that may be tripping you up is that when debug is set to 1+ there is an HTML comment appended to the end of

Re: admin routing.prefix

2010-06-13 Thread Andy Dirnberger
Sounds like you have private function admin_login() in UsersController. Try public function admin_login() instead. On Jun 13, 7:05 pm, Davor Ilic webfa...@gmail.com wrote: with this i mean this link:http://groups.google.com/group/cake-php/browse_thread/thread/4a445f48... 2010/6/14 Davor Ilic

Re: can i use html5 in cakephp?

2010-06-09 Thread Andy Dirnberger
According to the W3C, they expect to reach the recommendation milestone for HTML5 in Q3 2010. http://www.w3.org/2007/03/HTML-WG-charter.html#deliverables On Jun 9, 11:11 pm, calvin cal...@rottenrecords.com wrote: You can use whatever you want, but HTML5 is nowhere near completion. It's not

Re: $pageTitle not working

2010-06-01 Thread Andy Dirnberger
I got around this by adding the following to AppController::beforeRender until I was able to clean up the controllers. if (!empty($this-pageTitle)) { $this-set('title_for_layout', $this-pageTitle); } On May 31, 11:27 pm, Miles J mileswjohn...@gmail.com wrote: This was the one thing I hated

Re: Getting .htpasswd protection to work

2010-06-01 Thread Andy Dirnberger
/path.php. On Jun 1, 11:16 pm, Jeff jhull...@gmail.com wrote: Hi Andy, Actually that is my full path.  At least when I FTP to my server, immediately in the root directory / is the app folder.  Is there anything else that could be wrong? Thanks On May 12, 9:20 pm, Andy Dirnberger

Re: 1.3 prefix routing.

2010-05-28 Thread Andy Dirnberger
In your controller, the current prefix is stored in $this- params['prefix']. It's also available through Router::currentRoute()- defaults['prefix']. On May 27, 6:45 pm, aleph1 cubeythero...@gmail.com wrote: I can't see how to retrieve the current prefix that is being used for routing purposes.

Re: case sensitivity on certain hosting

2010-05-27 Thread Andy Dirnberger
Does that host have a users folder at ..users? On May 27, 11:37 am, leo ponton@gmail.com wrote: I'm having a problem on one of our hostings with case sensitivity. Strangely, it is only on the 'users' controller. If I do '..users/login' it doesn't work. If I do '..Users/login' it does.

Re: How can I consolidate conditions that I will use for every find?

2010-05-22 Thread Andy Dirnberger
This is just a rough idea and will need to be completed (and probably improved some), but hopefully it can get you started. In AppModel: var $schedule_id; function find($conditions = null, $fields = array(), $order = null, $recursive = null) { if (is_array($conditions)) { if

Re: Problems with URLs causing flash too break

2010-05-18 Thread Andy Dirnberger
Do you have a crossdomain.xml file? On May 17, 8:21 pm, Cycling_Joe joespran...@gmail.com wrote: Can anyone guide me to what I am doing wrong. If the www is omitted in my url's it causes my flash  files to break. If I go tohttp://www.mysite.comeverything is fine. If I go

Re: Front-end for end-users and admins design

2010-05-18 Thread Andy Dirnberger
You may want to take a look at prefix routing (admin routing prior to 1.3) http://book.cakephp.org/view/950/Prefix-Routing. On May 18, 9:58 am, Andrei Mita andrei.m...@gmail.com wrote: Thank Renato. Actually I was thinking to develop two separate cake apps: one to run the website for the

Re: Getting .htpasswd protection to work

2010-05-12 Thread Andy Dirnberger
You need to use /the/full/path/to/app/.htpasswd. On May 12, 11:17 pm, Jeff jhull...@gmail.com wrote: Hi, I have the following in my /app/webroot/.htaccess file, as well as a matching .htpasswd file in the correct directory per multiple online how-to's, but my password protection is not

Re: array dump

2010-05-10 Thread Andy Dirnberger
http://book.cakephp.org/view/1128/debug On May 10, 9:06 pm, bradmaxs b...@pezzano.com wrote: Can anyone tell me how to get: Array (     [0] = Array         (             [Portfolio] = Array                 (                     [id] = 1                     [user_id] = 0                

Re: 1.3 omit attribute

2010-05-09 Thread Andy Dirnberger
the automated 'for'  attribute for the $this-Html-label. On Sun, May 9, 2010 at 1:01 AM, Andy Dirnberger andy.dirnber...@gmail.comwrote: Labels are supposed to be used with input fields. You should be using th for table column headers. On May 8, 4:13 pm, ZAky procsh...@gmail.com

Re: 1.3 omit attribute

2010-05-08 Thread Andy Dirnberger
Labels are supposed to be used with input fields. You should be using th for table column headers. On May 8, 4:13 pm, ZAky procsh...@gmail.com wrote: I am trying to omit the auto generated  'for' attribute for $this-Html-label with no success. I tried:

Re: how to select from subquery result

2010-05-07 Thread Andy Dirnberger
Why use the subquery? SELECT * FROM mytable WHERE some_id = 1 GROUP BY block_id HAVING MAX(date) or: $Model-find('all', array( 'conditions' = array('Model.some_id' = 1), 'group' = ('Model.block_id HAVING MAX(date)'), ); On May 7, 6:16 am, Eleazar gerrit.kru...@gmail.com wrote: Hello for

Re: how to select from subquery result

2010-05-07 Thread Andy Dirnberger
,        [original table name 2]-values [1]- etc. What on earth could cause this? I have no idea where to begin! Why is the returned array not formatted  in the usual way? Why would it work on the localhost but not on the online server? Any ideas will be appreciated! On May 7, 4:08 pm, Andy

Re: Cakephp Ajax is not including the javascripts in the view

2010-04-30 Thread Andy Dirnberger
I believe the src attribute of any script tag loaded through an Ajax call is ignored; all JavaScript needs to be included in the original page load or embedded directly in the response. On Apr 30, 3:23 am, Vijay k.vidn...@gmail.com wrote: Thanks for reply andrei. I am calling the normal

Re: wordpress integration without seperate url

2010-04-29 Thread Andy Dirnberger
I think mex is talking about dropping WordPress right into the webroot folder with the ultimate goal being to have http://www.example.com/users going to UsersController in Cake and http://www.examples.com/some-post/ going to WordPress. The problem is, .htaccess would have no easy way of knowing

Re: Validate on

2010-04-22 Thread Andy Dirnberger
Check the Cookbook http://book.cakephp.org/view/127/One-Rule-Per-Field On Apr 22, 10:10 am, Angelo angelo.maior...@gmail.com wrote: Hello, I juste discover ina blog article that we can use a on value in $validate array. Is there somewehere documentation about all value we can put in

Re: Checking multiple columns for duplication checking in model

2010-04-22 Thread Andy Dirnberger
and the model (datasource?). The code that Andy D. (sample) and you posted will, as far as I understand, only handle the case of ensuring uniqueness in the submitted data, not in both the submitted data and the existing data in the table. Correct me if I am wrong :) Enjoy,    John On Apr 22, 6:08 pm

Re: Checking multiple columns for duplication checking in model

2010-04-21 Thread Andy Dirnberger
Here's a stripped down example of how I do it: app_model.php class AppModel extends Model { ... function isUniqueMulti($data, $fields) { if (!is_array($fields)) { $fields = array($fields); } foreach ($fields as $key) { $tmp[$key] = $this-data[$this-name][$key];

Re: Multi-level Models in CakePHP

2010-04-21 Thread andy
Ah, that's interesting! Thanks again for the help. Andy On Apr 21, 2:19 am, WebbedIT p...@webbedit.co.uk wrote: wouldn't one be able to use $this-Model-unbindModel() to take away any unwanted, extra associations? Yes, but that's exactly why Containable was written, it's a convenience

Re: is it advisable to use jquery on cakephp?

2010-04-19 Thread Andy Dirnberger
Check out JsHelper in 1.3 http://book.cakephp.org/view/1594/Using-a-specific-Javascript-engine On Apr 19, 10:17 am, Bryan Lim ytbr...@gmail.com wrote: question as above. I also want to ask if there's an official jquery helper for cakephp? The one at the bakery is kinda outdated. thanks!

Re: Multi-level Models in CakePHP

2010-04-19 Thread andy
... Andy On Apr 19, 12:04 am, WebbedIT p...@webbedit.co.uk wrote: Recursive may do the trick, but you should be getting your head around containable here and if your associations are correct the code Walther provided should have worked. Problem with recursive is if ModelA or ModelB are associated

Re: Multi-level Models in CakePHP

2010-04-16 Thread andy
('CTable'; And Andy, in the future please use real model names, makes it much easier to see what is happening and sometimes people make mistakes when converting to the alphabet models. On Apr 16, 5:12 am, andy sum...@gmail.com wrote: Hi Alan, Thanks for the idea.  I tried using

Re: Multi-level Models in CakePHP

2010-04-16 Thread andy
Using recursive seems to be a way to go about it: $this-set('a', $this-ATable-find('all', array('recursive' = '2'))); I found this via the following post: http://stackoverflow.com/questions/137314/three-table-related-model-in-cakephp Hope that helps someone. Andy Check out the new CakePHP

Multi-level Models in CakePHP

2010-04-15 Thread andy
/2f1922523c17/9b2db4b7a05ce1e8?lnk=gstq=hasmany+hasmany# And it sounds like something that was addressed with CakePHP 1.3. So I'm using 1.3 (RC4)... yet it doesn't seem to allow me to use multi- level models. Thanks for any help, Andy Check out the new CakePHP Questions site http://cakeqs.org and help

Re: Multi-level Models in CakePHP

2010-04-15 Thread andy
) ) ) ) ) ) On Apr 15, 5:38 pm, andy sum...@gmail.com wrote: Has anyone successfully been able to do something like this?  (I'm using CakePHP 1.3 RC4) I have three models: class ATable extends AppModel {     var $name = 'ATable';     var $hasOne = array('BTable' = array

Re: Multi-level Models in CakePHP

2010-04-15 Thread andy
Hi Alan, Thanks for the idea. I tried using 'contain' just now and I still am just seeing ATable and BTable results in the returned array. I'll keep playing around with containable anyhow... Andy On Apr 15, 7:16 pm, Alan Asher a...@asteriskpound.com wrote: I think you need a contain

Re: Can I stop the page from re-rendering after a form submission?

2010-04-14 Thread Andy Dirnberger
Cake doesn't insist on anything. The nature of clicking a submit button in a form is to submit the form. That means the browser sends the post/get request to the server and loads the response. If you want different behavior, you need to catch the submit event through JavaScript and cancel it. The

Re: Allowing access to plugin pages

2010-04-09 Thread Andy Dirnberger
Try $this-Auth-allow('*'). I think the addition of array() is what's tripping you up. On Apr 9, 4:48 pm, TobyG toby.i.griffi...@googlemail.com wrote: Hi there, Just wondering how to grant access to a plugin page using Auth. Have tried using... $this-Auth-allow(array('*')); in the before

Re: Yet another HABTM multiple checkbox query, cakePHP 1.3 RC3

2010-04-05 Thread Andy Dirnberger
Why are you trying to save to the relationship table? Cake will do that for you automatically. What does your view look like (at least the part that creates the form)? Provided your HABTM is set up correctly in the models and view, calling $this-Model-save($this-data) in the controller should be

Re: Retrieving objects from the DB instead of arrays

2010-03-30 Thread Andy Dirnberger
Why not perform your manipulations in afterFind? http://book.cakephp.org/view/681/afterFind If you add an 'age' key to the result in the callback (my guess is you store the date of birth in the database, not the current age), you can then use $person['Person']['age'] in your view. On Mar 30,

Re: How use __consruct in model

2010-03-09 Thread Andy Dirnberger
You need to do two things: 1. Accept all of the parent constructor's parameters 2. Call the parent constructor function __construct($id = false, $table = null, $ds = null) { parent::__construct($id, $table, $ds); ... } That said, I'm not exactly sure what you're doing with parent::$this-

Re: Calling custom methods in related models

2010-03-07 Thread Andy Dirnberger
What happens if you change SisField::$hasMany to var $hasMany = array('SisQueue');? pardon for my dumbness but I did not understand what you are asking me to do...in the model hasMany is already var hasMany= I'm asking you to change $hasMany from what you have to the shorter version I

Re: Calling custom methods in related models

2010-03-06 Thread Andy Dirnberger
What happens if you change SisField::$hasMany to var $hasMany = array('SisQueue');? On Mar 6, 9:02 pm, mathaios mathaio...@gmail.com wrote: yes Paul this is the problem! $this-SisField-SisQueue-belongsTo does return an empty array instead of the real one. Clearly Cake is auto-creating the

Re: Calling custom methods in related models

2010-03-04 Thread Andy Dirnberger
What is the actual name of model2 and what is its filename? If the file isn't being found, model2 is of type AppModel and not model2, which would explain why you can't access a method defined in model2. On Mar 4, 12:36 pm, mathaios mathaio...@gmail.com wrote: Hallo all bakers! I hope someone can

Re: file upload with ajax

2010-03-03 Thread Andy Dirnberger
XMLHttpRequest cannot upload files. The two ways to give the appearance of Ajax are with Flash (e.g., Uploadify, SWFUpload, etc.) and with an iframe. Either way, only the data from $_POST ends up in $this-data. To access any uploaded files, you need to use $_FILES. Check out the new CakePHP

Re: Question about relationships, extending the blog tutorial

2010-02-25 Thread Andy Dirnberger
Glad to hear you were able to get that resolved. Check out the documentation for the Auth component http://book.cakephp.org/view/172/Authentication, in particular the user method http://book.cakephp.org/view/387/user. On Feb 24, 3:04 pm, deek derek.bon...@gmail.com wrote: Andy, It looks like

Re: Question about relationships, extending the blog tutorial

2010-02-24 Thread Andy Dirnberger
and the it does not output any of the information.  If I put ?php echo $post['User']['id']; ? or ?php echo $post['User']['username']; ? those values will output just fine but not displayname, what might cause this? On Feb 23, 8:36 pm, Andy Dirnberger andy.dirnber...@gmail.com wrote: Did you try

Re: Question about relationships, extending the blog tutorial

2010-02-23 Thread Andy Dirnberger
'         ),         'frontpage' = array(             'rule' = 'numeric'         )     );} On Feb 23, 12:01 am, WebbedIT p...@webbedit.co.uk wrote: ^^ What @Andy says is right. Simple rule of thumb for hasMany/hasOne - belongsTo relationships ... whichever model your foreign_key is in, it belongs

Re: Question about relationships, extending the blog tutorial

2010-02-22 Thread Andy Dirnberger
Try $belongsTo instead of $hasOne. $belongsTo = array('User'); On Feb 22, 7:03 pm, deek derek.bon...@gmail.com wrote: First of all let me say I'm very new to CakePHP and complex PHP in general.  I based the blog I am working on off the tutorial on the CakePHP website. I skipped creating ACL

Re: Keeping State

2010-02-22 Thread Andy Dirnberger
It's still sessions: http://book.cakephp.org/view/173/Sessions On Feb 22, 9:01 pm, Josh LaMar jola...@umail.iu.edu wrote: Hi all, This is my first post. I am new to CakePHP but I have experience programming in PHP and Python/CGI. Anyways I want to get comfortable switching over to CakePHP by

Re: Using saveAll to insert new fields, update old fields

2010-02-18 Thread andy
I purposely put the closing /form tag at the very end of my generated HTML (and verified by viewing the generated HTML source.) Thanks for the help anyway. I should have realized I was appending outside of the form tags. Andy On Feb 17, 1:57 am, WebbedIT p...@webbedit.co.uk wrote: No, you do

Re: Using saveAll to insert new fields, update old fields

2010-02-18 Thread andy
For future reference for anyone else having the same issue... it turns out that the current HTML FORM tag has a certain scope that needs to be within the same (or within the same,) DIV. I ended up having one FORM tag inside of a DIV... and then had the ending /FORM tag outside of the DIV. Check

Re: Using saveAll to insert new fields, update old fields

2010-02-17 Thread andy
No worries about a test case :-) I'll just keep testing different parts of it until something works... it seems like it should work but maybe I am forgetting something. Thanks for your help anyway. Andy On Feb 17, 1:57 am, WebbedIT p...@webbedit.co.uk wrote: No, you do not need the single

Re: Using saveAll to insert new fields, update old fields

2010-02-17 Thread andy
I wonder if this could be a partial caching issue with the view... - Any fields in the form at first page view will save. - Any fields added via jQuery after first page view are not saved. Does anyone know if CakePHP partially caches a form (view) the first time it is loaded? Check out the new

Re: Using saveAll to insert new fields, update old fields

2010-02-16 Thread andy
for the existing entries... but for the newly added (DOM/HTML) fields, no success. Do you know if those single quotes matter in this case? Thanks, Andy Thanks again for your help. On Feb 16, 12:36 am, WebbedIT p...@webbedit.co.uk wrote: In your first two representations of your data array

Re: Associated model won't load

2010-02-16 Thread andy
Does it work if you try doing a $this-Subject-find() instead of using paginate? Just to see if that works... On Feb 16, 9:37 am, Furuno furunom...@gmail.com wrote: Okay, so, I have two models called Program and Subject, here's the classes : program.php ?php class Program extends AppModel

Re: Associated model won't load

2010-02-16 Thread andy
Do you know what version of CakePHP you are running? On Feb 16, 10:00 am, Furuno furunom...@gmail.com wrote: Nope... :( Just to make sure, I tried that once again with : $this-set('subjects', $this-Subject-find('all')); still no luck... On 17 Feb, 00:56, andy sum...@gmail.com wrote

Re: Using saveAll to insert new fields, update old fields

2010-02-15 Thread andy
It appears to work when I manually put in a new input form field into the view... instead of having it being added via jQuery: [data] = Array ( [Event] = Array ( [0] = Array ( [title] =

Re: Redirects from Old URL

2010-02-15 Thread andy
There is an article on this page that may help you redirect the old .htm pages to the new format... in the article it talks about using .php at the end of the redirect... but in your case you would probably just have no extension at the end of your URL. This is all assuming that you are using an

Re: Using saveAll to insert new fields, update old fields

2010-02-15 Thread andy
But I am wanting to use jQuery/Javascript to dynamically add a new form item before saving... I'll keep poking around with it but I am still curious as to if there is a limitation on form-creation with CakePHP... On Feb 15, 12:40 pm, andy sum...@gmail.com wrote: It appears to work when I

Re: Using saveAll to insert new fields, update old fields

2010-02-14 Thread andy
something to a form in the HTML before saving? When I add a new event... I'm purposely not putting a new id in the UL's LI for that new event item. The id should be added automatically in my database and it would most likely be a different number. Thanks, Andy On Feb 14, 1:00 am, WebbedIT p

Re: Using saveAll to insert new fields, update old fields

2010-02-14 Thread andy
Sorry, that array actually should look like this (I had previously commented out something...) Array ( [Event] = Array ( [0] = Array ( [title] = First Event [description] = This is the first event.

Re: Using saveAll to insert new fields, update old fields

2010-02-14 Thread andy
Also, if it helps... here is the HTML output of a newly-added form event added to the HTML... before saving with CakePHP: span class=ui-icon ui-icon-arrowthick-2-n-s/span div class=input text label for=Event1TitleTitle/label input name=data[Event][1][title] maxlength=255 id=Event1Title

Re: Jquery Popup Form

2010-02-14 Thread andy
Have you tried putting anything like 'onclick' = false? (I forget if false needs to be in quotes or not for this type of check...) ?php echo $html-link('Demo', array('controller'='posts','action'='add'), array('class'='popupButton', 'onclick' = 'false')); or ?php echo $html-link('Demo',

Inner join querys: two fields from one table

2010-02-03 Thread andy
| Fifth Grade | Is there any way I can do this natively in CakePHP? Any tips would be appreciated. Thanks, andy Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google

Re: Inner join querys: two fields from one table

2010-02-03 Thread andy
in the title of this post as well. Thanks, andy On Feb 3, 11:17 am, andy sum...@gmail.com wrote: Hello, Sorry for the strangely-worded question title.  I've been searching around for a few days here on the CakePHP doc book, CakePHP group, and around the Internet but I haven't been able

Re: Autocomplete inline styles

2009-12-01 Thread Andy
My solution for now is to use the !important qualifier in my css, which will override any inline styles. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups

Autocomplete inline styles

2009-11-30 Thread Andy
I'm having problems styling the div that is created by the $ajax- autoComplete() function. My code is identical to the example in the book - http://book.cakephp.org/view/632/autoComplete. The functionality works great - the callback works and the data gets filled in properly. The problem, it

Problems setting up a simple Authentication

2009-09-16 Thread Andy
that location. As I mentioned, on occasions the second call to the login has not happened and I am successfully logged in, I can't tell you what is different to male this happen. I wish I knew. I'm a bit lost as to where to look next as I seam to be going round in circles. Best Regards Andy

Re: Data Formatting Errors

2009-08-19 Thread Andy
://groups.google.com/group/cake-php/browse_thread/thread/4f462c16... On Aug 18, 5:10 pm, Andy and...@websitesthatdostuff.com wrote: Greetings, all,      I'm working on a CMS based on CakePHP and I've been enjoying working with Cake so far. However, I'm having some issues saving information. My

Data Formatting Errors

2009-08-18 Thread Andy
and categories. Would you all have any comments or suggestions on what I need to do to get this working correctly? Thanks for your time! ~Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

Re: set not working

2009-06-22 Thread andy
Is 'type' a possible value for $this-params['action']? Rather than setting the 'test' variable, have you tried to echo something from that action just to be sure the routing is correctly taking you to there? On Jun 21, 6:37 pm, thatsgreat2345 thatsgreat2...@gmail.com wrote: When I use $this-set

Re: How setting path for only one layout

2009-06-03 Thread andy
Petr, Read http://book.cakephp.org/view/428/render. On Jun 2, 1:40 pm, Petr Vytlačil petr.vytla...@gmail.com wrote: APP CONTROLLER  function beforeRender(){             if($this-params['controller']=='frontends'){                  // This do nothing                  $viewPaths =

Re: Error Installation CakePHP 1.2.

2009-05-28 Thread andy
If you remove the echo $html-meta('icon'); line, does the page display correctly? On May 27, 6:17 am, iammikek mi...@brightstorm.co.uk wrote: We're getting the same issue with php5.2.5 using the cake_1.2.3.8166 release so suggest the issue doesnt only apply to php4. Anyone got any ideas why

Re: find list distinct

2009-05-26 Thread andy
What error displays? On May 25, 2:21 pm, fain182 fain...@gmail.com wrote: Take a look athttp://book.cakephp.org/view/809/find-count i tried: $this-set('stati',      $this-{$this-Singular}-Sito-Stato-find(                'list',                array('fields'='DISTINCT stato')       ) );

Re: find list distinct

2009-05-25 Thread andy
Take a look at http://book.cakephp.org/view/809/find-count On May 24, 3:30 am, fain182 fain...@gmail.com wrote: hello, i have a table 'posts' like: id, author, subtitle, text, other fields.. i want to make a search with some select(one for author, one for subtitle, ecc.), what is the best

Re: how to abort save?

2009-05-25 Thread andy
Why not allow the blank record to save as NULL? On May 24, 9:01 pm, cakephp101 valenzuela...@gmail.com wrote: thanks for the reply but the thing is it's ok for the field to be empty but it should not be saved in the database. i'm using foreach loop for my saveAll for each of the fields so i

Auth component on IIS7

2009-05-21 Thread andy
Has anyone ever had a problem with the Auth component not working properly on an IIS7 server? I am able to login and am redirected to the appropriate page. However, if I try to access another protected page, I am immediately logged out. I have the same code on an Apache and it works great.

Re: last_login update

2009-05-19 Thread andy
] = */*                 )             [__renderType] =             [ext] =             [__typesInitialized] =             [_log] =         ) ) 2009/5/18 andy andy.baugh...@gmail.com If you print_r($this-Auth), what keys/values are included in the array? On May 18, 4:09 am, paulos

Re: last_login update

2009-05-18 Thread andy
If you print_r($this-Auth), what keys/values are included in the array? On May 18, 4:09 am, paulos nikolo paulitosthe...@gmail.com wrote: Yeah Andy i tried this but still nothing.Dunno what else i have to do.Thx anyway for your idea! 2009/5/18 andy andy.baugh...@gmail.com I may be wrong

  1   2   >