I posted something before, but didn't show up.

2013-08-05 Thread Wyatt Biker
Just a test. -- 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 from it, send an email to

Re: I posted something before, but didn't show up.

2013-08-05 Thread Wyatt Biker
I guess it takes time before the post shows up. On Monday, August 5, 2013 4:11:08 PM UTC-4, Wyatt Biker wrote: Just a test. -- 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

A little something i cooked up

2012-08-19 Thread rxhector...@gmail.com
I am having probs logging in to the cakephp site to post this, so thought I would put it here to share $this Is Slick http://this.is-slick.com -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: something seems not consistent in the url routing

2012-02-21 Thread mark_story
to be handled by the server [3]). It could be particulary useful when advanced rewriting rules are used.  - using array_pop(array_keys($_GET)) (or something equivalent) as the primary path value in the CakeRequest::_url function [1] :https://github.com/cakephp/cakephp/blob/master/app/webroot/.htaccess

Re: something seems not consistent in the url routing

2012-02-18 Thread Clément Hallet
]). It could be particulary useful when advanced rewriting rules are used.  - using array_pop(array_keys($_GET)) (or something equivalent) as the primary path value in the CakeRequest::_url function [1] :https://github.com/cakephp/cakephp/blob/master/app/webroot/.htaccess#L5 [2] :https

something seems not consistent in the url routing

2012-02-17 Thread Clément Hallet
)) (or something equivalent) as the primary path value in the CakeRequest::_url function [1] : https://github.com/cakephp/cakephp/blob/master/app/webroot/.htaccess#L5 [2] : https://github.com/cakephp/cakephp/blob/master/lib/Cake/Network/CakeRequest.php#L206 [3] : http://httpd.apache.org/docs/2.0/mod/core.html

Re: Subquery or something else?

2011-08-24 Thread Jeremy Burns | Class Outfit
I agree that there are better single query methods in pure SQL, but my recommendation keeps it in a Cake stylee (rather than using $model-query). I'd be happy to be put right, but even if you did it using joins in a Cake find, I think it'd still execute two queries. Jeremy Burns Class Outfit

Re: Subquery or something else?

2011-08-24 Thread Jens Dittrich
There is a cake way for creating subqueries! See: http://book.cakephp.org/view/1030/Complex-Find-Conditions and scroll down to the section Sub-queries. There is an example how to build subqueries the cake way and get efficient calls to the database. I would suggest that you are trying to hit

Subquery or something else?

2011-08-23 Thread Dwayne Hanekamp
Hello everyone, I've been trying to work this out for the last couple of hours but it isn't working. I'm building an achievement system. So i have two tables: Users_Badges and Badges (and ofc much more but they don't matter) What i want is to make a find condition which only selects the badges

Re: Subquery or something else?

