QA Automation - Alpharetta GA - 3+Months Contract

2015-06-02 Thread Andy Johnson
k from you! 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 • Em

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. use

Re: Archive old data from model's table

2012-07-25 Thread Andy Gale
h this: https://github.com/deeeki/cakephp-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 htt

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

2012-07-25 Thread Andy Gale
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 -- Our newest site for the commun

Re: LESS CSS

2012-07-19 Thread Andy Gale
hp/how-to-use-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 CakePH

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. 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 f

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

Re: CakePHP 2.0.3 out of the oven

2011-11-17 Thread Andy Gale
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 hel

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

2011-09-11 Thread Andy Gale
estions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- A

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 appreci

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 wrote: > Hi, I got this message callingwww.bodoquemkt.com.br/users/knownusers > . > > Thi

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 wrote: > My mistake, "i" goes after the forward slash. > > *'rule' => array('custom', '/^[\-\'\.\sa-zA-Z]+$/i'),* > > On 29 November 2010 08:53, Stephen wrote: > > > > > > > > > >

Re: Memcached not working on "default" settings

2010-09-21 Thread Andy Gale
On Tue, Sep 21, 2010 at 4:02 PM, j.blotus 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. --

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 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 anyway! Check out th

Re: Why are there no logs?!

2010-09-10 Thread Andy Dirnberger
am, Joshua Muheim wrote: > as mentioned above i use > > define('LOG_ERROR', 2); > > On Fri, Sep 10, 2010 at 3:11 PM, Andy Dirnberger > > > > wrote: > > What are you using for the log setting in core.php? > > > On Sep 10, 7:52 am, psybear83 wrote:

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 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 seem to have a l

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 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 available forum

hasMany relationship not appearing in array

2010-08-20 Thread Andy "Fitz" Diack
'className' => 'User', 'foreignKey' => 'user_id', 'conditions' => '', 'fields' => '', '

Homepage Sweeper (clear cache) Question

2010-08-07 Thread andy
idea how I could do 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 t

Re: Backend best option

2010-08-03 Thread Andy Gale
eneration 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. Yo

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" 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 more filters? > >

Re: Element caching using memcache

2010-07-26 Thread Andy Gale
On Mon, Jul 26, 2010 at 1:31 PM, majna 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) t

Re: Display images outside webroot folder

2010-07-26 Thread Andy Gale
s cake 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 Cake

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)) . '' . $feature['Portfolio']['title'] . '', URL_HERE,

Re: Element caching using memcache

2010-07-25 Thread Andy Gale
hp.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&qu

Re: Website Structure

2010-07-21 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 wrote: > Hello, > > I am a beginner to CakePHP, so forgive my amateur question. >

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 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 edit post > section

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 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-10 Thread Andy Dirnberger
ecommendation stage isn't expected to be reached until > 2012:http://wiki.whatwg.org/wiki/FAQ#When_will_HTML5_be_finished.3F > > On Jun 9, 10:04 pm, Andy Dirnberger wrote: > > > > > According to the W3C, they expect to reach the recommendation > > milestone for HTML5

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 wrote: > You can "use" whatever you want, but HTML5 is nowhere near completion. > It's not even expected to become

Re: Getting .htpasswd protection to work

2010-06-01 Thread Andy Dirnberger
t /app/ webroot/path.php. On Jun 1, 11:16 pm, Jeff 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

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 wrote: > This was the one thing I hated that they changed. Too

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 wrote: > I can't see how to retrieve the current prefix that is being used for > routing purposes. > > For example, if

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 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. > If I move the

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 (!array_key_ex

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 wrote: > Thank Renato. Actually I was thinking to develop two separate cake apps: one > to run the website for the end-users and one, nested

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 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 tohttp://mysite.comall my flash files s

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 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 working.  Can someone t

Re: array dump

2010-05-10 Thread Andy Dirnberger
http://book.cakephp.org/view/1128/debug On May 10, 9:06 pm, bradmaxs 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
this wasn't my question. > > How do I omit the automated 'for'  attribute for the $this->Html->label. > > > On Sun, May 9, 2010 at 1:01 AM, Andy Dirnberger > > wrote: > > > > Labels are supposed to be used with input fields. You should be using > >

Re: 1.3 omit attribute

2010-05-08 Thread Andy Dirnberger
Labels are supposed to be used with input fields. You should be using for table column headers. On May 8, 4:13 pm, ZAky wrote: > I am trying to omit the auto generated  'for' attribute for > $this->Html->label with no success. > > I tried: > $this->Form->label('status','Status',array('for'=>fal

Re: how to select from subquery result

2010-05-07 Thread Andy Dirnberger
e 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 Dirnberger wrote: > > > > > > > Why use the subquery? > > > SELECT * FROM mytable WHERE some_id = 1 GROUP BY block_

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 wrote: > Hello > for the life of me I c

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 wrote: > Thanks for reply andrei. > > I am calling the normal javascript functions or

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 for

Re: Checking multiple columns for duplication checking in model

2010-04-22 Thread Andy Dirnberger
database 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 a

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 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 > $validate array? > > Th

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

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-19 Thread andy
sults. Thanks for the tip on containable... Andy On Apr 19, 12:04 am, WebbedIT 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

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 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! > Bryan > > Chec

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-

Re: Multi-level Models in CakePHP

2010-04-16 Thread andy
tain'=>array('BTable' => array('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

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" wrote: > I think you need a contai

Re: Multi-level Models in CakePHP

2010-04-15 Thread andy
t; 1 [name] => C [b_table_id] => 1 [weight] => 1 ) ) ) ) ) ) On Apr 15, 5:38 pm, andy wrote: > Has anyone successfully been able to do something like this?  (I'm > using CakePHP 1.3 RC4) > > I have three models: > > class ATa

Multi-level Models in CakePHP

2010-04-15 Thread andy
d] => 1 [name] => B [a_table_id] => 1 [weight] => 1 ) ) ) Any idea why CakePHP isn't giving me a complete "tree" of results? I read about something similar happening for someone else

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 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 filter for the cont

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 b

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, 11:

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

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 versio

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 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 model. > I have t

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 wrote: > Hallo all bakers! I hope someone can help me... > > I ha

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 Ques

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 wrote: > Andy, > > It looks like the debug

