On Wed, Jan 28, 2009 at 6:47 AM, Arafat 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 )
--~--~-~--~~~---
On Tue, Jan 13, 2009 at 12:59 PM, Webweave 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 thought of that. I
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` , `Group`.`name`
On Sat, Jan 10, 2009 at 2:36 AM, AussieFreelancer
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 solution, which
> i thought ac
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 )
--~--~-~--~~-
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 t
On Fri, Jan 9, 2009 at 12:56 PM, Bernardo Vieira
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 t
"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 Grou
On Wed, Jan 7, 2009 at 2:13 PM, Chad Casselman wrote:
>
> I am working on a complex app (for me) and at the same time I have yet
> to grasp how to use Auth correctly.
What I did, not necessarily the best thing:
Started getting the basic project together, then I arrived at the
point where I need
I am trying to bind a ModelC based on its relationship to ModelB which
is related to ModeA (my main mode).
If I set recursive to 2, i get all the data, but I can't seem to
include the second level items in the field list.
So I would like to bind ModelC to ModelA accordingly, however, cake is
add
On Fri, Jan 2, 2009 at 10:53 PM, Webweave 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:
>
>$n
On Wed, Dec 31, 2008 at 1:54 PM, mike 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 UsersEthnicity belo
On Tue, Dec 30, 2008 at 9:19 PM, mike 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 )
--~--~-~--~
On Mon, Dec 29, 2008 at 4:21 PM, WebFeathers 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 elegant solutio
On Mon, Dec 29, 2008 at 2:59 PM, WebFeathers 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...
> users_users includes: id,
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 = ':us
On Sat, Dec 27, 2008 at 1:54 AM, mike 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.
http://book.cakephp.o
On Sat, Dec 27, 2008 at 1:09 PM, Chad Casselman 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 in PHP,
hence it is
On Sat, Dec 27, 2008 at 10:47 AM, Marcelo Andrade wrote:
> On Sat, Dec 27, 2008 at 12:43 PM, Bernardo Vieira
> wrote:
>>
>> gearvOsh wrote:
>>> In CakePHP you can "choose" the Doctypes of XHTML or HTML but the
>>> taglist is all XHTML, which then causes markup errors.
>>>
>> gearvOsh,
>> It shou
On Sat, Dec 27, 2008 at 4:22 AM, gearvOsh 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 renders the browser
ny fields from Sequences or
>> > > > PackagesSequence objects/tables
>> >
>> > > > var $uses = array('Package','Sequence','PackagesSequence');
>> > > > $extra = array(
>> > > > 'r
On Sat, Dec 27, 2008 at 1:41 AM, gearvOsh 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 do
maths because a l
On Sat, Dec 27, 2008 at 12:32 AM, gearvOsh 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 such a problem?
Y
On Fri, Dec 26, 2008 at 10:54 PM, gearvOsh 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.
>
> http://www.webdevout.net/articles/
On Fri, Dec 26, 2008 at 7:40 PM, Chad Casselman 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 = array('Package','Sequence','PackagesSequen
On Fri, Dec 26, 2008 at 5:14 PM, Chad Casselman 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 actually display
On Fri, Dec 26, 2008 at 4:39 AM, vikas 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
> administrator,manager,developer,designer,client
On Sun, Dec 21, 2008 at 2:44 AM, Petr Vytlačil 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 you can see on th
On Sat, Dec 20, 2008 at 12:04 PM, ark0n3 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 classes?
Are yo
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 )
--~--~-~--~~-
On Wed, Dec 17, 2008 at 11:30 AM, caminante 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 to find today that it h
On Wed, Dec 17, 2008 at 2:24 AM, Liebermann, Anja Carolin
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 options, I give now ful
On Tue, Dec 16, 2008 at 8:34 AM, Liebermann, Anja Carolin
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 be some, who said never
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 )
--~--~-~--~~~---~--~
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 Firefo
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 whe
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 lo
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 pas
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
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
> defa
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 with
41 matches
Mail list logo