2011-08-23 Thread Jeremy Burns | Class Outfit
Do a find to get all the ids of the badges in the users_badges table. Then do $this-Badge-find('all', array('conditions' = array('NOT' array('Badge.id' = $badgeIds; See http://book.cakephp.org/view/1030/Complex-Find-Conditions and search for 'NOT IN' on the page. Jeremy Burns Class Outfit

Re: Subquery or something else?

2011-08-23 Thread Dwayne Hanekamp
That worked, awesome! Thanks so much Jeremy! Dwayne On 23 aug, 12:48, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Do a find to get all the ids of the badges in the users_badges table. Then do $this-Badge-find('all', array('conditions' = array('NOT' array('Badge.id' =

Re: Subquery or something else?

2011-08-23 Thread euromark
although this will get quite slow with more and more ids and might consume a lot of memory some day depending on the size a subquery might some day be more suitable. but until then this 2-query will work fine. On 23 Aug., 13:44, Dwayne Hanekamp dwaynehanek...@gmail.com wrote: That worked,

Re: Subquery or something else?

2011-08-23 Thread Robert Maiolo
I'd try an outer join On Tue, Aug 23, 2011 at 11:23 AM, euromark dereurom...@googlemail.comwrote: although this will get quite slow with more and more ids and might consume a lot of memory some day depending on the size a subquery might some day be more suitable. but until then this 2-query

Re: How to get something to show onscreen

2011-06-28 Thread euromark
maybe a recursion problem? bake your app without scaffolding and manually set the recursion level (or use containable behavior) On 27 Jun., 19:53, Magician davis_justinmich...@yahoo.com wrote: Hi.  I am new to cake php and am in the middle of making a blog. Right now, I am stuck on a section.  

How to get something to show onscreen

2011-06-27 Thread Magician
Hi. I am new to cake php and am in the middle of making a blog. Right now, I am stuck on a section. I have created two tables. One for my posts and the other for tags for said posts. The model and controller files are as follows: POSTS: -model: ?php class Post extends AppModel { var

Re: How to change the URL from something like domain.com/users/view/1 to domain.com/users/prakhar

2011-05-20 Thread Sathia S
On Thu, May 19, 2011 at 10:57 AM, Prakhar Alok prakhara...@gmail.comwrote: Hi, I have just started using cakephp. I was going through the tutorials for building a blog and using auth component. Lets say that I have added some users for the blog. Now I want to view in view instead of id,

How to change the URL from something like domain.com/users/view/1 to domain.com/users/prakhar

2011-05-19 Thread Prakhar Alok
Hi, I have just started using cakephp. I was going through the tutorials for building a blog and using auth component. Lets say that I have added some users for the blog. Now I want to view any user. For this I have baked the Users model. The URL will be something like /users/view/1 (say its

Re: How to change the URL from something like domain.com/users/view/1 to domain.com/users/prakhar

2011-05-19 Thread Jeremy Burns | Class Outfit
any user. For this I have baked the Users model. The URL will be something like /users/view/1 (say its is is 1). What if I want the URL to be transformed to the name of the user like /users/prakhar. Just like when viewing any Facebook profile, for ex. mine is facebook.com/ prakhar.alok. Help

Joining on something other than _id

2011-05-12 Thread amiable_indian
I am having tough time trying to join two table which are not connected directly. For example: User hasOne Profile User hasMany Post I want to join Post and Profile (based on user_id which is common) and tried doing couple of things but none worked. * Firstly, I tried $hasOne in Post model

Re: Joining on something other than _id

2011-05-12 Thread dreamingmind
With the setup you have, wouldn't the profile come along for the ride on your finds? I would expect to be able to get a returned array like this: array( [0] Post = post fields User = user fields Profile = profile fields [1] Post = post fields User = user fields

Re: Joining on something other than _id

2011-05-12 Thread Miles J
Why would profile be related to a post? The relationship is the user. On May 12, 9:09 am, dreamingmind dreamingmin...@gmail.com wrote: With the setup you have, wouldn't the profile come along for the ride on your finds? I would expect to be able to get a returned array like this: array( [0]

Re: Joining on something other than _id

2011-05-12 Thread amiable_indian
Thanks! What you said works, but I was trying to avoid all those individual queries (which would be equal to number of posts in this case) and generate a single query like this... SELECT Profile.country_code, COUNT(Post.id) as `post_count` FROM Post JOIN Profile ON ( Post.user_id =

Re: Joining on something other than _id

2011-05-12 Thread dreamingmind
So you want to see the count of posts for each country and the country data is stored in the Profile? My instinct tells me you have the structure you need and that a single $this-Post-find('all', array('your params here')) is going to return the result you want once you dial in all the find

[Ask] ModalBox vs AutoComplete. Conflict or something?

2011-03-11 Thread thom
Hello,, I'm having problem using modalBox. I have a work autocomplete in add user script. But when i combined it using modalbox, it doesn't work. If I access it normally, it worked. Can someone help? ## autocomplete() ## function

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-15 Thread OldWest
Hi Jeremy, Thanks for the note : ) There was nothing wrong in the view. The proper data was never making it from the controller to the view. The controller debug() did display the array correct as you saw, but for some reason it was not being passed to the view. I know my foreach loop and vars

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-15 Thread OldWest
And I probably had a typo when using set() : ) .. My mind was mud after the 5th hour on this! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-15 Thread Stephen
It's always the most simple mistakes that have us searching for complex issues for well over an hour, missing an s really did cause a headache (as per your other thread) :( On 15 February 2011 14:02, OldWest ja...@jasonwydro.com wrote: And I probably had a typo when using set() : ) .. My mind

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread OldWest
Hi Jeremy, Company logo url is not echoed when using my containable as it stands: * echo $plan['Plan']['PlanDetail']['Company']['company_logo_url'];* (with non-containable native relationship find('all') works just fine -- data echoes as expected). *PlanDetail **belongsTo **Company *w/ foreign

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread OldWest
I should note that *PlanType *is not working with the containable either. So it seems the associated models of PlanDetail are causing an issue in the view end cause the data IS in fact in the array. Maybe the array structure output is bad? All I know is this is giving me a heck of a time trying

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread Jeremy Burns | Class Outfit
So the value is there in the array. I see you are echoing out $plan['Plan']['PlanDetail']['Company']['company_logo_url'];, which doesn't exist. Assuming this variable is called $plan and you are not doing any for/foreach loops, to echo that value out you'd start at the top and walk your way

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread OldWest
Hi Jeremy, I am using a foreach() to product records results, but I tried: $plan[0]['PlanDetail']['Company']['company_logo_url']; And as expected (and as you mentioned), (because its a loop) it did not produce anything. My earlier post was an error when I had the ['Plan']... as part of the

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread Jeremy Burns | Class Outfit
You have the data in the array, you just haven't found the right path. Working your way into an array is easy if you do lots of debugging and take it a step at a time. So if your variable is coming into your method as $plan, are you doing a foreach loop on it? Something like: foreach ($plan

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread OldWest
From trying various debugs, it appears when the containable is in use, NONE of the PlanDetail associated models are even being called in. I ran a debug on: debug($plan); from foreach ($plans as $plan): -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread OldWest
When I say called in meaning I am running the debug in the Plan view, so the view file is not receiving the data. -- 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

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread Jamie
It looks like an improperly closed parenthesis to me. This is the array for the PlanDetail contain that you supplied: 'PlanDetail' = array('fields' = array('id', 'effective_date', 'expiration_date', 'active', 'name', 'plan_type_id',

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread OldWest
That's not the problem. The array data is being pulled in as expected in my debug() tests, but the numerical index seems to be screwing everything up! Here is a sample debug record: [136] = Array ( [Plan] = Array ( [id] = 341

RE: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread Krissy Masters
I do something similar except I put of that contain monster array in the model since I just find it cluttering to see that in the controller. Another little trick I find depending on the number of fields in PlanDetail you can simply enter the ones you do not want with 'fields' = array_diff

Re: RE: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread OldWest
Krissy, Thanks for the helpful insight : ) My mind was mud today working out the containable, and I made the error of using find() and Paginate together thus all kinds of problems were cropping up. I agree the model should be fat and the controller skinny. -- Our newest site for the

Re: RE: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread OldWest
Krissy, Can you tell me what the Schema() method is called for in your example? I only know of _schema() in the manual, but Im not sure its the same as what you are using and cant find another reference to it. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread Jeremy Burns | Class Outfit
No - because he was then containing another Model. There was nothing wrong with the statement. It was a parsing error inside the view. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 15 Feb 2011, at 00:02, Jamie wrote: It looks like an improperly closed

Re: Something like ActiveMerchant?

2010-07-16 Thread Andreas
Ok, I make a repo to github. I named it Aktive Merchant ;) The link is http://github.com/akDeveloper/Aktive-Merchant Will add soon some wiki notes for development new gateways. Please give your feedback. Thanks On Jul 16, 7:20 am, iamcam (Cameron Perry) mistercame...@gmail.com wrote: This

Re: Something like ActiveMerchant?

2010-07-15 Thread Andreas
I 'll make a git repo in a few days so you can see the source code. @iamcam The code is close to ruby code ( as php 5.2 allows ). Gateways have standard public methods ( authorize, purchase, void etc ). Every response is an Response class object. There is also Creditcard class object, and

Re: Something like ActiveMerchant?

2010-07-15 Thread keymaster
Very interested in this. Please update this list when it's up. Much appreciated. 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

Re: Something like ActiveMerchant?

2010-07-15 Thread iamcam (Cameron Perry)
This all sounds great! I don't have much of have an opinion of what to do with the name considering the most obvious combinations of PHP and Merchant have already been used. I dunno, maybe Active PHP Merchant? I'm not the most imaginative when it comes to naming. I haven't used PHPUnit yet, but

Re: Something like ActiveMerchant?

2010-07-14 Thread iamcam (Cameron Perry)
Bharadwaj, That's the best I could come up with in the PHP world. Unfortunately the PEAR packages look outdated, and the Kohana component is for that framework - not sure how it would work as a stand-alone. There are ports in other languages (python and Objective- C), but that doesn't help us.

Re: Something like ActiveMerchant?

2010-07-12 Thread iamcam (Cameron Perry)
How closely are you following the original ruby version? I'd be interested in helping out here and there once you put it on github (so much better than google). ~Cameron On Jul 9, 4:20 pm, Andreas andreas.kolla...@gmail.com wrote: Hi, I am currently developing a port of Active Merchant on

Re: Something like ActiveMerchant?

2010-07-12 Thread Bharadwaj Parthasarathy
+1 for github I am also interested in participating in development. From a quick google search, there seems to be no similar framework in php. You may want to check this - http://stackoverflow.com/questions/2768942/do-any-projects-exist-for-php-that-is-similar-to-activemerchant-for-ruby -

Re: Something like ActiveMerchant?

2010-07-09 Thread Andreas
Hi, I am currently developing a port of Active Merchant on PHP. I 've also add a few gateways for testing such as PaypalExpress, Hsbc, Authorize.net(partial), Centinel 3D secure(partial), and Eurobank(Greek bank). I am planning to make a public repository on github or google project hosting,

Re: Can I change $id on -read(null, $id) to $username or something?

2010-07-08 Thread Louie Miranda
, 9:38 pm, Louie Miranda lmira...@gmail.com wrote: Can I change $id on -read(null, $id) to $username or something? The code at:http://bin.cakephp.org/view/700064814 Tries to change the id to username, but I am not sure if this is the correct one. I checked the api

Re: Can I change $id on -read(null, $id) to $username or something?

2010-07-07 Thread euromark
, Louie Miranda lmira...@gmail.com wrote: Can I change $id on -read(null, $id) to $username or something? The code at:http://bin.cakephp.org/view/700064814 Tries to change the id to username, but I am not sure if this is the correct one. I checked the api but, it seems it is not working

Re: Can I change $id on -read(null, $id) to $username or something?

2010-07-07 Thread nurvzy
))) On 7 Jul., 05:42, Sam s...@masterscommission360.com wrote: Try -findByUsername($username) On Jul 6, 9:38 pm, Louie Miranda lmira...@gmail.com wrote: Can I change $id on -read(null, $id) to $username or something? The code at:http://bin.cakephp.org/view/700064814 Tries

Re: Can I change $id on -read(null, $id) to $username or something?

2010-07-07 Thread Miles J
, Louie Miranda lmira...@gmail.com wrote: Can I change $id on -read(null, $id) to $username or something? The code at:http://bin.cakephp.org/view/700064814 Tries to change the id to username, but I am not sure if this is the correct one. I checked the api but, it seems

Re: Can I change $id on -read(null, $id) to $username or something?

2010-07-07 Thread euromark
...@masterscommission360.com wrote: Try -findByUsername($username) On Jul 6, 9:38 pm, Louie Miranda lmira...@gmail.com wrote: Can I change $id on -read(null, $id) to $username or something? The code at:http://bin.cakephp.org/view/700064814 Tries to change the id

Re: Something like ActiveMerchant?

2010-07-06 Thread Shaz
Interesting - I have come across ActiveMerchant when doing RoR applications - but never thought about something similar mostly because the API support of most payment gateways is pretty straightforward using php... On Jul 5, 11:51 pm, iamcam (Cameron Perry) mistercame...@gmail.com wrote: Has

Re: Something like ActiveMerchant?

2010-07-06 Thread iamcam (Cameron Perry)
- but never thought about something similar mostly because the API support of most payment gateways is pretty straightforward using php... On Jul 5, 11:51 pm, iamcam (Cameron Perry) mistercame...@gmail.com wrote: Has anyone seen anything like ActiveMerchant on the PHP side? I searched around a bit

Can I change $id on -read(null, $id) to $username or something?

2010-07-06 Thread Louie Miranda
Can I change $id on -read(null, $id) to $username or something? The code at: http://bin.cakephp.org/view/700064814 Tries to change the id to username, but I am not sure if this is the correct one. I checked the api but, it seems it is not working. I am on 1.3. The SQL is still finding the id

Re: Can I change $id on -read(null, $id) to $username or something?

2010-07-06 Thread Sam
Try -findByUsername($username) On Jul 6, 9:38 pm, Louie Miranda lmira...@gmail.com wrote: Can I change $id on -read(null, $id) to $username or something? The code at:http://bin.cakephp.org/view/700064814 Tries to change the id to username, but I am not sure if this is the correct one. I

Something like ActiveMerchant?

2010-07-05 Thread iamcam (Cameron Perry)
Has anyone seen anything like ActiveMerchant on the PHP side? I searched around a bit but haven't seen anything. I'm intrigued by the fact that it supports so many gateways out of the box, and wonder if (a) anyone has already come up with a PHP alternative, or (b) thinks it feasible to attempt a

Is there something(like a toolkit) to reveal unused variable or method within model in cakephp?

2010-06-10 Thread ytbryan
Is there something(like a toolkit) to reveal unused variable or method within model in cakephp? Thanks! Bryan Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google

Re: $this-something

2010-04-23 Thread cricket
On Apr 22, 11:47 pm, Ed Propsner crotchf...@gmail.com wrote: Okay, dumb question ... Can someone explain the difference between : [code]  $this-Html-something  [/code] and [code]  $html-something  [/code] OOP is a bit of a new road for me. $html-something works fine most everywhere

$this-something

2010-04-22 Thread Ed Propsner
Okay, dumb question ... Can someone explain the difference between : [code] $this-Html-something [/code] and [code] $html-something [/code] OOP is a bit of a new road for me. $html-something works fine most everywhere for me but for some reason my custom helpers will only place nice

How to correct: double file-extension when i download something (media view)

2010-02-03 Thread sebb86
Hello, i almost solved my problem, but there is still a little fault. In one of my views i readout a database cell, with a text inside, e.g. 13.pdf (13.pdf = document_name). The little fault is, when i click on the text in the column (e.g. 13.pdf) a download-windows opens and the file i download

Re: How to correct: double file-extension when i download something (media view)

2010-02-03 Thread John Andersen
The basename function returns the filename with the suffix! Try to change your code to: [code] $basename = basename($file); $file_extension = substr(strrchr($basename,.),1); $basename = basename($file, '.'.$file_extension); ... $this-set('extension', strtolower($file_extension));

Re: How to correct: double file-extension when i download something (media view)

2010-02-03 Thread sebb86
John Hello, thanks for your answer! :) I've added your code. Well, I found out, that my old code (same result with your code) also works, but only with 3 of my 4 test-data-rows. It works for '13.pdf', '288.pdf' and '3.pdf'. It fails for '19.pdf' (result on click = 19.pdf.pdf) and i absolutely

Re: How to correct: double file-extension when i download something (media view)

2010-02-03 Thread sebb86
John Hello, thanks for your answer! :) I've added your code. Well, I found out, that my old code (same result with your code) also works, but only with 3 of my 4 test-data-rows. It works for '13.pdf', '288.pdf' and '3.pdf'. It fails for '19.pdf' (result on click = 19.pdf.pdf) and i absolutely

Re: How to correct: double file-extension when i download something (media view)

2010-02-03 Thread sebb86
John Hello, thanks for your answer! :) I've added your code. Well, I found out, that my old code (same result with your code) also works, but only with 3 of my 4 test-data-rows. It works for '13.pdf', '288.pdf' and '3.pdf'. It fails for '19.pdf' (result on click = 19.pdf.pdf) and i absolutely

Re: How to correct: double file-extension when i download something (media view)

2010-02-03 Thread John Andersen
I suggest you turn on debug and add some debug statements in between your code, so you can see what the content of each variable is at specific places. Debug is turned on in your core.php file in the config directory. Use debug statements: debug($basename); debug($file_extension); and maybe some

Re: Need some directions on how to build something like phpMyAdmin

2010-01-06 Thread BrendonKoz
portion of the framework, probably something buried deep in the Core code that *can* be used by us, but typically isn't. What's that mean for you? You can still fall back on standard PHP when necessary. As for whether you can have a single controller that dynamically maps to a different database

Re: Need some directions on how to build something like phpMyAdmin

2010-01-06 Thread Mathias Hunskår Furevik
design.  I have a pilot project to build a light version of something like PhpMyAdmin. Just trying to figure out how do I achieve this with this framework? Can I have a generic controller to map dynamically to a different database and a different table.  And how do I achieve something

Need some directions on how to build something like phpMyAdmin

2009-12-30 Thread Arnold
Greeting, A traditional programmer who is starting to learn CakePHP and MVC design. I have a pilot project to build a light version of something like PhpMyAdmin. Just trying to figure out how do I achieve this with this framework? Can I have a generic controller to map dynamically

Re: Setting form action to something like /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse

2009-12-05 Thread Ragnis
that works: $html-link('sth', array('controller' = 'Accounts', 'action' = 'Manage', '?' = array('var1' = 'sth', 'var2' = 'sthelse'))); But that doesn't: echo $form-create('Accounts', array('url' = array ('controller' = 'Accounts', 'action' = 'Manage', '?' = array('var1' = 'sth', 'var2' =

what does it mean to bake something

2009-12-03 Thread www.landed.at
I thought it was just a term that was meaning a finished project, but the more I see I think it is actually some tool ? php is not compiled so I'm thinking its not a compiler as such, bit of a dumb question but it isnt really clear to a noob like me. Check out the new CakePHP Questions site

Re: what does it mean to bake something

2009-12-03 Thread Jeremy Burns
Bake just gets you started really. If you follow the instructions in the online guide you'll be able to create basic models, controllers and views for the tables in your database. The results are pretty good, but not what you'd want to go live with. If you are learning your way around Cake it's a

Re: what does it mean to bake something

2009-12-03 Thread Maximillian Schwanekamp
Bake is sometimes used loosely to just mean develop with Cake but really bake is a console tool for rapidly generating controllers, models, views, etc. It's quite handy. http://book.cakephp.org/view/113/Code-Generation-with-Bake Check out the new CakePHP Questions site http://cakeqs.org and

Re: what does it mean to bake something

2009-12-03 Thread Walther
CakePHP has a very nice console/shell scripting system. Cake Bake is one of the core scripts. Bake allows you to very quickly generate basic Models, Controllers and Views for your app based on your database structure. It even setups relationships for you (Assuming you are following the

Re: Setting form action to something like /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse

2009-11-25 Thread Ragnis
But how can i use it in form url? On Nov 25, 5:29 am, Dr. Loboto drlob...@gmail.com wrote: All as you asked. And Cake properly encoded HTML entities as symbols are restricted in source and must be represented in text as amp; On Nov 24, 9:43 pm, Ragnis ragnis.ar...@gmail.com wrote: When

Re: Setting form action to something like /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse

2009-11-25 Thread Dave
print_r($_GET); On Wed, Nov 25, 2009 at 8:46 AM, Ragnis ragnis.ar...@gmail.com wrote: But how can i use it in form url? On Nov 25, 5:29 am, Dr. Loboto drlob...@gmail.com wrote: All as you asked. And Cake properly encoded HTML entities as symbols are restricted in source and must be

Re: Setting form action to something like /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse

2009-11-25 Thread j0n4s.h4rtm...@googlemail.com
Afaik internally HtmlHelper::link as well as Controller::redirect as well as Form::create all use Router::url. See: http://book.cakephp.org/view/836/link http://book.cakephp.org/view/842/url http://book.cakephp.org/view/186/options-url On Nov 25, 2:46 pm, Ragnis ragnis.ar...@gmail.com wrote:

Re: Setting form action to something like /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse

2009-11-24 Thread Ragnis
When doing it like this: array ('controller' = 'Accounts', 'action' = 'Manage', '?' = array ('var' = 'b73cr6xzr6z', 'var2' = 'somethingelse')) then the result will be /Accounts/Manage/? var=b73cr6xzr6zamp;var2=somethingelse On Nov 24, 6:31 am, Dr. Loboto drlob...@gmail.com wrote: You can set

Re: Setting form action to something like /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse

2009-11-24 Thread Dr. Loboto
All as you asked. And Cake properly encoded HTML entities as symbols are restricted in source and must be represented in text as amp; On Nov 24, 9:43 pm, Ragnis ragnis.ar...@gmail.com wrote: When doing it like this: array ('controller' = 'Accounts', 'action' = 'Manage', '?' =  array ('var' =

Re: Setting form action to something like /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse

2009-11-23 Thread Ragnis
I need them as GET variables. My form is at /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse and when i submit the form, the GET variables will be gone but i want them to stay. On Nov 22, 11:39 pm, Amit a...@amitvaria.com wrote: Is there a reason you can't just include the vars in the form?

Re: Setting form action to something like /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse

2009-11-23 Thread Dave
Something like this should work echo $form-create('YourForm',array('url'=YOURURL . '?' . $this-passedArgs)); On Mon, Nov 23, 2009 at 10:22 AM, Ragnis ragnis.ar...@gmail.com wrote: I need them as GET variables. My form is at /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse and when i

Re: Setting form action to something like /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse

2009-11-23 Thread Dr. Loboto
You can set form action as: array ('controller' = 'Accounts', 'action' = 'Manage', '?' = array ('var' = 'b73cr6xzr6z', 'var2' = 'somethingelse')) On Nov 23, 9:22 pm, Ragnis ragnis.ar...@gmail.com wrote: I need them as GET variables. My form is at

Re: Setting form action to something like /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse

2009-11-23 Thread Walther
What is wrong with using Accounts/Manage/var:b73cr6xzr6z/ var2:somethingelse ? It looks neater, and is just as easy to use from an application perspective. On Nov 22, 8:54 pm, Ragnis ragnis.ar...@gmail.com wrote: So how can i do that? And i don't want to use /Accounts/Manage/var:b73cr6xzr6z/

Setting form action to something like /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse

2009-11-22 Thread Ragnis
So how can i do that? And i don't want to use /Accounts/Manage/var:b73cr6xzr6z/ var2:somethingelse -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this group, send

Re: Setting form action to something like /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse

2009-11-22 Thread Amit
Is there a reason you can't just include the vars in the form? $form-input('var', array('type'='hidden', 'value'= 'b73cr6xzr6z')); On Nov 22, 12:54 pm, Ragnis ragnis.ar...@gmail.com wrote: So how can i do that? And i don't want to use /Accounts/Manage/var:b73cr6xzr6z/ var2:somethingelse --

Simple query with Containable. I think I'm overlooking something.

2009-10-09 Thread BrendonKoz
I have two tables, both very simple. Desks: id, name Question_Tallies id, created, desk_id, question_type_id I'm trying to get the id, and created fields that are associated with a single desk id. My query code is below: $this-QuestionTally-contain('Desk.id = '.$desk_id); $thisWeek =

Re: How to to something after successful login (like callback) ?

2009-06-22 Thread u2ix
seehttp://book.cakephp.org/view/395/autoRedirect regards, AD oh much thanks. i wonder why I never saw that. But now it works, wonderful thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To

Re: How to to something after successful login (like callback) ?

2009-06-21 Thread u2ix
UsersController: // this is the stripped-down version public function login() {         if ($user = $this-Auth-user())         {                 $this-User-Login-create();                 $this-User-Login-save(                         array(                                 'Login' =

Re: How to to something after successful login (like callback) ?

2009-06-21 Thread AD7six
On Jun 21, 7:15 pm, u2ix demian.gempe...@gmail.com wrote: UsersController: // this is the stripped-down version public function login() {         if ($user = $this-Auth-user())         {                 $this-User-Login-create();                 $this-User-Login-save(        

How to to something after successful login (like callback) ?

2009-06-19 Thread u2ix
Hello I want to update a field in database (loginCount) after successful login. But I found now way where to insert this action, without to make a redirect, as a callback or similar. If I insert it in Users/login it will only be executed on getting the login page, as I see? How can I do this?

Re: How to to something after successful login (like callback) ?

2009-06-19 Thread brian
it will only be executed on getting the login page, as I see? You should be able to do this inside login(). Can you post your code? I'm doing something similar, except that the logins are saved to a separate table. This way, I can keep a record of dates/times. CREATE TABLE IF NOT EXISTS logins

Re: Confirmable Behavior: is there something similar?

2009-06-06 Thread Walther
asks for confirmation (by a POST form) before it does the actual delete. Something like: function delete($id) {     $model = $this-modelClass;     if (!empty($this-data)) {         $this-{$model)-del($this-data[$model]['id'];         // redirect to the index page         $this-redirect

Confirmable Behavior: is there something similar?

2009-06-05 Thread Ernesto
Hello :) is there any behavior that asks Are you sure before deleting any record? i can't find anything similar in the bakery --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group,

Re: Confirmable Behavior: is there something similar?

2009-06-05 Thread toby1kenobi
I think I may be misunderstanding, but if you use $html-link to generate your delete url you can add this as a parameter: link(string $title, mixed $url = null, array $htmlAttributes = array (), string $confirmMessage = false, boolean $escapeTitle = true) See the liink method here :

Re: Confirmable Behavior: is there something similar?

2009-06-05 Thread Ernesto
that works great! thanks :D On 5 Giu, 11:04, toby1kenobi toby.math...@gmail.com wrote: I think I may be misunderstanding, but if you use $html-link to generate your delete url you can add this as a parameter: link(string $title, mixed $url = null, array $htmlAttributes = array (), string

Re: Confirmable Behavior: is there something similar?

2009-06-05 Thread rich...@home
available to all your controllers) which asks for confirmation (by a POST form) before it does the actual delete. Something like: function delete($id) { $model = $this-modelClass; if (!empty($this-data)) { $this-{$model)-del($this-data[$model]['id']; // redirect

Re: Confirmable Behavior: is there something similar?

2009-06-05 Thread Ernesto
help if your site is being spidered... A better approach is to create your own delete($id) method AppController (so its available to all your controllers) which asks for confirmation (by a POST form) before it does the actual delete. Something like: function delete($id) {     $model

Re: Append something to the Flash message

2009-05-14 Thread eveningskyline
something to the view. I use setFlash for this. But it only shows me the message from the last setFlash call. Is there a way to append something to the existing value? Thanks a lot. Roman --~--~-~--~~~---~--~~ You received this message because you are subscribed

Append something to the Flash message

2009-05-11 Thread Roman Brunnemann
Hi, short question. I call different methods of a controller on one page request. Most of the functions should write something to the view. I use setFlash for this. But it only shows me the message from the last setFlash call. Is there a way to append something to the existing value? Thanks

  1   2   3   >