Re: Should I make the leap from PHP coder to cakePHP coder?

2010-01-08 Thread j0n4s.h4rtm...@googlemail.com
If you want to stick with PHP, cake is a nice upgrade as compareable "true" PHP5ish frameworks are still very early alpha On Jan 9, 1:03 am, Miles J wrote: > It took me only 2-4 weeks to really understand the core of CakePHP. If > you have an extra few weeks, then it doesn't hurt to try it out. A

Re: iPhone users: help with idea of a CakePHP plugin

2010-01-08 Thread euromark
looks really interesting! if only i had an iphone... :( did i get this right - via API you can send notifications to your mobile? like if somebody new registers on your website etc? On 8 Jan., 21:19, BrendonKoz wrote: > I've recently discovered Prowl (http://prowl.weks.net/) for the iPhone/ > i

Re: How to retrieve the URL being accessed

2010-01-08 Thread euromark
take a lock at $this->params you can do that with pr() which prints out the array as long as you are in debug mode there is - controller: $this->params['controller'] - action: $this->params['action'] and more but those two should do it for now you can now check on them but as soon as you need mo

How to retrieve the URL being accessed

2010-01-08 Thread SeeVik
Hello all I am just starting out with cakephp. I want to restrict the access to some particular controllers and actions depending on user privileges. I am thinking of doing this in the app_controller module. I wanted to know how can I check the controller and action being accessed over there. Tha

Using the test suite for controller output

2010-01-08 Thread trobrock
I am trying to use the test suite to test the output of a controller that uses the RequestHandler to decide to hand back xml to the user by parsing the .xml extension, but I am getting an error "XML Parsing Error: not well-formed" when I run the test case, what is causing the problem? [code snippe

Re: Should I make the leap from PHP coder to cakePHP coder?

2010-01-08 Thread Miles J
It took me only 2-4 weeks to really understand the core of CakePHP. If you have an extra few weeks, then it doesn't hurt to try it out. And in the end if you don't like it, then you can simple go back to your basic PHP. Personally, I wouldn't think of going to back and not using frameworks, unless

Re: highest traffic cakePHP 1.2 sites?

2010-01-08 Thread robustsolution
1)I always encourage developers to code globally the assets in cakePHP, so instead of loading 6-non gzipped javascript files, you load one gzipped javascript file (dont bother yourself with minification). 2)If you are using the Auth components, be aware to not load the User model when the user is s

i18n partial translation

2010-01-08 Thread lemp
Since upgrading to Cake 1.2.5, most of the string in my app do not translate any more (but some do). I checked and config.language is set properly. Any suggestions on where and what I should be looking for to debug this? Check out the new CakePHP Questions site http://cakeqs.org and help others w

RE: Should I make the leap from PHP coder to cakePHP coder?

2010-01-08 Thread Alan Asher
There is definitely a learning curve. I would say about 2 weeks worth of a learning curve to go from a skilled oop php developer to understanding the ins and outs of cakephp. If you've been working on the same project for 6 years, there's a good chance you have a lot of custom solutions to smal

Model associations

2010-01-08 Thread Daniel S. Reichenbach
Good evening, I am currently converting a game content management application over to CakePHP 1.3, and since this is my first try at baking I'd like to check if I am doing things the Cake way :-) The current model for a creature has four fields containing the ID of 3D textures. For each of these

Sincronizar two App CakePHP

2010-01-08 Thread giandini
To English Anyone have any idea how one could synchronize the data in CakePHP two applications one in localhost in my house and one in the web hosting on the Internet. Let a sample application that manages a directory of people with the fields Name (string), Name (string) and Photo (string). The

Should I make the leap from PHP coder to cakePHP coder?

2010-01-08 Thread stinsoninc
I've been coding straight PHP for about 6 years now at a small company that is not an "early adopter". I've looked into the PHP frameworks a bit and I keep going back to a fundamental question for me: Is the cost of learning essentially a new language and converting (or probably re-writing) legac

Re: highest traffic cakePHP 1.2 sites?

2010-01-08 Thread Miles J
My site gets about 30k views a day, not too much but it works. I also have no caching besides the built in file system caching. http://www.sc2armory.com/ On Jan 8, 6:51 am, Pablo Viojo wrote: > Our site (http://www.needish.com) is having over 50k unique visitors a day > and 150-200k pageviews/da

Re: CakePHP Job

