Re: Best performance in templates

2007-03-01 Thread Dr. Tarique Sani
On 3/2/07, mozart_ar <[EMAIL PROTECTED]> wrote: > This would > help to the performance of cakephp, correct? Why the script bake.php > makes the opposite? Did you perform any tests to confirm your assumptions? If not - I would suggest do so and be surprised ;) Besides what Grant as written holds

Re: Cache an object, not a view

2007-03-01 Thread Grant Cox
http://bakery.cakephp.org/articles/view/249 phirschybar wrote: > I see lots of info on caching views in the manual but I am wondering > of I can cache an object as easily. Just a simple array of data so > that I do not have to hit the DB on every page. --~--~-~--~~~-

Re: Integrating phpGACL with CakePHP

2007-03-01 Thread scragz
I don't have any experience with phpGacl. How hard do you think it would be to get it using the existing Cake DB connection (for performance reasons)? On Feb 28, 4:16 pm, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > Update: still working on this (component is already over 900 lines, > includin

Re: Big Web Application Suggestion

2007-03-01 Thread Grant Cox
It all depends on the resources you have available. Server - what can you afford, and which vendor provides the support you need? Operating System - what can your staff maintain and support? Backend language - who are your developers, what are they trained in? Who will train them in something new

Re: Best performance in templates

2007-03-01 Thread mozart_ar
after some tests with eAccelerator + cacheAction, using "ab" of apache, I did not find differences of performance between, to use a single block () and to use a block php by each echo. thanks --~--~-~--~~~---~--~~ You received this message because you are subscrib

Cache an object, not a view

2007-03-01 Thread phirschybar
I see lots of info on caching views in the manual but I am wondering of I can cache an object as easily. Just a simple array of data so that I do not have to hit the DB on every page. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Best performance in templates

2007-03-01 Thread Grant Cox
Do you mean that the entire view file should be wrapped in , and the actual html elements are all output using echo ? While this may actually be faster, it is far more difficult to develop and maintain - and the main aim of CakePHP is to make application development (and support) faster and easie

Installing Cake on 1 subdomain with .htaccess, not multiple instances of apps

2007-03-01 Thread [EMAIL PROTECTED]
The documentation over at the CakePHP manual is far too complex for what I think I'm trying to do. I have an account on a shared server and the top level domain is already running wordpress. If I put Cake in the top level, that will break Wordpress, right? So I created a subdomain "dev" and ins

Troubles with ajax

2007-03-01 Thread MYRZ
Hi all, I have a actionview with a ajax->link to another actionview, which seems to be working just fine. The contents of the actionview perfectly go into the given div, right after the click. The only problem is, is that i have a table in this actionview i want to load in the other. And for som

Re: Problem with multiple INSERTS

