Great opportunity - looking for an outstanding CakePHP lead developer for a mathematics education business.

2015-02-24 Thread adam
Hi. We are looking for an outstanding CakePHP lead developer for our mathematics education business. The business is in Los Angeles, and the developer can be here or anywhere. Can anyone recommend someone? Thanks, Adam -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Migrating from 1.3 to 2.x

2013-09-29 Thread Adam Perks
Is it best to upgrade from 1.3 to 2.0, then from 2.0 to 2.1, then 2.1 to 2.2, etc. Or, do I just upgrade directly to 2.4? -- 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

Re: ACL - delete groups?

2012-10-18 Thread Adam Strom
Thanks, Jeremy - that's just the answer I needed. The docs seemed to indicate that this type of handling would be taken care of by the Acl component of Cake, so thanks for clearing it up. I appreciate the help! Best, Adam On Thursday, 18 October 2012 00:49:54 UTC-4, Jeremy Burns wrote

ACL - delete groups?

2012-10-17 Thread Adam Strom
() - Couldn't find Aro node identified by Array ( [Aro0.model] = User [Aro0.foreign_key] = 16 ) Even if I assign them to an existing group, the update occurs within the Users table but the aros table never gets a new entry for that user. Any thoughts? Thanks! Adam -- Like Us on FaceBook

Re: CakePdf - How To Start?

2012-09-02 Thread Adam Symonds
I'm not sure, I would expect it can be done however depending on the engine you are using, maybe ask directly on the github site. Did you manage to work out how to connect the pdf's into an email by any chance? I am struggling to work this out, I can only get the PDF to download at the moment.

Re: CakePdf - How To Start?

2012-08-30 Thread Adam Symonds
The readme file on github as been updated and contains the information you'll need to get this setup. Make sure you use the latest version of code too. -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: CakePdf - How To Start?

2012-08-23 Thread Adam Symonds
://developers.google.com/chart/ - Mostly the table, line and pie charts. Regards, Adam Symonds Elogic Media On Thu, Aug 23, 2012 at 11:36 PM, Ceeram c33...@gmail.com wrote: I fixed the notice: https://github.com/ceeram/CakePdf/commit/efb6f480d28676f95d1860dd95f71aa01da5a0a5 On Thursday, August 23, 2012 3

Re: CakePdf - How To Start?

2012-08-22 Thread Adam Symonds
I think the issue is I have been trying parts from both of the CakePdf functions out there. I am going to try this from scratch on a new project and see what happens. Thanks -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group,

Re: url=controller/function appears now in my url address bar

2012-07-03 Thread Adam Symonds
Thanks, I did miss it. This did the trick. Regards, Adam Symonds Elogic Media On Wed, Jul 4, 2012 at 5:24 AM, lowpass zijn.digi...@gmail.com wrote: On Tue, Jul 3, 2012 at 12:46 AM, elogic asymo...@elogicmedia.com.au wrote: I checked this all out but I couldn't see anything that was wrong

Using 2.2.0-RC2 dynamic validation API from the Controller