Re: Question about relationships, extending the blog tutorial

2010-02-24 Thread Andy Dirnberger
ar $belongsTo = > > array('User');" but I have tried putting " > ['displayname']; ?>" in my index.ctp and the it does not output any of > > the information.  If I put or > echo $post['User']['username']; ?> those values

Re: Question about relationships, extending the blog tutorial

2010-02-23 Thread Andy Dirnberger
tle' => array( >             'rule' => 'notEmpty' >         ), >         'category' => array( >             'rule' => 'notEmpty' >         ), >         'body' => array( >             'rule'

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 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 developing a si

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 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 or a more complex man

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 tag has a certain scope that needs to be within the same (or within the same,) . I ended up having one tag inside of a ... and then had the ending tag outside of the . Check out the new CakePHP Que

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

2010-02-18 Thread andy
y put the closing 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 tags. Andy On Feb 17, 1:57 am, WebbedIT wrote: > No, you do not need the single quotes within th

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-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 wrote: > No, you do not need the single quotes wi

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 wrote: > Nope... :( > > Just to make sure, I tried that once again with : > $this->set('subjects', $this->Subject->find('all')); > > still no luck... > > On

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 wrote: > Okay, so, I have two models called Program and Subject, here's the > classes : > > program.php > class Program extends AppModel { >         var $h

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

2010-02-16 Thread andy
quotes matter in this case? Thanks, Andy Thanks again for your help. On Feb 16, 12:36 am, WebbedIT wrote: > In your first two representations of your data array there was no > second event.  As long as the fields you are inserting for the 2nd > event follow the data['Event&#x

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 wrote: > It appears to work when I manually

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 A

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: 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...) link('Demo', array('controller'=>'posts','action'=>'add'), array('class'=>'popupButton', 'onclick' => 'false')); or link('Demo', array('controller'=>'posts','actio

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: Title Description Weight On Feb 14, 1:00 am, WebbedIT wrote: > Paste a copy of the data array that is getting to your controller > aft

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
g in CakePHP.) Has anyone tried dynamically adding 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 d

Using saveAll to insert new fields, update old fields

2010-02-13 Thread andy
Is there something I am doing wrong in the way I have those form inputs titled? I am just trying to find out how to have CakePHP's saveAll() recognize that I have, in fact, added new form fields that I want to be INSERTed into the database. :-) Thanks for any pointers... Andy Check out

Re: Inner join querys: two fields from one table

2010-02-03 Thread andy
uot;querys" in the title of this post as well. Thanks, andy On Feb 3, 11:17 am, andy 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 bu

Inner join querys: two fields from one table

2010-02-03 Thread andy
garten | 6 | 5 | 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 subscribe

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 "Ca

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 app

Problems setting up a simple Authentication

2009-09-15 Thread Andy
t authorized to access 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

Re: Data Formatting Errors

2009-08-19 Thread Andy
com/group/cake-php/browse_thread/thread/4f462c16... > > On Aug 18, 5:10 pm, Andy 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

Data Formatting Errors

2009-08-18 Thread Andy
ish ) ) Right now I'm passing this into Cake and doing a saveAll() call. It saves the post correctly, but erases all related tags and categories. Would you all have any comments or suggestions on what I need to do to get this working correctly? Thanks for your tim

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 wrote: > When I use $this->set in my controller it d

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 wrote: > APP CONTROLLER > >  function beforeRender(){ >             if($this->params['controller']=='frontends'){ >                  // This do nothing >                  $viewPaths = array(CAKE_CORE_INCLUDE_PA

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 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 this happening?

Re: find list distinct

2009-05-26 Thread andy
What error displays? On May 25, 2:21 pm, fain182 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: 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 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 want to know how to >

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 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 way? it's po

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. --~--~-

  1   2   >