2007-03-01 Thread [EMAIL PROTECTED]
i have found the way to build an array of checkboxes. but when i update this at the controller class the checkbox in false are not visible. so i must clear all the entries first and replace this with the new array. data['Blogs_tags']['checkID'])) { $ID = $this->data['Blog

Re: Switch Element On/Off

2007-03-01 Thread GreyCells
Determine the business logic in the controller and use controller->set to communicate the decisions to the views/elements. Don't get too hung up on strict seperation of M->V->C there's plenty of grey across the boundaries... A pragmatic approach if generally more productive :) Interesting discus

Help Using Date Range with findAll

2007-03-01 Thread BlenderStyle
I'm trying to find all Posts within a given range of dates (the month of February 2007 in this example), and I can't figure it out. This isn't returning any results: $conditions['Post.created'] = array('>= 2007-02-01', '<= 2007-02-28'); $this->Post->findAll($conditions); The strange part is that

Re: findNeighbours does not seem to be working

2007-03-01 Thread Samuel DeVore
I've never used it but if you want to paste your model/controllers and the db schema in http://bin.cakephp.org I bet you might get some people interested in helping you Sam D On 2/28/07, Xandornot <[EMAIL PROTECTED]> wrote: > > I even tried putting this in the model with all parameters as static

RE: troubles with cake_1.1.13.4450

2007-03-01 Thread Mariano Iglesias
You need to provide us with more information than that for us to understand your problem. If it is working on 1.1.8 it is most likely because you are doing: $model = new Model() When in 1.1.13 you should be doing: loadModel('Model'); $model = new Model(); -MI

Re: FindAll with HABTM issue

2007-03-01 Thread Samuel DeVore
On 3/1/07, Dave <[EMAIL PROTECTED]> wrote: > > Yeah, but when there are thousands of posts, it's sometimes hard to > find that needle in the haystack :) > I searched for at least a half-hour before posting... > One way to make ones search more effective, is to add to it posters that you know make

Re: FindAll with HABTM issue

2007-03-01 Thread Dave
Yep! Works like a charm. Thanks On Mar 1, 2:35 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > no actually in my sleep depriced, addled old brain state I meant to say > > $this->Event->findAll(array('Event.tag_id' => $tag_id)); > > man friggin clients are driving my brain nutty > > On 3/1/07, AD

Re: FindAll with HABTM issue

2007-03-01 Thread Dave
Yeah, but when there are thousands of posts, it's sometimes hard to find that needle in the haystack :) I searched for at least a half-hour before posting... On Mar 1, 2:22 pm, "AD7six" <[EMAIL PROTECTED]> wrote: > On Mar 1, 9:37 pm, "John David Anderson (_psychic_)" > > <[EMAIL PROTECTED]> wrote

Re: troubles with cake_1.1.13.4450

2007-03-01 Thread [EMAIL PROTECTED]
No,, sorry No case. the cakephp frwk cant load my model. Its curious coz in version 1.1.8 its works perfectly. --- Dan On 1 mar, 17:59, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > Hi Dan > > > I cant load one of my class, i think the load modules is more strict > > but not understand my errr

Big Web Application Suggestion

2007-03-01 Thread Leandro Ardissone
Hi, We will be starting a new big application in the following months and I want to know what resources I'll need to do it or what suggestions can you give us, since it's our first huge project. For example, what kind of platform and OS, what backend language, what frontend, etc. The application

Re: Troubles with routes

2007-03-01 Thread fr3nch13
check to see if your mod_rewrite is working correctly On Mar 1, 2:39 pm, "andy corpes" <[EMAIL PROTECTED]> wrote: > Hi Group, > > It seems that a recent installation of cake has broken some part of my > configuration, I've gone through the original installation procedures, but > cannot see where

portal system

2007-03-01 Thread mogguy
Hi there! Half a year ago I started writing my first bigger application in php. As I'm a student at the university of Munich, Germany I felt it would be nice to have a possibility to store lecture links in a webpage and access them at home, at my parents home and from every computer in the univer

Re: FindAll with HABTM issue

2007-03-01 Thread Samuel DeVore
no actually in my sleep depriced, addled old brain state I meant to say $this->Event->findAll(array('Event.tag_id' => $tag_id)); man friggin clients are driving my brain nutty On 3/1/07, AD7six <[EMAIL PROTECTED]> wrote: > > > > On Mar 1, 9:37 pm, "John David Anderson (_psychic_)" > <[EMAIL PRO

Re: FindAll with HABTM issue

2007-03-01 Thread AD7six
On Mar 1, 9:37 pm, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On Mar 1, 2007, at 1:29 PM, Dave wrote: > > > > > Not working either. > > If we're going to be able to help, you'll need to give us at least a > few details. > > ;) > > -- John Isn't it great that the group search

Best performance in templates

2007-03-01 Thread mozart_ar
when we wrote templates for the views, I believe that he is better to put everything within the labels of php, in place to open and to close whenever we needed to accede to some variable or to helper. This would help to the performance of cakephp, correct? Why the script bake.php makes the opposit

Re: newbie problem cakePHP/Ajax

2007-03-01 Thread John David Anderson (_psychic_)
On Mar 1, 2007, at 2:12 PM, Langdon Stevenson wrote: > > Hi Bart > > It's hard to know what the problem is, but my guess would be that the > javascript file/s are not being loaded. It would help if you > posted the > page source so that we can see what is on line 35, and what the link > tags

Re: newbie problem cakePHP/Ajax

2007-03-01 Thread Langdon Stevenson
Hi Bart It's hard to know what the problem is, but my guess would be that the javascript file/s are not being loaded. It would help if you posted the page source so that we can see what is on line 35, and what the link tags are outputting. Regards, Langdon > I did everything as mentioned,

Re: troubles with cake_1.1.13.4450

2007-03-01 Thread Langdon Stevenson
Hi Dan > I cant load one of my class, i think the load modules is more strict > but not understand my errror > > "Fatal Error - Cant Load `Category` Class Model " etc ect I would start by checking the class names of controller and model, if I have an error like that, it is usually my faul

Re: FindAll with HABTM issue

2007-03-01 Thread Dave
Not working either. On Mar 1, 1:19 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > why not > > $this->Event->findAll(array('Tag.tag_id' => $tag_id)); > > since you want all the events with a particular tag_id --~--~-~--~~~---~--~~ You received this message becau

Re: FindAll with HABTM issue

2007-03-01 Thread John David Anderson (_psychic_)
On Mar 1, 2007, at 1:29 PM, Dave wrote: > > Not working either. If we're going to be able to help, you'll need to give us at least a few details. ;) -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