2012-06-21 Thread Adam Duro
I am trying to use the CakePHP 2.2.0-RC2 dynamic validation API to create a new validation rule for a Model via a Controller. First of all, is this possible at all? So far when I try and run this in a controller: $this-Campaign-validator()-add('advertiser_id', 'notEmpty', array( 'rule'

Re: how to generate this sql

2012-06-19 Thread Adam Symonds
' ) ) ); $this-set('doubles', $doubles); - Thanks Adam On Wed, Jun 20, 2012 at 1:16 AM, dogmatic69 dogmati...@gmail.com wrote: Cake does not support HAVING but you can put it in the group as a string. Something like the following: $this-Timesheet-virtualFields = array

Re: how to generate this sql

2012-06-19 Thread Adam Symonds
('doubles', $doubles); - Thanks Adam On Wed, Jun 20, 2012 at 1:16 AM, dogmatic69 wrote: Cake does not support HAVING but you can put it in the group as a string. Something like the following: $this-Timesheet-**virtualFields = array( 'count_name' = 'COUNT(id

Moving servers

2011-02-13 Thread Adam Harness
I am moving a cake built website to another server. All pages in the cake app directory are not found when attempting to open in the browser. Any insight would be helpful and greatly appreciated. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the

How would you solve this problem?

2011-01-14 Thread Adam
Disclaimer: I can't program. Every morning I gather the same information off the internet for my job. My organization insists on having this information in a powerpoint presentation form, but the hour a day spent compiling it is really killing me. I might as well be typing it out and sending

Re: Auto-fill Date Values In Form

2010-11-06 Thread Adam
have liked. Adam 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 group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Auto-fill Date Values In Form

2010-11-04 Thread Adam
Thanks Paul, I really wanted it in a standard, form-helper format - - MM - DD drop-downs. I spent more time on it than i wanted to so in the end I just exploded the date value from the DB and manually assigned them each to day, month and year form-inputs with their set values. Like I said

Auto-fill Date Values In Form

2010-11-03 Thread Adam
this won't work. Does anyone have any suggestions how to extract the D, M Y values out of a date string using Cake i.e. $job['Job']['date']['month'] etc.? I was thinking I could make my own separate inputs for each day, month and year... Thanks, Adam Check out the new CakePHP Questions site http

Re: Learn CakePHP

2010-10-30 Thread Adam
I had only been working with PHP for a month before I started with frameworks. CakePHP was a little heavy to grasp at first (MVC OOP), but I built a project using CodeIgniter. After that I had to do another one using Cake, so I had to learn and it only took a week before I couldn't get enough.

HABTM

2010-10-27 Thread Adam
( Group = array() User = array( 0 = array( ) 1 = array( ) ) ) If anyone has experience with this, that would be great. Adam Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you

Cheat Sheet is DOwn

2010-08-26 Thread Adam
I went to download the cheat sheet, because it's awesome, and I got a file not found error: Error: The requested address '/files/Resources/CakePHP-1.2- Cheatsheet.pdf' was not found on this server. Luckily google had it cached, but it might be a good idea to fix it for other folks. Adam Check

Can anyone tell me why this is necessary (behaviors on associated models)

2010-06-22 Thread Adam
if($this-Category-Behaviors-enabled('Restricted')) { $this-Category-Behaviors-disable('Restricted'); // surely this shouldn't be necessary?

Help please.... Postgres find() returns different array format as Mysql find()

2010-04-19 Thread Adam
Do I just have to re-write my application if I'm using Postgres? I thought I could switch databases and cake would handle it for me? The array format for associated tables is different in Postgres than it is in Mysql Check out the new CakePHP Questions site http://cakeqs.org and help others

Postgresql find() puts all recursive associated tables in one array why?

2010-04-17 Thread Adam
Hi, When I do $data = $this-Post-find(post.id=$id,id, title, null, 1); I am looking to get the associated Account back in the returned array. Instead I am getting the account columns back in the same array as the post columns. What I'm calling: $this-Post-find(post.id=$id,'id, title', null,

Postgresql find() buts all associated data in same array row. Why?

2010-04-17 Thread Adam
Hi, When I do $data = $this-Post-find(post.id=$id,id, title, null, 1); I am looking to get the associated Account back in the returned array. Instead I am getting the account columns back in the same array as the post columns. What I'm calling: $this-Post-find(post.id=$id,'id, title', null,

Find() returns different formatted array when using Postgresql vs Mysql ( any way to resolve this? )

2010-04-14 Thread Adam
When I do a find and get 1 row back in Postgres it has to be referenced like $data[0][email] whereas in Mysql you can do $data[Account][email]. I just migrated from Mysql to Postgres so I just have to go thru and change all single result queries that formerly worked in Mysql as

Is there a way to speed up cake for a high traffic website ( Cake + Postgres )

2010-04-12 Thread Adam
I've been developing cake with Postgres db and I see that the postgres logs are getting hit alot with lots of queries from a simple db select. I try using contain to limit associations but it seems that Cake is doing alot of other things other than the simple find()/select that I'm doing. Are

Is there a way to turn of Transactions???

2010-04-12 Thread Adam
I'm using Postgresql so I think I don't need the transaction calls in Cake. Can I turn this off in the Model? I think this is where it is in the libs model... /** * Whether or not to enable transactions for this model (i.e. BEGIN/ COMMIT/ROLLBACK statements) * * @var boolean * @access public

Cakephp Postgres BEGIN ROLLBACK on action call even when there are no queries?

2010-04-12 Thread Adam
Is there a way to eliminate the BEGIN ROLLBACK statement calls to Postgres when there are no DB queries in an action? I don't know where I can find these statements in the code. I preferably would like to get rid of the BEGIN ROLLBACK statements all together since Postgres is already

Cakephp Postgres 99 ms for INFORMATION_SCHEMA queries???? What gives?

2010-04-08 Thread Adam
these INFORMATION_SCHEMA queries go away? Why are they there? Cheers, Adam 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 group. To post to this group, send

Any popular Image Components being used that are better than the rest?

2010-04-07 Thread Adam
/image-upload-and-resize-component-for-cakephp-12/ I'm looking to handle image uploads and resizing of gifs jpg pngs etc Cheers, Adam Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you

Cakephp with Postgres and find() returns indexed based arrays instead of by Model name

2010-04-07 Thread Adam
dilemna correctly. Any help would be greatly appreciated. Cheers, Adam 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 group. To post to this group

Should I migrate from RC 1.1 to RC 1.2 or 1.3 ????

2010-04-05 Thread Adam
the codebase to 1.2 or 1.3? Or should I just keep developing in RC 1.1? Am I locking myself out of the newer components or contributions since the latest will most likely be compatible with RC 1.2 / 1.3 ? Any feedback would be greatly appreciated. Thanks guys ( girls )... : ) Adam Check out the new CakePHP

strcasecmp()

2010-03-27 Thread adam k
I'm new to PHP... I expect this to return -1. But, why does this: echo strcasecmp(First,Second); return this?: -1 3 What's up with the 3? Thanks! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this

Re: Design Pattern == Erroneous?

2009-10-20 Thread adam
@Amit: I thought the same thing, but you can't really return something to the browser from a Component @j0n4s: It's not speed, it's having one controller that handles typical generic requests, so that you don't have ajax_* actions in 15 or so different controllers Adam On Oct 20, 7:56 am

Re: Admin Controller

2009-10-20 Thread adam
I always thought the same thing as Dave, but finally gave up because there is no other sensible solution. I never thought to put common methods in app_controller!! I'm so glad I opened this thread, because this just made cake so much more elegant for me. On Oct 20, 11:55 am, Dave Maharaj ::

Design Pattern == Erroneous?

2009-10-19 Thread adam
Hey all, Curious about a design pattern I schemed up while daydreaming at work today. Instead of littering every controller with actions that are used for standard ajax requests(ajax_validate, ajax_save, etc), I thought up using an AjaxController, with no table, that has those standard actions.

Re: Regular Expression

2009-10-19 Thread adam
More elegant would be: /^[a-z]+$/i The i specifying that it is case-insensitive irc.freenode.net #regex is a better place for your question, btw On Oct 19, 2:26 pm, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: Right on, I ended up using 'rule' = array('custom', '/^[A-Za-z

Re: How to do shipping address same as billing in Cake?

2009-10-19 Thread adam
Anything like that--a user interface feature--should be handled with JavaScript. Save the server-side for the server-side. On Oct 19, 10:06 pm, Tamim A. tmpan...@gmail.com wrote: Hi All, I am working on a project that requires one of those options where you check Shipping address is same as

Re: gwoo Leaving CakePHP??

2009-10-14 Thread Adam
Looking at some irc logs its true and he left a week ago. Starts Oct 15th, 15:40 PhpNut: jose_zap actually he [gwoo] resigned over a week ago PhpNut: right before I took the project over again Ceeram: wouldnt it be great if PhpNut and Gwoo were both still on the project Ceeram: disagreement

Re: changing $session-flash('auth'); layout

2009-09-25 Thread adam
, Sep 24, 2009 at 8:54 PM, adam abennett...@sbcglobal.net wrote: Sorry.  When calling $session-flash('auth'); in my layout, it outputs the message like this: div id=authMessage class=messageMESSAGE HERE/div I would like it to be whatever I want it to be.  When calling $this- setFlash

changing $session-flash('auth'); layout

2009-09-24 Thread adam
i am implementing a layout and am sad that i can not change the auth flash layout, instead i am having to use session-check(), then session-read(), and then to remove the message, session-flash() into an area of the layout where it will not be displayed. is there a way to chagne the flash layout

Re: changing $session-flash('auth'); layout

2009-09-24 Thread adam
, 2009 at 2:37 PM, adam abennett...@sbcglobal.net wrote: i am implementing a layout and am sad that i can not change the auth flash layout, instead i am having to use session-check(), then session-read(), and then to remove the message, session-flash() into an area of the layout where

Custom behavior issue

2009-09-07 Thread Adam
http://bin.cakephp.org/view/745851752 This is giving me an error SQL Error: 1054: Unknown column 'Permission.group_id' in 'where clause', so it seems to be ignoring the contain. Does anyone have any ideas? --~--~-~--~~~---~--~~ You received this message because

Re: $ajax-form - NOT WORKING!!!!! ARGHHHH

2009-08-28 Thread Adam Montgomery
Try the following code for your ajax form. Note the update to 'comments' from 'comment':: ?php echo $ajax-form(null,'post',array( 'update'='comments', 'url'=array( 'controller'='comments', 'action'='add' ) ) );

Validating user password after Auth

2009-08-13 Thread Adam
Auth with data validation in my User model doesn't pick up the notEmpty condition -- it hashes the empty string. Is this correct? Do i need to add custom validation to check for this? I cannot use $this-Auth-password() in a Model. Or is there a better way to handle this? Thanks!

I used coda :(

2009-08-05 Thread adam
and now I want to switch to Mac... but the pc-enthusiast in me wants to build a powerful rig, not an apple-taxed semi-rig running yesteryear's parts at high end prices... ...how could ONE program be that amazing! --~--~-~--~~~---~--~~ You received this message

Re: how to set CHECKED with form helper radio

2009-08-01 Thread adam
Don't use his code exactly. $radio_btn is an array of the options for the. Unless you make the array, leave that part out Adam On Jul 31, 1:53 pm, leafchild leafchild.b...@gmail.com wrote: Thank you, Miles for your comment. sometimes I'm confused which one I should use. I

Using saveField from a different controller

2009-07-23 Thread adam
I am making a mini message board, and am want to update Discussion.last_post every time a new Response is saved. The call to saveField is on line 7 of ResponsesControllerThis is what I have: ?php class ResponsesController extends AppController { function add() {

Cake's Auth + pre written bespoke single sign on

2009-07-08 Thread Adam
I'm developing a marketing extranet for a large multinational, they have a large number of internal sites (50+) all accessed via a single portal. A user logs into this portal and then has a number of links to all of the internal sites to which they have access. The portal generates a token

Re: 'add' action and auto-setting model id

2009-06-29 Thread Adam Royle
) means that if there is an id set in $this-data then it will be reset, so an insert will always occur. Cheers, Adam - Original Message - From: Raph ra...@epoczta.pl To: CakePHP cake-php@googlegroups.com Sent: Monday, June 29, 2009 10:14 PM Subject: 'add' action and auto-setting model id

Re: 'add' action and auto-setting model id

2009-06-29 Thread Adam Royle
Hi Vijay, Have a look at the source of controller.php in constructClasses() and you will see what Ralph is experiencing. Line numbers are indicative of r8204 (current branch). line 448: $id = $this-passedArgs['0']; line 452: $this-loadModel($this-modelClass, $id); Cheers, Adam

Re: n-categories URL routing

2009-06-23 Thread Adam Royle
. I do something like this, however I store the entire path (eg slug1/slug2) in the database, since you might have duplicate identifiers like so: /categories/sony/video-cameras/ /categories/philips/video-cameras/ Cheers, Adam - Original Message - From: toka...@gmail.com To: CakePHP cake

Re: n-categories URL routing

2009-06-23 Thread Adam Royle
You could do it on a few levels - really depends on your setup (and if you need dynamic subdomains, etc). But yes, using .htaccess (or inside httpd.ini) would be your fastest options. Cheers, Adam - Original Message - From: toka...@gmail.com To: CakePHP cake-php@googlegroups.com Sent

Re: Validation

2009-06-23 Thread Adam Royle
Each and every CakePHP app is like a hand-woven Persian rug - unique and each comes with its own beautiful imperfections. I implore you to accept our flaws as part of our personality and embrace all that is CakePHP! Cheers, Adam - Original Message - From: Nate Brunette nate.brune

Re: transactions + redirect doesn't work!

2009-06-22 Thread Adam Royle
to be kept as short as possible. Cheers, Adam - Original Message - From: Mateo San Román sanroma...@gmail.com To: CakePHP cake-php@googlegroups.com Sent: Tuesday, June 23, 2009 7:02 AM Subject: Re: transactions + redirect doesn't work! Thank you for you quick answer. Any way to do

Re: transactions + redirect doesn't work!

2009-06-21 Thread Adam Royle
Yes. You must start and end a transaction with the same mysql connection. MySQL connections are automatically closed once the page has finished executing. A redirect stops the current page execution. Cheers, Adam - Original Message - From: Mateo San Román sanroma...@gmail.com

Check that hasOne relationship exists

2009-06-20 Thread Adam Sunderland
, Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com

Re: Check that hasOne relationship exists

2009-06-20 Thread Adam Sunderland
)); Much nicer now and paginate is accurate with no messing around. On Jun 20, 7:33 am, schneimi michael.schne...@arcor.de wrote: Hi Adam, you just need a condition. I am not sure if this is the most elegant way, but here is an example: $this-Request-find('all', array('loan_id !=' = 0

Re: Flash site With Cake Php

2009-06-19 Thread Adam Royle
', 1); } And then it should all work! Cheers, Adam On Jun 19, 4:43 am, taufiq ridha taufiq.ri...@gmail.com wrote: Hello, nice to meet u all!! sorry for this stupid question, but i'm really new on this framework. i was try to search for this subject, but not find yet, so i decided to ask

Re: Router Connect

2009-06-19 Thread Adam Royle
Look into admin routing in the cakephp cookbook. Cheers, Adam On Jun 19, 12:44 pm, thatsgreat2345 thatsgreat2...@gmail.com wrote: I'm a little confused by routes at the moment. Currently I have an admin structure where each function such as function users($load = null, $id = null

Re: Dynamic use of MySQL views

2009-06-19 Thread Adam Royle
Does this work? $this-Item-setSource($locationId.'_items'); Cheers, Adam On Jun 19, 12:43 pm, VisionIzoizo mauro.tr...@googlemail.com wrote: Hi, I have one big table named 'items'. It's split into many views, according to a custom defined criteria (location). I want to access these views

Re: Changing view file in controller

2009-06-17 Thread Adam Royle
/index.ctp Cheers, Adam - Original Message - From: Greg Baker greg.baker@gmail.com To: CakePHP cake-php@googlegroups.com Sent: Wednesday, June 17, 2009 8:21 PM Subject: Changing view file in controller Is it possible to change the view file easily in the AppController? Basically

Re: CakePHP XSS protection?

2009-06-17 Thread Adam Royle
they will no longer be interpreted by the browser as html. Cheers, Adam - Original Message - From: Marcel vermas...@gmail.com To: cake-php@googlegroups.com Sent: Wednesday, June 17, 2009 10:36 PM Subject: CakePHP XSS protection? Hi, I'm using the save(), saveField() and saveAll

Re: CakePHP XSS protection?

2009-06-17 Thread Adam Royle
Depends on if you will reuse the content in various places that do not accept html entities... although I use h() in my views, and if I need to strip unweildy html from large blocks of text I'll do it in a beforeSave callback - therefore it only does it once. Cheers, Adam - Original

Re: https

2009-06-17 Thread Adam Royle
There is no code you need to change to get ssl working with cakephp. Make sure you have ssl setup on the site correctly with just static files first. Cheers, Adam - Original Message - From: rakesh singh rcky.ni...@gmail.com To: CakePHP cake-php@googlegroups.com Sent: Wednesday, June

Re: Auth Problem using in Login Process

2009-06-17 Thread Adam Royle
A bit hard to diagnose without seeing any code... but is your form posting to the login action? And also make sure cookies are enabled in your browser. Cheers, Adam - Original Message - From: uday singh.uday...@gmail.com To: CakePHP cake-php@googlegroups.com Sent: Thursday, June 18

Re: Webroot and prefix in Router::connect()

2009-06-17 Thread Adam Royle
I see from a previous email you overrode your AppHelper to automatically prepend /fb onto all of your links which is causing the prob. Short of re-writing your links everywhere, you could modify this method so absolute files are not prepended with /fb. Cheers, Adam - Original Message

Re: Problem with Large Datasets

2009-06-16 Thread Adam Royle
into cake. I'm guessing you don't have any indexes on your tables either, so best to get that same person to look over them. 20,000 records is not a lot and mysql can handle that easily if you know what you are doing. Best of luck! Cheers, Adam - Original Message - From: Femi Taiwo

Re: Problem with Large Datasets

2009-06-16 Thread Adam Royle
()', ); return $this-find('all', $query); } Hope that helps, Adam - Original Message - From: Femi Taiwo To: cake-php@googlegroups.com Sent: Tuesday, June 16, 2009 8:32 PM Subject: Re: Problem with Large Datasets Thanks for replying. Actually, I've got everything properly indexed

Re: Advanced(?) Behavior question

2009-06-16 Thread Adam Royle
I am fairly certain that each related model will take care of it's own beforeSave and afterFind callbacks, so you should just need to handle encryption/decryption for the primary model, and each other model that is saved/found will handle its own as well. Cheers, Adam - Original Message

Re: Organization issues and more...

2009-06-16 Thread Adam Royle
it. And if you change your mind about how the menu should be displayed, you shouldn't need to change your database/model/controller structure. Cheers, Adam - Original Message - From: Phil phil...@gmail.com To: CakePHP cake-php@googlegroups.com Sent: Wednesday, June 17, 2009 7:12 AM Subject

Re: array extraction

2009-06-16 Thread Adam Royle
')) )); $transaction_amount_total = $data[0][0]['Amount']; $this-set('transaction_amount_total, $transaction_amount_total); Cheers, Adam - Original Message - From: kwameda...@gmail.com To: CakePHP cake-php@googlegroups.com Sent: Wednesday, June 17, 2009 3:54 AM Subject: Re: array

Re: MySQL function escape with multiple conditions

2009-06-16 Thread Adam Royle
DAY))' ); Cheers, Adam - Original Message - From: eric.winch...@gmail.com To: CakePHP cake-php@googlegroups.com Sent: Wednesday, June 17, 2009 8:19 AM Subject: MySQL function escape with multiple conditions $event_conditions = array( 'Event.start'=array(' -!DATE_ADD(CURDATE

Re: Advanced(?) Behavior question

2009-06-16 Thread Adam Royle
testDecrypt in the Post model...all it did was a find('all') with recursive set to 3. I then pr()'d the result and used die() to stop operation. All post titles were decrypted (they were encrypted in the database) but the user emails showed up as encrypted. On Jun 16, 9:24 pm, Adam Royle

Re: grr help with cron/shell tabs

2009-06-15 Thread Adam Royle
chmod +x /home/mileswj/cake/console/cake then put this in cron /home/mileswj/cake/console/cake your_shell_name -app /home/mileswj/ sc2armory.com/app/ Cheers, Adam On Jun 15, 6:25 pm, Miles J mileswjohn...@gmail.com wrote: Heres my current folder setup. /home/mileswj/cake/ (below root

Re: array extraction

2009-06-15 Thread Adam Royle
use this function, it works well... // recursively reduces deep arrays to single-dimensional arrays // $preserve_keys: (0=never, 1=strings, 2=always) function array_flatten($array, $preserve_keys = 1, $return = array()) { foreach ($array as $key = $child) { if (is_array($child)) { $return

Re: grr help with cron/shell tabs

2009-06-15 Thread Adam Royle
panel you're using is changing the command before entering into cron (such as prefixing it with path of php). If that is happening you might need to write a dummy php script that exec()'s your real command. Cheers, Adam - Original Message - From: Miles J mileswjohn...@gmail.com

Re: routing to control layout

2009-06-15 Thread Adam Royle
Sure... Router::connect('/AppName/facebook/:controller/:action/*', array('facebook' = 1)); then in your app controller just check for $this-param['facebook'] - Original Message - From: Greg Baker greg.baker@gmail.com To: CakePHP cake-php@googlegroups.com Sent: Tuesday, June 16,

Re: routing to control layout

2009-06-15 Thread Adam Royle
Sorry, I never used reverse routing like that. Maybe someone else with more experience can help out? With my facebook app I used fbml so my views were custom anyway which meant I had to use explicit urls. Cheers, Adam - Original Message - From: Greg Baker greg.baker@gmail.com

Re: Cakephp equivalent of mysql_fetch_row

2009-06-14 Thread Adam Royle
http://book.cakephp.org/view/809/find-count - Original Message - From: Wayne smittysand...@gmail.com To: CakePHP cake-php@googlegroups.com Sent: Sunday, June 14, 2009 6:55 PM Subject: Cakephp equivalent of mysql_fetch_row Hi, i need a function that returns the number of rows from a

Re: Modifying Html Helper Image method for localization support

2009-06-14 Thread Adam Royle
images between all languages. I would probably go the more explicit route, and just append the language to the image path ($lang = 'en/'). $html-image($lang.'btn_action.gif'); Cheers, Adam - Original Message - From: daedalus daedalus.developm...@gmail.com To: CakePHP cake-php

Re: Any idea how to put one cakephp project in the directory structure of another cakephp project?

2009-06-14 Thread Adam Royle
You will need to exclude the portfolio directory from being sent to your default cake installation. Something like this might work... IfModule mod_rewrite.c RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteCond %{REQUEST_URI} !^/portfolio(/|$) RewriteRule(.*)

Re: PHP Fatal error: Class 'Router' not found in cake\libs\view\helper.php on line 178

2009-06-13 Thread Adam Royle
']) $_SERVER['HTTP_HOST'] == 'mydomain.com') { // set this to off if your website does not use SSL $_SERVER['HTTPS'] = 'on'; } if (!defined('FULL_BASE_URL')) { define('FULL_BASE_URL', 'http'.(empty($_SERVER['HTTPS'])?'':'s').'://'.$_SERVER['HTTP_HOST']); } Hope that helps. Adam

what do you use to deploy?

2009-05-16 Thread adam
share what tools you use to deploy! Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php

Re: Youtube for cakephp

2009-05-06 Thread adam
Youtube api? On May 6, 3:13 am, NipunAmbastha nipunambas...@gmail.com wrote: Hi, I want to upload video on youtube via Cakephp. I haven't find any stuffs. Kindly help with links or sample code Thanks Nipun --~--~-~--~~~---~--~~ You received this message

Advice on working with dates

2009-05-05 Thread adam
I have a year or so experience with PHP and MySQL, but have never had the pleasure of dealing with dates. I need to be able to store a date that a user inputs. I want to use the date data type for MySQL, but I am using a jQuery plugin for the form input, so I am getting a string. Any advice on

file streams in a plugin

2009-04-24 Thread adam
I want to have files in my vendors folder within a plugin and was wondering what I would supply to fopen for the $include_path to start a file stream? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To

admin backend

2009-04-21 Thread adam
directories. Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr

Re: How to insert data into 2 different databases

2009-04-21 Thread adam
I would just create a non-CakePHP application to regularly copy the first database to the second. But that's just me. I'm inefficient. On Apr 21, 10:42 am, luisgabrie...@gmail.com luisgabrie...@gmail.com wrote: Hello guys this is my problem i have 2 databases on the same server DB_1

Multiple hasMany relationships to one model?

2009-03-31 Thread Adam M
Hi All, How can I PROPERLY set up my database so that several models have multiple images? Each image belongs to a particular model, so they are definitely hasMany relationships. Example: Episode -id -name -date Movie -id -name -date -producer Image -id -name -caption -path Episode hasMany

Re: Manual sorting of data records (datasets)

2009-03-14 Thread Adam Royle
Something like this should work (as long as you include the RequestHandler component). Personally, I use an extra field rank in my table which is just an integer. if ($this-RequestHandler-isAjax() !empty($this-params['form']['tableId'])) { foreach ($this-params['form']['tableId'] as

Re: A list of more productive tutorials?

2009-03-09 Thread Adam Royle
Can you be more explicit about what you are looking for? Is there something in particular you don't know how to do? Adam webperson wrote: Hello, Does anyone know of a single sole source of free phpcake tutorials? I have found and completed all of the ones I could find, but I am assuming

Re: One directory for all view files.

2009-03-03 Thread Adam Royle
. Cheers, Adam lakers fan wrote: Hello, Can I create all the view files inside one directory. Right now what I understood is you got to create a folder named after controller. if I have many controllers, does it mean that I have to create that many folders for view files? Thanks

Re: Find max(id)

2009-03-03 Thread Adam Royle
the MAX() command around the id field it when using group by, for mssql at least. Time for a ticket I reckon. You can submit it via trac.cakephp.org Cheers, Adam blake wrote: I don't think its a bug, I think its more of the way Cake generates queries. Even though the Model.id field

Re: Find max(id)

2009-03-02 Thread Adam Royle
at the mssql datasource and see if it's a bug or whether it could be improved upon. If not then you may just need to execute a raw sql query instead of using the find methods. Cheers, Adam blake wrote: I'm trying to do the following find() to find the highest id for each name value in the table

What do you develop in (ide, text editor, etc.)?

2009-02-28 Thread adam
I'm using Eclipse with PDT, but Dreamweaver for making layouts. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Re: Security component breaks my ajax requests

2009-02-28 Thread Adam Royle
Looking at the Security component source, you need to override the validatePost value in SecurityComponent. The following is untested code, but I think it should work. function beforeFilter() { if ($this-action == 'your_action') { $this-Security-validatePost = false; }

Re: How to set up site structure with Admin folder and controllers?

2009-02-25 Thread Adam Royle
', array('controller' = 'administrators', 'action' = 'dashboard', 'admin' = 'admin')); Hope that helps, Adam - Original Message - From: Leonard Teo teo.leon...@gmail.com To: CakePHP cake-php@googlegroups.com Sent: Thursday, February 26, 2009 12:25 AM Subject: How to set up site structure

Re: Plugins - Calling plugin App Controller from base application App Controller

2009-02-25 Thread adam
On Feb 25, 2:22 am, AD7six andydawso...@gmail.com wrote: On Feb 25, 7:36 am, adam abennett...@sbcglobal.net wrote: That's a shame, that makes a user plugin (half) pointless since you would still have to have the beforeFilter code outside the plugin Or entirely useful, since the code

Re: Manual sorting of data records (datasets)

2009-02-24 Thread Adam Royle
/down code pretty easily, but drag and drop is pretty common these days and is not too difficult. One thing to be aware, is not all libraries support sorting table rows (afaik), but there are workarounds. Hope that helps, Adam hasentopf wrote: Clicking on the table header is only temporary. I

  1   2   3   4   5   >