Adding a custom CakePHP Route

2015-10-06 Thread Luke Alvin Madzedze
How can i configure a route connection to handle... /users/{nameofuser_as_param}/{action}.json?limit_as_param=20&offset_as_param=20&order_as_param=created_at in the routes.php file such that it calls my controller action like... /users/{action}/{nameofuser_as_param}/{limit_as_param}/{offset_as

Re: Retrieve attachment from a Post - mailgun

2014-08-08 Thread Luke Rehmann
> > Did you ever solve this? > Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails

Re: How to modify a field in afterFind()

2013-04-19 Thread Luke Sapan
I just wanted to thank both of you for working through this and figuring it out. Nearly five years later, CakePHP still has this issue with version 2 and this code worked flawlessly. You guys rock! On Wednesday, December 17, 2008 1:04:52 PM UTC-5, Martin Westin wrote: > > thanks for the modifica

Re: Dreamweaver - Getting Code Coloring and Design View to work on CTP files

2013-01-24 Thread Luke Coburn
Does anyone know if this type of solution will work in CS6? I have spent way too much time trying to get this working, and...no dice. I can get the file to open in Dreamweaver, but the color coding and code hinting won't work at all. Very frustrating. I am using a Mac, running OSX Mountain L

Missing Controller

2012-07-04 Thread Luke
or: *Create the class *My-adminController* below in file: app/Controller/My-adminController.php Any hints on how I can get the site to work under http AND https? Thanks, Luke -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Ques

Re: Cache problem using CakePHP default File config on apache 1.3.x - server crashes

2011-04-20 Thread luke BAKING barker
know much at all about linux/server related things. Do you think another caching system might be a better route - or is File cache the most robust? Rather than Memcache etc. thanks for your help and to people on IRC. cheers Luke -- Our newest site for the community: CakePHP Video Tutoria

Re: Cache problem using CakePHP default File config on apache 1.3.x - server crashes

2011-04-19 Thread luke BAKING barker
Hi - no - do you think that would help? I tried making the prefix of the cache different in case there was a conflict with other caching in the /tmp of the server but that hasn't worked, as the site has hung again just now. I will see if I can find some info on the lock thing, thanks.

Cache problem using CakePHP default File config on apache 1.3.x - server crashes

2011-04-19 Thread luke BAKING barker
Hi I am using some controller level caching for a few actions on a couple of cakePHP sites. both are cake1.3 sites, and are on the same VPS, running php 5.2.11 and it has eAccelrator too. the cache seemed to work for a few days and then both sites became unreachable this morning. I restarted the V

Re: Corrupted app/tmp/cache/views/ Files

2011-04-19 Thread luke BAKING barker
Hey Dwayne did you get this resolved or find out why? I am having a similar issue with some cake sites. And using File caching - default as defined in the core.php. I am only caching some actions, in the controller. On Mar 15, 8:57 pm, Dwayne wrote: > I've run into the followingproblemsporadicall

alternative $ajax->remoteTimer in CakePHP 1.3

2010-12-19 Thread Luke Z
Hello, how can I rewrite part of my view using $ajax->remoteTimer (http:// book.cakephp.org/view/627/remoteTimer) in CakePHP 1.3? I know I need to using helpers Html and Js but how can I use them in this case? Thank you Lukas Check out the new CakePHP Questions site http://cakeqs.org and help oth

adding $javascript helper to libs/Error.php and CakeError in 1.2.x - problem

2010-06-29 Thread luke BAKING barker
hi I tried copying cake/libs/error.php to my app/controllers and then adding $helpers = array('Javascript') but it didn't work, although adding it (temporarily. natch!) to the lib file does work. What is the thing with the inheritance that I am missing here? cheers Luke Ch

Re: Implementing uploadify - File upload issue - param definitions issue

2010-04-09 Thread luke BAKING barker
any luck with this? I would like to try uploadify but it seems there are only broken reports with cake in the google group? Anybody used it successfully out there? regards Luke On Mar 21, 10:41 pm, abocanegra wrote: > Correction - However, problems still not fixed > > ##

Re: null value from date field.

2009-11-12 Thread luke
hello, In my program i added one item in add.ctp with return_date DATE field as null. This field will edit at the time of item return. After issuing an item i want to display the remaining items in list.The issued item should not display.(file: available_item.ctp). In basic query, Selec

display if field is null .

2009-11-12 Thread luke
items where item.return_date=null. How I can implement this condition in cakephp ? plz help me. regards, luke -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@googlegrou

autosuggest and auto-completion in text boxes

2009-10-14 Thread luke
Hii, developers, in my ajax auto complete program , // add.ctp create('User');?> select('country_id',array($countries),null,array ('id'=>'countries'),false); ?>select('region_id',array(),null,array ('id'=>'regions'),false); ?>

Find Value in $this->data

2009-09-25 Thread Luke
Hi Guys, I am trying to find out if a Value in the $this->data Array excists. Here the structure of the Array: Array ( [Recipe] => Array ( [recipe_name] => ) [Ingredient] => Array ( [1] => Array ( [ingredientnam

Question about a Relationship

2009-09-24 Thread Luke
t out. Any thoughts? Thanks in advance. Luke --~--~-~--~~~---~--~~ 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, sen

Re: Drag and Drop with jQuery

2009-09-23 Thread Luke
ot, so I will have to play around a bit more with it. Thank you again. Luke --~--~-~--~~~---~--~~ 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

Re: Drag and Drop with jQuery

2009-09-23 Thread Luke
anywhere. Do I have to somehow overwrite the class? Luke --~--~-~--~~~---~--~~ 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 th

Drag and Drop with jQuery

2009-09-23 Thread Luke
opZone', {cookbook_id: $(this).attr('id'),id:id}, function (data) { $(amount).html(data)}); But obviously if I do this the whole li dissapears and gets replaced with the AJAX response. Does anyone got an idea how I can just update the PHP varia

Question about dropRemote

2009-09-09 Thread Luke
Hi, I had already posted a question, but figured out that this might have been too confusing. i want to use a Drag and Drop AJAX Function. I have got 2 Drop Zones. 1 2 Question: 1. Do I need now 2 dropRemote for this? 2. I know I can use "with" to hand over data through the $this->params ['for

dropRemote Update Div and Database

2009-09-08 Thread Luke
Hi, I am trying the following with AJAX, I have a list of entries from the Database, which you can take and move into different boxes. I suppose I need the drag and drop function from AJAX. ich have been going through the world wide web to find some solutions but struggle badly. I also thought

Drag and Drop with Ajax

2009-08-25 Thread Luke
I will need to know in the end which Article was moved into which Category. I am sure there must be examples like this on internet, but I can not find it anywhere. What should I look for excatly or does someone got any other hint? Thanks a lot in advance. Luke

Re: saveAll with a hasMany relationship

2009-08-24 Thread Luke
e a form where your data comes from, how do your input fields are set up? What is the outcome of print_r($this->data)? Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this grou

Re: Ubdate HABTM and hasMany

2009-08-21 Thread Luke
[1] => Array ( [ingredientname] => pepper ) Thank you very much again for your help. Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to

Re: saveAll with a hasMany relationship

2009-08-21 Thread Luke
[1] => Array ( [ingredientname] => pepper ) Try this out and let me know if you struggle, maybe we find an answer. Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: Add input field with jquery

2009-08-21 Thread Luke
Hi brian, excellent, thank you for your help. I got it to work. It is slightly different but your answer got me on the right route. Thank you again. Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

Add input field with jquery

2009-08-18 Thread Luke
could solve this? Thanks a lot. Luke --~--~-~--~~~---~--~~ 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 emai

Re: Ubdate HABTM and hasMany

2009-08-14 Thread Luke
dientname`) VALUES (Array) So, $this->Recipe->saveAll($this->data) does not seem to work. How can I save the hasMany and HABTM relationship than? I tried to implement Persivo's hint, but was not successfull either. Any hint is much appreciate, since I

Re: Search function

2009-08-12 Thread Luke
there are 3 words it ends up "Post.title LIKE '%" . $value. "%' OR > Post.description LIKE '%" . $value . "%' ";"Post.title LIKE '%" . $value. > "%' OR Post.description LIKE '%" . $value . "%' "

Re: Search function

2009-08-12 Thread Luke
($i < count($string)) // Check if your counter is smaller than amount of values in array, if there are still values, add a OR { $sql.="OR"; } } You can try out by putting in echo $sql at the end. Is this what you were looking for or did I missunderstood? Luke --~

Re: Ubdate HABTM and hasMany

2009-08-12 Thread Luke
, is the Array formated wrong and how does it need to look? Hope someone can give me a hint. I am runing around in circles. Thanks a lot Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP&quo

Ubdate HABTM and hasMany

2009-08-07 Thread Luke
ngredient->save($ingredient); 2. But even when I just try out $this->Recipe->Ingredient->save ($ingredient); the update is not working. I cant see what is going wrong. Any ideas? thanks a lot in advance. Luke --~--~-~--~~~---~--~~ You received this

Re: Saving both habtm and hasmany data

2009-07-31 Thread Luke
Hi, I am just struggling on the same issue I think. I have a HABTM which works fine, additional I now have a hasMany to be saved, which is no problem if it is only a single input field. But I am actually trying to add another. Here is my Array: [Recipe] => Array ( [recipe_na

Re: Counter Cache behavior for HABTM relations

2009-07-30 Thread Luke
Hi, I just found the solution myself I think, I added foreach ($this->foreignTableIDs[$assocData['className']] as $id) into the updateCounters method and it now updates for every category. Maybe this comes handy for someone. It seem to work and I get no error message anymore. --~--~-~-

Counter Cache behavior for HABTM relations

2009-07-30 Thread Luke
not working anymore, because it is complaining that the id I am looking for to update is now an Array. (WHERE `subcategory_id` = (Array)) Does anyone knows the above script and maybe know how to get this to work? It was a nice function and it would be great to work again. Thanks a lot. Luke

understanding blackHoleCallback

2009-07-28 Thread Luke
e What am I doing wrong? If I understand right, than I would need a function accessError() , but what do i need to add into this to make sure it is all in one Layout? I look forward to any help, I have read backwards and forwards through the www but could not find an

blackHole and Callback Question

2009-07-24 Thread Luke
Hi, I am finally moving on with my first Cake Project. (Recipe Page) User can add Recipes and of course they must be able to delete them aswell. So if they are logged in, they see their own recipes. To secure other recipes of being deleted, I wanted to use the Security Component. So I added below

Counter_cache in 2 tables

2009-07-22 Thread Luke
Hi, I finally got Counterchache for HABTM running. I have now got these 3 tables: subcategories - subcategory - maincategory_id - recipe_count recipes_subcategories - recipe_id - subcategory_id maincategories - id - maincategory Each Maincategory has many Subcategories. So when I add a new R

Re: Stop AJAX Request

2009-07-15 Thread Luke
is it using the method as a query? $success = $this->Product->User->removeFavorite($id); I can't see what is wrong. Anyone an idea? Thanks so much in advance. Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Stop AJAX Request

2009-07-15 Thread Luke
d instead re-load the full page or what would you guys suggest? Thanks for any advice. Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegr

Re: Structual controller question

2009-07-09 Thread Luke
Hi Guys, Thanks for the answers. So do I understand it right, Either add it to the user_controller or the recipe_controller. So you guys would drop the idea of having a mybox controller than, even if I have a mybox table where I store the IDs of the recipes a user watches. So from my feeling I

Structual controller question

2009-07-08 Thread Luke
Hi, I am developing a small recipe site, this is my first cakePHP project. I now have a structual question. You have to register and log in to add a recipe. So in the recipe table will be your user_id. You can also save recipes in your cookbook. To see your saved and your own recipes, you have t

Re: Count RS for element

2009-07-06 Thread Luke
aincategory table, but is this so easy to reach if I actualy don't save anything into this table when I add a new recipe? How would counterCache be activated? Do I have to call it up in the controller aswell? Any advice will be great. Luke --~--~-~--~~~---~--~~

Count RS for element

2009-07-03 Thread Luke
'order'=>array ('Maincategory'=>'asc'), 'recursive' => 0)); } How do I get the amount of recipes shown with my above Database struktur? Could someone give me a hint? I am pretty stuck with it and can't think of a solution. Thank you very much i

observeField Question

2009-06-17 Thread Luke
Hi, I am struggling with cakePHP a bit. I have setup a dependable dropdown. I was now thinking about having the second dropdown hidden, till you actually choose something from the first dropdown. So I thought about doing this via a which is hidden in the beginning. echo ''; echo $form->i

Re: Database and Model Design for HABTM

2009-06-01 Thread Luke
Hi John, Shame, but thanks a lot. I think I will really need the option to have a recipe in more than 1 category. I will probably allow up to 2 categories. Where I now just struggle with is that I am trying to read out all the recipes which belong to a subcategory. So I clicked on BBQ and than

Re: Database and Model Design for HABTM

2009-06-01 Thread Luke
Hi, Thanks for your answers. Actually, if I look at the first one, I do understand that the way I am doing it right now, I would have duplications in my db tables. maincategories and subcategories will be filled manually, recipes_subcategories and recipes will be filled through the "Add recipe" F

Database and Model Design for HABTM

2009-05-28 Thread Luke
Hi, I am still a Cake newbie, but maybe someone give me a hint on my issue. I am trying to learn cake by developing a recipe site. There are Maincategories and Subcategories. F.e. BBQ -> (Pork, Beef, Vegetarian) Main Dish -> (Vegetarian) A recipe can belong to different Categories, so a "S

Re: AppController issue

2009-05-21 Thread Luke
m very new to cakePHP so maybe a Cake Guru want to comment on it. Regards, Luke --~--~-~--~~~---~--~~ 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 unsu

Re: Problem with Auth. with an AJAX Request

2009-05-20 Thread Luke
Hi, I am not sure what else I could copy & paste from the sourcecode. I only have a normal login action, in my user controller, which only saves the last login and thats pretty much it. An Login AJAX action? How would this look? Have you got an example? Thanks. Luke On 20 Mai, 22:18, chr

Re: Problem with Auth. with an AJAX Request

2009-05-20 Thread Luke
Hi, I have again read backwards and forwards through the www to find a solution for my problem. I am sure that there is other people running into the same issue. How do you guys solve it? All I want is a link saying "Add article to watchlist" which than, if the User is logged in writes it into t

Re: Problem with Auth. with an AJAX Request

2009-05-19 Thread Luke
that they will share their solution. But thank you anyway. Luke --~--~-~--~~~---~--~~ 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

Problem with Auth. with an AJAX Request

2009-05-19 Thread Luke
oes not get add to your watchlist, but the Login Window does not show up. Instead you just still see the article not knowing if anything happened in the background. Of course I would like the Login Window to show up and when you are logged in the Article should be added to your watchlist, the articl

Re: saveAll not saving habtm with build 8004

2009-02-25 Thread luke BAKING barker
hi use save() not saveAll with HABTM On Feb 25, 7:01 am, spazard1 wrote: > Hello all. > > I am running into a problem where my join tables are not being updated > when I call saveAll. I have the latest stable version of cakephp, in > which this bug was fixed. > > Here is the relevant action co

Re: AppController methods

2009-02-20 Thread luke BAKING barker
I'd be 'Api to. On Feb 20, 11:47 am, kaushik wrote: > Can anyone provide me list of AppController methods with their > definations? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this gr

Display Checkbox Array and read values

2009-01-30 Thread Luke
I than save it aswell? I would think I need a foreach aswell to go through the Array of the Maincategories, but how would this look? I am struggling on this issue already a week and just can not get on. I look forward for any tip which will get me forward on this issue. Thanks a lot in advance. Lu

Re: cakephp shop

2009-01-14 Thread luke BAKING barker
bakesale is great. 1.2 version is more recently developed than 8 months, for sure! Google a bit more. Matti Putkonen is the developer. If you cannot find the SVN release he will put you in the right direction. Luke On Jan 13, 8:30 pm, Miles J wrote: > Building the products and listings sho

Re: Anyone in North East England?

2009-01-09 Thread luke BAKING barker
Anyone going to the PHP conference on Friday 27th Feb in London? Perhaps we could do an informal CakePHP discussion there - either on the day or night before or Saturday morning? I might start a UK mailing list or wiki or something! Luke On Jan 9, 2:49 pm, ianh wrote: > On Jan 9, 2:32

Re: Anyone in North East England?

2009-01-07 Thread luke BAKING barker
tting involved. If you have something concrete, maybe post it on the Cake Jobs board too? regards Luke On Jan 7, 2:03 pm, grigri wrote: > I like the idea of a UK-based meetup. I'm not really sure how many UK > bakers there are, but I'm guessing a few. > > I'm in the SW [Pl

Re: hasMany bind on the fly

2008-11-03 Thread luke BAKING barker
Hey Teknoid, you were helping me with this on IRC the other day, thanks for this thread too! Your work is appreciated!!! Luke On Oct 31, 11:23 pm, teknoid <[EMAIL PROTECTED]> wrote: > no, cake can easily build the join that you > need:http://teknoid.wordpress.com/2008/07/17/forcing

Re: Validation for saveAll not returning messages

2008-10-23 Thread luke BAKING barker
round you provided? Luke On Sep 10, 5:57 pm, Lane <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to usesaveAllto save multiple records of a model in one > form. Everything works fine as far as saving and validation goes > except for one little problem.

Re: Auth Redirect Problems

2008-09-16 Thread luke BAKING barker
yeah Tony I am seeming to get this too :/ someone on IRC said to check that things like favicons are correctly being pointed at and so on. can anyone post a sample of some redirect Auth code? Luke On Sep 15, 5:21 pm, Tony Thomas <[EMAIL PROTECTED]> wrote: > I did that. Same proble

Re: Acl and Auth at record level with crud mode

2008-09-08 Thread luke BAKING barker
aranworld - I am wondering how this could be made universal throughout an app...better possibly in the app_model somehow? but obvioulsy Auth is a component :/ On Aug 28, 8:22 am, aranworld <[EMAIL PROTECTED]> wrote: > You can add this to your UsersController: > > function __checkUsersOwnRecord($r

Re: Save / saving records with extra fields in a HABTM join table ( possibly using 'with' parameter ?)

2008-07-03 Thread luke BAKING barker
I am still interested in learning about. I am grateful to AD7six who also helped me in IRC with this matter. He advised to treat the joinTable as a hasMany joined model for the purpose of saving - and I still use the habtm "with' association therefore when I read data. cheers Luke On J

Save / saving records with extra fields in a HABTM join table ( possibly using 'with' parameter ?)

2008-07-01 Thread luke BAKING barker
Hi I was wondering if someone could help me with saving the data of a join table, when it has extra fields in cake 1.2? I have read Mariano Iglesias' helpful blog post relating to this, where he explains the findings of the 'with' specified model, which was a great help. However, I am still unab

Use routes to permanently redirect?

2008-05-30 Thread Luke
I have the following route: Router::connect('/newrv.cfm', array('controller' => 'rvs', 'action' => 'index', 'new')); Is it possible to do this, but issue a 301 and redirect to the correct url? Right now it does the right thing, but no 301 and it stays at / newrv.cfm in the location bar. Thanks!

saveAll difficulty in combination with Generic Upload Behaviour

2008-05-30 Thread luke BAKING barker
Hi I have posted this to cakeBin so it is easier to read: http://bin.cakephp.org/view/7031334 My problem is that it saves the Attachment file and entry but the foreignkey (in this case foreign_id) does not get saved. # Using CakePHP nightly from 28/5/08 # on Mac os X apache # # # # DEBUG SQ

Re: CakePHP guide

2008-02-05 Thread luke BAKING barker
theres a book coming for Cake too - by David Golding: http://www.amazon.com/Beginning-CakePHP-Professional-David-Golding/dp/1430209771/ On Feb 5, 10:11 am, accom06 <[EMAIL PROTECTED]> wrote: > This is great! > > Thanks. > > -- Aaron > > On 5 Feb, 08:58, "Julio Protzek" <[EMAIL PROTECTED]> wrot

Re: Mac OS developper setup

2008-02-05 Thread luke BAKING barker
sweet. I use Textmate to edit and CocoaMySQL for the db. Both work well in a Cake context. currently preparing Leopard Subversion server and will prbably rethink the way I run off Cake and try and just use one SVN updateable latest nightly of Cake to run all my apps. Luke On Feb 5, 9:10 am, boyr

Re: .htaccess password in CAKE

2008-02-01 Thread luke BAKING barker
the document root? Or the webroot? Any ideas? thanks for the tip anyway - I tried ti on a non-virtualhost setup and worked a charm Luke On Jan 2, 9:02 pm, Mazgalici <[EMAIL PROTECTED]> wrote: > Thanks adica Multumesc :D > > On 26 Noi 2007, 21:39, Dragos Chiriac <[EM

Re: Using Acl to display a user-specific menu

2008-01-16 Thread Luke
like 3 different menu.ctp files (menu-admin.ctp, menu-manager.ctp, and menu-default.ctp) ? On Jan 16, 2:47 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Jan 16, 11:13 pm, Luke <[EMAIL PROTECTED]> wrote: > > > I am writing an application that has three user groups: admin, use

Re: Using Acl to display a user-specific menu

2008-01-16 Thread Luke
Correction: "I'm just wondering what the best way to go about displaying the menu to my uses is" should read: I'm just wondering what the best way to go about displaying the menu to my users is. On Jan 16, 2:13 pm, Luke <[EMAIL PROTECTED]> wrote: > I am writing

Using Acl to display a user-specific menu

2008-01-16 Thread Luke
I am writing an application that has three user groups: admin, user, and photo manager. I want all three to have basically the same interface, but admins will obviously have more things available to them (ability to add things, edit things, etc), photo managers will be allowed to add / edit photos

Re: othAuth looses session - upgrading to new 1.2.0.6311 (2008)

2008-01-09 Thread luke BAKING barker
it all of you can get it working OK with database sessions? thanks to othman also for a great component / system. cheers Luke On Jan 8, 10:57 am, hoerbuchhoerer <[EMAIL PROTECTED]> wrote: > solved similar issue with using database sessions, carefully search > for session_start

Re: othAuth component + CakePHP 1.2.0.5875 prebeta = broken ==> saveField not working

2007-12-10 Thread luke BAKING barker
check red frogs blog on this too and other posts in the group..othAuth 1.2 pre-beta On Dec 10, 4:19 pm, daphonz <[EMAIL PROTECTED]> wrote: > I had some issues getting the othAuth component to work with Cake pre- > beta as well. I think had the same problem you did. You can read my > blog post a

acl manager plugin not working

2007-12-09 Thread Luke
I am trying to install the ACL Manager I found here: http://bakery.cakephp.org/articles/view/acl-management-plugin I followed the directions exactly, but it still isn't working correctly. The directions tell me that once it's installed, you can access it at /admin/acl, and sure enough I can, but

Re: Ajax - help in serialize of data from mootools sortable OL list for CakePHP to use

2007-12-06 Thread luke BAKING barker
whoa hang on - http://groups.google.com/group/cake-php/browse_thread/thread/8de4714f1a04a97b/fd8011bfed27c381?lnk=gst&q=mootools#fd8011bfed27c381 I should have searched mootools on here before! (tried google...but not the group search!) On Dec 6, 10:24 am, luke BAKING barker <[EMAIL PR

Re: Ajax - help in serialize of data from mootools sortable OL list for CakePHP to use

2007-12-06 Thread luke BAKING barker
way of naming my lists and items however! can anyone else point me in the direction of documentation/tips on serializing Ajax data with Cake ? cheers Luke On Dec 6, 4:57 am, Adam Royle <[EMAIL PROTECTED]> wrote: > I forgot to mention you need to include the prototype+scriptaculous >

Ajax - help in serialize of data from mootools sortable OL list for CakePHP to use

2007-12-05 Thread luke BAKING barker
but am asking for a few pointers on finding out how to do this, with particular reference to the most Cake way(s) of doing this? I havent any experience really with AJAX in CakePHP, and didnt want to steam ahead and miss out any of the goodness there may be! thanks for any help you may be

Re: multiple "hasMany"?

2007-11-30 Thread Luke
alright it appears that the associations are working correctly, but the scaffolding just isn't being generated for notes. oh well I guess On Nov 30, 1:23 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > On 30/11/2007, Luke <[EMAIL PROTECTED]> wrote: > > >

Re: multiple "hasMany"?

2007-11-30 Thread Luke
no that would only allow me to have one note and one item per order... I want many items and many notes per order... so I put order_id inside each of those tables. On Nov 30, 1:16 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > > do you mean my table names? > > no > > I'm assuming your orders tabl

Re: multiple "hasMany"?

2007-11-30 Thread Luke
do you mean my table names? On Nov 30, 1:09 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > Try defining your model classes whitout the 'order_' prefix, and set > $useTable = 'order_whatever'; in the model. > > 2007/11/30, Luke <[EMAI

Re: scaffold error

2007-11-30 Thread Luke
it outputs "app\controllers\orders_controller.php (line 41)" and an empty yellow box. I am on version 1.2.0.5875 pre-beta On Nov 30, 12:27 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > what version? > > Try debug($this->data) in beforeFilter;

scaffold error

2007-11-30 Thread Luke
I am not sure what I did, but for some reason the edit action isn't working in any of my controllers. It keeps telling me "Invalid id for Order::edit()". Why would it be doing that? Here is an example controller: --~--~-~--~~~---~--~~ You received this message bec

Re: multiple "hasMany"?

2007-11-30 Thread Luke
umm I might have asked the question wrong. here is what I am trying to do: I have 3 tables: orders, order_items, and order_notes Orders is full of all of my store's orders. Order items are all the items the customer purchased, and order_notes contains all of the notes associated with an order. s

Re: multiple "hasMany"?

2007-11-30 Thread Luke
does nobody know or is it impossible or what? On Nov 29, 3:39 pm, Luke <[EMAIL PROTECTED]> wrote: > Does cake not allow multiple "hasMany" associations? for some reason > it is only rendering scaffolding for the first of the two I'm putting > in here: > > cla

multiple "hasMany"?

2007-11-29 Thread Luke
Does cake not allow multiple "hasMany" associations? for some reason it is only rendering scaffolding for the first of the two I'm putting in here: class Order extends AppModel { var $name = 'Order'; var $hasMany = array( 'OrderNote' => array(

Re: why am I getting this "undefined index" error?

2007-11-29 Thread Luke
nobody? On Nov 28, 10:41 am, Luke <[EMAIL PROTECTED]> wrote: > I am trying to set up associations between my orders model and my > orderitems model. It seems to be working except for this error I'm > getting. What am I doing wrong? (see screenshot below) > > Here

Re: why do i get so many weird errors?

2007-11-28 Thread Luke
ack controller before. Your controller code > should be done way before your view anyway > > On Nov 28, 2007 4:16 PM, Luke <[EMAIL PROTECTED]> wrote: > > > > > > enctype="multipart/form-data" method="post"> > > > file('import&#x

Re: why do i get so many weird errors?

2007-11-28 Thread Luke
file('import'); ?> submit('Import'); ?> On Nov 28, 2:06 pm, Baz <[EMAIL PROTECTED]> wrote: > What's in the view? > > On Nov 28, 2007 3:47 PM, Luke <[EMAIL PROTECTED]> wrote: > > > > > I have a completely BLANK controller

why do i get so many weird errors?

2007-11-28 Thread Luke
I have a completely BLANK controller... all it is is this: function import() { } in my view I have a form with a file upload element in it. whenever I press "submit" I get this error on the top of the page "Warning (2): Invalid argument supplied for foreach() [CORE\cake\dispatcher.php, line 381]

Re: a lot of the features that make rails so cool are totally missing in cake :(

2007-11-28 Thread Luke
; bakes a model. run 'bake model help' for more info > > bake view > bakes views. run 'bake view help' for more info > > bake controller > bakes a controller. run 'bake controller help'

Re: a lot of the features that make rails so cool are totally missing in cake :(

2007-11-28 Thread Luke
I'm sorry I honestly forgot I already asked this question... I was wondering why you said "again" - thanks for answering anyway :) On Nov 28, 11:17 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Nov 28, 2007 2:15 PM, Luke <[EMAIL PROTECTED]> wrote:

Re: a lot of the features that make rails so cool are totally missing in cake :(

2007-11-28 Thread Luke
I've been investigating bake... doesn't seem to be very much good documentation about it. I tried searching both the bakery as well as cakephp.org and both searches result in a blank screen. On Nov 28, 11:17 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Nov 2

a lot of the features that make rails so cool are totally missing in cake :(

2007-11-28 Thread Luke
So I finally got around to trying out rails and I must say it is unbelievably intuitive and easy to learn. If I knew ruby better, and I had it available on all servers I'd probably switch to rails for about 75% of the web apps we build here due to the sheer speed of development. Anyway, because of

generating scaffolding

2007-11-28 Thread Luke
in rails one of the most useful things I've found is the ability to generate the entire scaffolding in your directory app so that you can slowly mold it into what you want. is this not a feature of cake? --~--~-~--~~~---~--~~ You received this message because you ar

why am I getting this "undefined index" error?

2007-11-28 Thread Luke
t; 'OrderItem.status_id DESC', 'foreignKey'=> 'order_id', 'dependent' => true ) ); } ?> here is a screenshot of the error I am getting: http://

how do I validate *only if value is present*

2007-11-28 Thread Luke
I have a model called Orders that I need to validate. In this model, there is a "fax number" that is not required, but if submitted must be in the format of a phone number. I cannot seem to figure out how to do something like this in cake. It seems to me that it should be something as easy as var

Re: HTTP-auth and Security Component cake 1.2 - POST a form cause me difficulty

2007-11-03 Thread luke BAKING barker
seems to be the way of the OC presentation on Cake's example. thanks Luke On Nov 1, 4:58 pm, McFadly <[EMAIL PROTECTED]> wrote: > Hi Luke - > I think you're making this process more difficult than it needs to > be. I haven't used HTTP auth in theSecuritycomp

  1   2   >