Re: paypal integration in cakephp

2009-01-28 Thread Arthur Pemberton
On Wed, Jan 28, 2009 at 6:47 AM, Arafat arafa...@gmail.com wrote: Dear i cant integrate the paypal in my site. The tutorial is too critical. Can any one make it easier. Thanks It's not that hard -- Fedora 9 : sulphur is good for the skin ( www.pembo13.com )

Re: Fighting cakephp : can't add user count to group index

2009-01-13 Thread Arthur Pemberton
On Tue, Jan 13, 2009 at 12:59 PM, Webweave webwe...@gmail.com wrote: Or even easier (although less cake-like, probably more efficient at the DB level): 'fields' = array('Group.*', '(select count(1) from users User where User.group_id = Group.id) as users_count') Genius. I should have

Fighting cakephp : can't add user count to group index

2009-01-12 Thread Arthur Pemberton
I was trying to do what would be a fairly simple thing in plain SQL. The bake script generated a nice groups_controller for me which paginated the groups listing. Fairly simple. All I wanted to do was add a user count to the index. The required SQL would be: SELECT `Group`.`id` ,

Re: ACL/Auth Speed Issues

2009-01-10 Thread Arthur Pemberton
On Sat, Jan 10, 2009 at 2:36 AM, AussieFreelancer patr...@aussiefreelancer.com.au wrote: Hi, does anyone have a working example of where acl and auth components are being used for a membership base of 10,000+ and there are no speed issues? I really need to find an effective permissions

Any built in way to do lazy deletes?