2010-01-08 Thread BrendonKoz
Hi Vince, You may also want to post your job posting at the following sites as well if you haven't already: - http://cakephp.org/jobs - http://www.withcake.com/ Good luck. On Jan 8, 10:18 am, foldiman wrote: > Hi, > I'm looking for a CakePHP developer to join an existing CakePHP > development t

iPhone users: help with idea of a CakePHP plugin

2010-01-08 Thread BrendonKoz
I've recently discovered Prowl (http://prowl.weks.net/) for the iPhone/ iPod touch. It's basically an alerting system that sends Push notifications to your device for certain actions. It can integrate with Growl for Windows or OSX, but more importantly (in this case), it offers up an API. I've u

Re: one to many Model relations

2010-01-08 Thread John Andersen
What are the requirements for Model3? Must there be a relationship to Model2 if there is a relationship to Model1 and vice versa? Enjoy, John On Jan 8, 9:05 pm, loke wrote: > I have a relational requirement where more than one models are related > to another model. > > I want to define the rel

one to many Model relations

2010-01-08 Thread loke
I have a relational requirement where more than one models are related to another model. I want to define the relations with an index table for each relationship between the two models. Model1 -> Model1_Model3_index -> Model3 Model2 -> Model2_Model3_index -> Model3 I could see HABTM to be a sol

Re: problem with Containable behavior

2010-01-08 Thread Lorenzo Bettini
And by the way, even not using the contain() method at all, and using the 'contain' array also in the Paper model does not help either: the contain on the Paper model breaks the contain on the AuthorsPaper model... the only thing that works is to do a bindModel on the AuthorsPaper $this->bindM

Re: Ajax Form Not Posting anything to $this->data

2010-01-08 Thread Chris Roush
Yes. I put a debug($this->data) in my controller, but it only outputs a blank line. If I put anything else in there -- echo "Hello! I am Here!"; -- It gets printed just fine and it loads the correct view and everything, there are just no form values in my $this->data (or anywhere else!). On Jan 8

Re: problem with Containable behavior

2010-01-08 Thread Lorenzo Bettini
It's just the same problem: if I do $joinAuthors = $this->find('all', array( 'contain' => array('Author'), 'conditions' => array('AuthorsPaper.paper_id' => $id), 'order' => 'AuthorsPaper.id' ) ); it still does not work, after the other contain call on Pape

Re: Routing techniques

2010-01-08 Thread Miles J
I would not recommend putting at the root of the URL, as this would cause conflicts with other controllers. Like euromark said, its best to place it in a "users" root. Ive done the same thing on one of my projects here: http://gamesync.com/user/gearvOsh It can be navigated to show URLs like http:

Re: Ajax Form Not Posting anything to $this->data

2010-01-08 Thread Miles J
Can you echo something in the controller and see it in the AJAX response? On Jan 7, 6:59 pm, Chris Roush wrote: > Hello everyone, > I'm trying to get an ajax form working on my site, and I'm having a > strange issue. The div set to update updates fine and displays the > view file it's supposed to

Re: problem with Containable behavior

2010-01-08 Thread Miles J
Add the contain into the find() itself, not a stand alone method. 'contain' => array('Author') Can I see the array thats returned? On Jan 8, 7:34 am, Lorenzo Bettini wrote: > Hi > > I've just started using the Containable behavior (which I put in AppModel). > > I have Paper <-> Author, where <-

Re: EmailComponent - Attachments

2010-01-08 Thread majna
http://php.net/manual/en/function.move-uploaded-file.php On Jan 8, 5:36 am, Krrose27 wrote: > I am attempting to attach a file that is posted to my server... > > $this->Email->attachments = array($_FILES[log][tmp_name]); > > The above works and the file is attached... > > It however attaches it w

Using prototype & xstandard with CakePHP

2010-01-08 Thread WhyNotSmile
Hi folks, I'm trying to integrate the xstandard WYSIWYG editor with CakePHP. I found a tutorial here: http://bakery.cakephp.org/articles/view/xstandard-wysiwyg-helper but it starts off by saying "I'll assume you already link your webpages to the prototype.js, if not, go grab a copy for yourself

problem with Containable behavior

2010-01-08 Thread Lorenzo Bettini
Hi I've just started using the Containable behavior (which I put in AppModel). I have Paper <-> Author, where <-> is the HABTM and in my AuthorsPaper (join table related) model I have this method function paper_authors($id) { $this->recursive = 0; $this->contain('Author');

CakePHP Job