troubles with cake_1.1.13.4450

2007-03-01 Thread [EMAIL PROTECTED]
I cant load one of my class, i think the load modules is more strict but not understand my errror "Fatal Error - Cant Load `Category` Class Model " etc ect :( --- Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Speed

2007-03-01 Thread Anthony
I am having an issue with MySQL query speed... Here is the query CakePHP is trying to perform: SELECT `Review`.`id`, `Review`.`user_id`, `Review`.`book_id`, `Review`.`comments`, `Review`.`rating_plot`, `Review`.`rating_character_dev`, `Review`.`rating_style`, `Review`.`rating_pacing`, `Review`.`r

Re: FindAll with HABTM issue

2007-03-01 Thread Samuel DeVore
why not $this->Event->findAll(array('Tag.tag_id' => $tag_id)); since you want all the events with a particular tag_id On 3/1/07, Dave <[EMAIL PROTECTED]> wrote: > > OK, so I've established a HABTM association between "Tags" and > "Events". Tags have many events and Events have many tags, so it

FindAll with HABTM issue

2007-03-01 Thread Dave
OK, so I've established a HABTM association between "Tags" and "Events". Tags have many events and Events have many tags, so it goes both ways. I want to fetch events for a particular Tag id: function getEventsByTag($tag_id) { $events = $this->Event->findAll('Tag.id='.$tag_id); return $events;

Re: So confused

2007-03-01 Thread skatona
oh man, thank you. I've been going crazy thinking that they wouldn't possibly let something like that slip by, so have been staring at each and every individual character in my code to see what I messed up. Over and over. Thanks a ton! On Mar 1, 2:30 pm, "bernardo" <[EMAIL PROTECTED]> wrote: >

Re: MySQL export and import

2007-03-01 Thread John David Anderson (_psychic_)
On Mar 1, 2007, at 12:42 PM, Christopher E. Franklin, Sr. wrote: > > bump Please don't bump an issue without making an effort to improve your question. > > On Jan 8, 2:57 am, "phpjoy" <[EMAIL PROTECTED]> wrote: >> hey all, >> >> is there a class in CakePHP forexporting/importingSQLcalls? We

Re: MySQL export and import

2007-03-01 Thread Samuel DeVore
no On 1/8/07, phpjoy <[EMAIL PROTECTED]> wrote: > > hey all, > > is there a class in CakePHP for exporting/importing SQL calls? > backing up a server, etc? > exporting SQL to XML and XML to SQL? > > thanks > > > > > -- == S. DeVore (the old fart) the advice is free, the lack of crankiness will

Re: MySQL export and import

2007-03-01 Thread Christopher E. Franklin, Sr.
bump On Jan 8, 2:57 am, "phpjoy" <[EMAIL PROTECTED]> wrote: > hey all, > > is there a class in CakePHP forexporting/importingSQLcalls? > backing up a server, etc?exportingSQLto XML and XML toSQL? > > thanks --~--~-~--~~~---~--~~ You received this message because

Troubles with routes

2007-03-01 Thread andy corpes
Hi Group, It seems that a recent installation of cake has broken some part of my configuration, I've gone through the original installation procedures, but cannot see where i have gone wrong. I now have a single entry in route.php as follows:- $Route->connect ('/tblallhosts/:action/*', array('co

Beginner : extended tree helper to display other fields

2007-03-01 Thread mamato
Hi, I was having a problem on displaying other fields for my 'Category' model using the tree helper, like this name description - CarAll about cars -New New cars -Used Pre owned cars the tree helper can display the first field nicely but not the

Re: So confused

2007-03-01 Thread bernardo
You are right. There is a bug in the code used in the screencast. I think the problem is that edit.thtml is copied from add.thtml but forget to include the line hidden('Post/id'); ?> so the id is not posted and the controller ends adding a new post. The code in the manual is correct though. I wo

Re: Question about model relationships

2007-03-01 Thread Anthony
Thanks, that solved the problem!! - Anthony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send emai

Re: RoR to Cake Migration

2007-03-01 Thread _psychic_
On Mar 1, 2007, at 7:58 AM, MikeK wrote: > > Now I see Cake as a viable alternative. I have no problem relearning > the > similar paradigms and getting productive on Cake -- from what I see > out > there plenty of info exists and I did get the RoR running in days so > that > should be no proble

Re: Question about model relationships

2007-03-01 Thread AD7six
On Mar 1, 6:02 pm, "Anthony" <[EMAIL PROTECTED]> wrote: > OK, I'm aware this is probably a very dumb, newbie question, but you > gotta start somewhere, right? > > Say I have a "users" table and a "messages" table. For each ONE user, > there are MULTIPLE messages. However, when doing a findAll on

Re: multi-page forms

2007-03-01 Thread lukemack
toby - i fixed that problem. i was missing the special validate() method you need for the formwizard - by fluke, the author of the component was on IRC when i asked. On 1 Mar, 13:30, Toby Parent <[EMAIL PROTECTED]> wrote: > Hrummm... My validation rules were obeyed. Are you using a screwy > valid

Question about model relationships

2007-03-01 Thread Anthony
OK, I'm aware this is probably a very dumb, newbie question, but you gotta start somewhere, right? Say I have a "users" table and a "messages" table. For each ONE user, there are MULTIPLE messages. However, when doing a findAll on the users, I would like it to spit back all the messages the user

So confused

2007-03-01 Thread skatona
I must be losing it. I'm a veteran php web developer and a friend said cakephp was awesome so I've checked it out and gone through a couple screencasts. Am I crazy, or is the Blog Tutorial screencast wrong? More specifically, the Edit functionality does NOT edit a post. It merely Adds one. Wa

Re: error: Call to a member function requestAction() on a non-object

2007-03-01 Thread phirschybar
AD7 and Mariano, thanks. Yeah I'll be digging through the source before long ;) On Mar 1, 11:12 am, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > Models are instantiated before running beforeFilter(). You can see this by > looking at dispatch() in class Dispatcher, located at cake/dispatcher.ph

Re: Help Using Date Range with findAll

2007-03-01 Thread BlenderStyle
Thanks, AD! That cleared up a lot for me. You're posts are always so informative. I'm going to star this for later. On Mar 1, 1:03 am, "AD7six" <[EMAIL PROTECTED]> wrote: > On Mar 1, 4:18 am, "BlenderStyle" <[EMAIL PROTECTED]> wrote: > > > I figured it out. I did this: > > $conditions[]['Post.cre

Re: baking the scaffolding

2007-03-01 Thread [EMAIL PROTECTED]
On Feb 28, 8:54 am, "hydra12" <[EMAIL PROTECTED]> wrote: > I'm not sure where the documentation is, but here's how I do it: Thank you very much for posting this. While the existing CakePHP documentation is quite good, it does not discuss bake. Nor have I found this information covered in any l

RE: error: Call to a member function requestAction() on a non-object

2007-03-01 Thread Mariano Iglesias
Models are instantiated before running beforeFilter(). You can see this by looking at dispatch() in class Dispatcher, located at cake/dispatcher.php: 1. Creates the controller: $controller =& new $ctrlClass(); 2. Initializes components: $controller->_initComponents() 3. Initializes models in th

adding a string into monthOptionTag

2007-03-01 Thread Thomas
Hai! Is there a way to add another option into the list of months. I want to have the option "all" on top of all the months. It would be nice, because otherwise I have to make a list of dates manually. Thanks in advance. --~--~-~--~~~---~--~~ You received this m

newbie problem cakePHP/Ajax

2007-03-01 Thread Bart op de grote markt
Hello, I just installed WAMP-server (Apache/Php/Mysql) and cakePHP. I'm seeing the startpage that is mentioned on the cakePHP-site and the database-connection is also right. Now I was looking for some tutorials and I found this one: http://grahambird.co.uk/cake/tutorials/ajax.php. One of the ste

RoR to Cake Migration

2007-03-01 Thread MikeK
Dear Cakers ;) A friend just sent me a link about Cake and I am excited about using it and have a few questions I was hoping ya'll could answer. I used RoR to add some web applications and new features to an existing fishing website for running and scoring tournaments. While the application itse

Re: error: Call to a member function requestAction() on a non-object

2007-03-01 Thread AD7six
On Mar 1, 4:02 pm, "phirschybar" <[EMAIL PROTECTED]> wrote: > OK. > > So this: var $uses = array('Category'); is the key here. Because I am > doing a beforeFilter(), my model wasn't loaded yet.? It isn't important with regards to your problem whether you use beforeFilter or beforeRender. Howeve

Re: error: Call to a member function requestAction() on a non-object

2007-03-01 Thread phirschybar
OK. So this: var $uses = array('Category'); is the key here. Because I am doing a beforeFilter(), my model wasn't loaded yet.? On Mar 1, 8:58 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > On 3/1/07, AD7six <[EMAIL PROTECTED]> wrote: > > > > > On Mar 1, 2:49 am, "Samuel DeVore" <[EMAIL PROTECT

Re: Problem with multiple INSERTS

2007-03-01 Thread [EMAIL PROTECTED]
For the moment its run OK - I will find a better solution. My controller received a array with data[Blogs_tags][checkID] and parse it to associate with my Blogs_id at each row. maybe its not so clear i post the code: $str = ''; $i = 0; foreach($tags as $name): $i++

Re: error: Call to a member function requestAction() on a non-object

2007-03-01 Thread Samuel DeVore
On 3/1/07, AD7six <[EMAIL PROTECTED]> wrote: > > On Mar 1, 2:49 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > > requestAction is a method of Controller not Model > > Well.. actually it's a method of object. The error is caused by doing > $this->SomethingThatDoesn'tExist->method(); > And the f

Re: multi-page forms

2007-03-01 Thread Toby Parent
Hrummm... My validation rules were obeyed. Are you using a screwy validation class? It doesn't interfere with the model::save at all. I'll check and see what turns up. Regards! -Toby lukemack wrote: > cool thanks, Chris. > > Toby - the formwizard seems to break validation. did you use it with

Re: include another model's view

2007-03-01 Thread gerbenzomp
Hi AD7six! Thanks a lot for your comprehensive article! It seems we're both aiming for the same thing: a while ago I wrote such a system as the Google personalised homepage, in php and with the help of scriptaculous, to create an online WYSIWYG website builder and CMS. Now I'm trying to partly re

Re: Using the same Views and Controller for more than one Model?

2007-03-01 Thread Martin
Thanks, that was a great tip. It will defenitely work for me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Re: Using the same Views and Controller for more than one Model?

2007-03-01 Thread AD7six
On Mar 1, 10:31 am, "Martin" <[EMAIL PROTECTED]> wrote: > Hi everyone, > I ran into a bit of a problem this morning that I cant get my head > around. > > For several bad reasons there are a few tables I am working with that > have duplicates with the same structure but different data. It is a >

Using the same Views and Controller for more than one Model?

2007-03-01 Thread Martin
Hi everyone, I ran into a bit of a problem this morning that I cant get my head around. For several bad reasons there are a few tables I am working with that have duplicates with the same structure but different data. It is a legacy database I can't start messing with too much. I wanted to avoid

Re: HATBM add?

2007-03-01 Thread AD7six
On Feb 27, 12:23 pm, "Devraj Mukherjee" <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I have a HATBM relationship between a User and a Team, so a User > belongs to many team and the table user_team joins them. > > Are there any examples of doing an add and delete function for HATBM > relations

Re: Help Using Date Range with findAll

2007-03-01 Thread AD7six
On Mar 1, 4:18 am, "BlenderStyle" <[EMAIL PROTECTED]> wrote: > I figured it out. I did this: > $conditions[]['Post.created'] = '>= 2007-02-01'; > $conditions[]['Post.created'] = '<= 2007-02-28'; > $this->Post->find($conditions); > > It seems the complex conditions section in the model chapter in

Re: Please help me understand URL and Routes in Cake

2007-03-01 Thread barduck
Thanks for the reply. I think I have better understanding of the Route functionality now. I am still not sure I understand the full potential of regular expressions in Route. I mean, I see how I can specify a regex in the matching part of the Route->connect() but in mod rewrite, I can use regula

Re: error: Call to a member function requestAction() on a non-object

2007-03-01 Thread AD7six
On Mar 1, 2:49 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > requestAction is a method of Controller not Model Well.. actually it's a method of object. The error is caused by doing $this->SomethingThatDoesn'tExist->method(); However the question as raised looks like the controller logic in