2009-01-09 Thread Arthur Pemberton
Lazy deletes being setting a field appropriately so that the row is 'deleted' but still in the database. -- Fedora 9 : sulphur is good for the skin ( www.pembo13.com ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Any built in way to do lazy deletes?

2009-01-09 Thread Arthur Pemberton
On Fri, Jan 9, 2009 at 12:56 PM, Bernardo Vieira bvieira.li...@gmail.com wrote: Try the delatable behavior. Not built in, but close. http://bakery.cakephp.org/articles/view/soft-delete-behavior Arthur Pemberton wrote: Lazy deletes being setting a field appropriately so that the row

Getting close to deploying my first CakePHP app, what should I know?

2009-01-09 Thread Arthur Pemberton
First of all, I started dev with the release candidate available at the time, so I know I'm going to have to update to the latest release. I will have to turn of debugging mode of course, but anything others experience with this can share with me? Thank you. -- Fedora 9 : sulphur is good for

Better way to extend configuration to database table?

2009-01-09 Thread Arthur Pemberton
I can easily create a model which simply houses key/value/type triplets and use that to store random user editable config. I am just wondering if there is a better way to do this in CakePHP. Thank you. -- Fedora 9 : sulphur is good for the skin ( www.pembo13.com )

Re: Selecting users who are not friends

2009-01-02 Thread Arthur Pemberton
On Fri, Jan 2, 2009 at 10:53 PM, Webweave webwe...@gmail.com wrote: First, you should reall be using find('all') not findAll, as in: $friends = $this-User-find('all', array('conditions' = array ('User.id' = $target))); To find all the users who are not friends, simply use the following:

Re: checkbox groups in cakephp 1.2

2008-12-31 Thread Arthur Pemberton
On Wed, Dec 31, 2008 at 1:54 PM, mike mwu...@gmail.com wrote: thanks for the response. thats not quite what I want. Each user can have multiple ethnicities, so its a many to many relationship. In my models, I have User hadMany UsersEthnicities, Ethnicity hasMany UsersEthnicity and

Re: checkbox groups in cakephp 1.2

2008-12-30 Thread Arthur Pemberton
On Tue, Dec 30, 2008 at 9:19 PM, mike mwu...@gmail.com wrote: can someone help me with this please? the documentation is not good enough for dumbasses like me. thanks. You'll have to remind us what you are trying to do. -- Fedora 9 : sulphur is good for the skin ( www.pembo13.com )

Re: Selecting users who are not friends

2008-12-29 Thread Arthur Pemberton
On Mon, Dec 29, 2008 at 2:59 PM, WebFeathers webfeath...@gmail.com wrote: Hey- I'm trying to generate a list of users who are not friends of the currently logged in user. I have two tables: profiles, and users_users profiles includes the fields: id, first_name, last_name, etc...

Re: Selecting users who are not friends

2008-12-29 Thread Arthur Pemberton
On Mon, Dec 29, 2008 at 4:21 PM, WebFeathers webfeath...@gmail.com wrote: Thank you Arthur - I figured I'd have to do it that way - was just looking for a more elegant solution. Thanks! ~R~ Keep in mind that I have only been using CakePHP for about a month now, someone else may have a more

Re: Run Queries Unrelated to Controller

2008-12-27 Thread Arthur Pemberton
that it doesn't know the Sequence table. Thoughts? Do I have to recode the associations already in the models? Chad On Fri, Dec 26, 2008 at 6:26 PM, Arthur Pemberton pem...@gmail.com wrote: On Fri, Dec 26, 2008 at 5:14 PM, Chad Casselman ccassel...@gmail.com wrote

Re: HTML 4 specific CakePHP?

2008-12-27 Thread Arthur Pemberton
On Sat, Dec 27, 2008 at 4:22 AM, gearvOsh mileswjohn...@gmail.com wrote: No thats the thing, XHTML is not supported. You would need to put the content-type as application/xhtml+xml which in most cases breaks the layout and always breaks IE. Everyone usually puts it as text/html which then

Re: HTML 4 specific CakePHP?

2008-12-27 Thread Arthur Pemberton
On Sat, Dec 27, 2008 at 10:47 AM, Marcelo Andrade mfandr...@gmail.com wrote: On Sat, Dec 27, 2008 at 12:43 PM, Bernardo Vieira bvieira.li...@gmail.com wrote: gearvOsh wrote: In CakePHP you can choose the Doctypes of XHTML or HTML but the taglist is all XHTML, which then causes markup

Re: Run Queries Unrelated to Controller

2008-12-27 Thread Arthur Pemberton
On Sat, Dec 27, 2008 at 1:09 PM, Chad Casselman ccassel...@gmail.com wrote: So does than mean I can't run MySQL commands beyonds selects or just for this one example? I never said you can't do it, just said it would be easier. Consider that you know everything necessary to do the calculations

Re: checkbox groups in cakephp 1.2

2008-12-27 Thread Arthur Pemberton
On Sat, Dec 27, 2008 at 1:54 AM, mike mwu...@gmail.com wrote: I saw a helper class for this for 1.1, but nothing for 1.2. Is their an example of a checkbox group that maps to the same database field? for example, one checkbox maps to a value of 1, another maps to a value of 2.

Re: How would I write this query

2008-12-27 Thread Arthur Pemberton
Assuming that translates to: SELECT Friend.*, User.username, User.avatar, User.handler FROM friends AS Friend, INNER JOIN users AS User ON User.id = Friend.user_id WHERE Friend.status = 'approved' AND ( (Friend.user_id =

Re: problem with ACL...

2008-12-26 Thread Arthur Pemberton
On Fri, Dec 26, 2008 at 4:39 AM, vikas vikas...@gmail.com wrote: Hi.. I am learning cakephp myself and uptill now ACL is the tuffest topic.. I am working on a project called TMS-Task Management System. In that There is groups table which has a entry like

Re: Run Queries Unrelated to Controller

2008-12-26 Thread Arthur Pemberton
On Fri, Dec 26, 2008 at 5:14 PM, Chad Casselman ccassel...@gmail.com wrote: I have a Controller for Jobs with a model Job. When I hit /jobs (the index function of Job Controller), I need to run a query on 2 other tables (not joined to Job) to find values to manually insert into jobs before

Re: Run Queries Unrelated to Controller

2008-12-26 Thread Arthur Pemberton
On Fri, Dec 26, 2008 at 7:40 PM, Chad Casselman ccassel...@gmail.com wrote: Should it bring in all hardcoded (model) associations when I import them? Here is what I have and I can't pull any fields from Sequences or PackagesSequence objects/tables var $uses =

Re: HTML 4 specific CakePHP?

2008-12-26 Thread Arthur Pemberton
On Fri, Dec 26, 2008 at 10:54 PM, gearvOsh mileswjohn...@gmail.com wrote: Honestly I really dislike the xhtml type of tags in CakePHP. There are no reasons for that, I think it would be a better idea to make it html 4 strict. Heres an article on why xhtml is retarded.

Re: HTML 4 specific CakePHP?

2008-12-26 Thread Arthur Pemberton
On Sat, Dec 27, 2008 at 12:32 AM, gearvOsh mileswjohn...@gmail.com wrote: Please explain your cleanliness? HTML 4 can do everything XHTML can except self closing tags /. Also your XHTML is being parsed as HTML and removed, so whats your point? What exactly is CakePHP doing that you find

Re: HTML 4 specific CakePHP?

2008-12-26 Thread Arthur Pemberton
On Sat, Dec 27, 2008 at 1:41 AM, gearvOsh mileswjohn...@gmail.com wrote: Most browsers dont support XHTML I don't know, all the sites where I use XHTML seem to work just fine. and most people dont even write XHTML correctly. Not exactly my problem now is it. That's kinda like saying don't

Re: Problem with CakePHP 1.2 recursive including content to page, big problem.

2008-12-21 Thread Arthur Pemberton
On Sun, Dec 21, 2008 at 2:44 AM, Petr Vytlačil petr.vytla...@gmail.com wrote: Hi i developing a application for my friends, i try this applicaton on two webhosting (on local and other) all go very fine, but when i uploaded application on webhosting my friends application show bad. My problem

Re: A newbie question (I'm unable to find it answered)

2008-12-20 Thread Arthur Pemberton
On Sat, Dec 20, 2008 at 12:04 PM, ark0n3 nicolabeg...@gmail.com wrote: Yes I've already accomplished it that way but it seems to me like a too low-level solution: CakePHP let us centralize models so I hope I could achieve the same result in the whole app. Is there no way to access the Helper

Re: Auth: Why has my user no access to this action?

2008-12-17 Thread Arthur Pemberton
On Wed, Dec 17, 2008 at 2:24 AM, Liebermann, Anja Carolin anja.lieberm...@alltours.de wrote: Hi Arthur, Thank you for your answer. I tackled my problem now in a kind I did hope I didn't need. Instead of setting CRUD permissions for each controller and mapping the actions to the CRUD

Re: Email component parsing body to find headers?

2008-12-17 Thread Arthur Pemberton
On Wed, Dec 17, 2008 at 11:30 AM, caminante running.ba...@gmail.com wrote: Hello, I'm having a problem in which the Email component This sucks so bar. For some reason I though Email wuld be a helper and not a component. Spent a few hours last night trying to get email to work properly, only

Question about Email component: Does it support 'POP before SMTP'?

2008-12-17 Thread Arthur Pemberton
Looks like I am going to need to use 'POP before SMTP' as that is what my web hosts support (at least for code not running on the webserver, such as my dev code). Does the email component support this? -- Fedora 9 : sulphur is good for the skin ( www.pembo13.com )

Re: Auth: Why has my user no access to this action?

2008-12-16 Thread Arthur Pemberton
On Tue, Dec 16, 2008 at 8:34 AM, Liebermann, Anja Carolin anja.lieberm...@alltours.de wrote: Another strange thing: my user has no rights to logout. Question: What are the proper permissions for the user controller? Do I have to set the permissions for login and logout? I have heard here

Capturing form errors

2008-12-10 Thread Arthur Pemberton
When using the form helper to bind controls to data, validation errors are helpfully passed onto the page. How do I replicate this for custom controlls (PHP in the views)? Thank you. -- Fedora 9 : sulphur is good for the skin ( www.pembo13.com )

Re: How do I approach irc.freenode.net cakephp ??

2008-12-08 Thread Arthur Pemberton
On Mon, Dec 8, 2008 at 6:07 PM, xfhxfh [EMAIL PROTECTED] wrote: Hi, .. I was trying since half an hour but was not able to get close to cakephp @ irc.freenode.net like trying out irc.freenode.net/cakephp etc. in the addressvar of IExplorer What's the process ? 1. Install Firefox

Re: Getting all the acos a aro can access?

2008-12-02 Thread Arthur Pemberton
On Tue, Dec 2, 2008 at 3:00 AM, Tóth Imre [EMAIL PROTECTED] wrote: I did it in a brue force way:), so i am intersted in a smooth solution too.:) 2008/12/1 dr. Hannibal Lecter [EMAIL PROTECTED] I'd like to know this too.. I didn't get the time to look into it in detail, but when I do and if

Re: Getting started with themes and static files

2008-11-29 Thread Arthur Pemberton
On Fri, Nov 28, 2008 at 12:04 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If your looking for an easy content management system that you can easily extend upon you might wanna look at wildflower which is a cms built in cakephp wf.klevo.sk Good luck Thanks, I really wasn''t looking for

Chain off of Router

2008-11-27 Thread Arthur Pemberton
Is it possible chain of the Router to catch all routes that it can't resolve? I know that it normally hands of to the Missing Controller if it can't find a route. I would like to insert a controller between these two, check against my DB for a page, create the page if it is available, if not

Getting started with themes and static files

2008-11-26 Thread Arthur Pemberton
I'm just looking into CakePHP for a small website I need to build (mostly static pages, but some logic with persistent data). The screencasts and tutorials I have looked through so far provide good starting information, but not much on making use of CakePHPs themeing engine, and how it deals

Re: Getting started with themes and static files

2008-11-26 Thread Arthur Pemberton
On Wed, Nov 26, 2008 at 4:18 PM, James K [EMAIL PROTECTED] wrote: For static pages, just add them to views/pages/ Name them with a .ctp extension You should be able to reach those pages by simply going to yourdomain.com/pages/staticpagename and it'll wrap that content in the default

Re: Getting started with themes and static files

2008-11-26 Thread Arthur Pemberton
On Wed, Nov 26, 2008 at 7:20 PM, Dan Bair [EMAIL PROTECTED] wrote: If you're going to be having a lot of static pages, it may be worth your while to use Cake's Folder and File objects. You can loop through the .ctp files assign the routes dynamically. Here's a quick snippet that will go