2010-01-08 Thread foldiman
Hi, I'm looking for a CakePHP developer to join an existing CakePHP development team for a 2-3 month contract in NYC. CakePHP knowledge is required. Any front-end skills such as jQuery and CSS are a bonus. This project is for a major media/entertainment brand and will require some work on-site at

Re: highest traffic cakePHP 1.2 sites?

2010-01-08 Thread Pablo Viojo
Our site (http://www.needish.com) is having over 50k unique visitors a day and 150-200k pageviews/day. Using nginx, mysql, memcached et al (cake 1.2) Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://www.needish.com On Fri, Jan 8, 2010 at 11:16 AM, Dave J wrote: > I can a

Re: cakephp foreach

2010-01-08 Thread Jeremy Burns
It works just as in straightforward php: foreach ($array as $key): echo $key; endforeach; On 8 Jan 2010, at 08:01, Mann da wrote: > i want help about foreach in cakephp, > > thanxs > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related

Re: cakephp foreach

2010-01-08 Thread Pablo Viojo
Please elaborate your question. Regards Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://www.needish.com On Fri, Jan 8, 2010 at 5:01 AM, Mann da wrote: > i want help about foreach in cakephp, > > thanxs > > Check out the new CakePHP Questions site http://cakeqs.org and h

cakephp foreach

2010-01-08 Thread Mann da
i want help about foreach in cakephp, thanxs Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@

Re: Help controlling data returned from query

2010-01-08 Thread trobrock
Haha I feel like an idiot. My next query is grabbing all the cards related to a profile id, since those do not have profile_id in the table, so I would have to attach Cardset, but still do not want to include the data from Cardset in the query On Jan 8, 2:22 am, John Andersen wrote: > Don't inclu

Re: highest traffic cakePHP 1.2 sites?

2010-01-08 Thread Dave J
I can attest to that. We built a site fully on Cake which gets over 40-50 thousand uniques a day without breaking a sweat. The highest load we've seen was Cake serving out around 200 pages per second. Using view caches wisely and unbinding unnecessary models always help. If you have high traffic si

Re: highest traffic cakePHP 1.2 sites?

2010-01-08 Thread Chad Smith
Hey, Well I have a few things to throw in here both from my own work and from my previous employer's. CountyCriminal - http://www.countycriminal.com gets about 100 uniques an hour, and it's built with Cake 1.2/jQuery. Also all of the KML mapping is ran through cake so there's that as well. Iden

Re: Conceptual problem Model on View ..

2010-01-08 Thread Bottazzo
Ok, thanks for the replies guys.. I think that solutions (qwanta and Grzegorz) will solve my problem! On Jan 7, 7:50 am, Grzegorz Pawlik wrote: > You should put the code in Your model. And in afterFind callback > iterate through stuff You got, call can_close() and if true - add some > virtual fie

Re: Best practices question

2010-01-08 Thread Foroct
Thank you that works like a charm. Usually when I write straight PHP I include an else statement but for some reason when doing this (my first cakePHP project) I did not do that. On Jan 8, 4:36 am, "Dr. Loboto" wrote: > Just a little additions: > >         // always have default value for acti

highest traffic cakePHP 1.2 sites?

2010-01-08 Thread keymaster
This is not meant to be a post on "evaluating cake's performance" or anything like that. I use cake alot and have no issues. I also know that for those who utilize cake 1.2's various features for performance optimization to the fullest, there are very few issues of performance remaining even for

Re: Best practices question

2010-01-08 Thread Dr. Loboto
Just a little additions: // always have default value for action args to not receive "missing argument" errors function view($username = null) { if (!$username) { $this->Session->setFlash(__('Invalid User.', true)); $t

Re: Where this SQL came from? Fixing app created by others

2010-01-08 Thread John Andersen
Good to hear and good luck :) If you want to track some information, maybe you could use the CakePHP log function! See http://book.cakephp.org/view/159/Using-the-log-function Enjoy, John > On Jan 8, 10:03 am, Molot wrote: > > Thank you, it worked. Now I have to rebuild kinda big part of app, b

Re: App::import at the beginning of a file?

2010-01-08 Thread Grzegorz Pawlik
My opinion is that You should import only "UnitComposite" and "Unit" should be imported before "UnitComposite" class definition. ArmyComponent "knows" only that it extends "UnitComposite" it shouldn't bother what's "above" that class... On 7 Sty, 23:53, Josh wrote: > Does anybody have an opinion