few topics to refer back
some nice topics to refer. Compilers and Languages Books http://online-books-reference.blogspot.com/2005/11/free-online-compilers-and-languages.html Books and articles on Compilers and Programming Languages lex yacc review Database Books http://online-books-reference.blogspot.com/2005/11/free-online-database-books.html Book on Database Theory Books Data structures and Algorithms Books http://online-books-reference.blogspot.com/2005/11/free-online-data-structures-and.html Books on Datastructures and Algorithms complexity graphics adaptive programming patterns Hardware Books http://online-books-reference.blogspot.com/2005/11/free-online-hardware-books.html Books on Computer Hardware Theory Books architecture digital systems Mathematics Books http://online-books-reference.blogspot.com/2005/11/free-online-mathematics-books.html Books on Computing and Mathematics discreate neural nets numerical recipes Other Computer Science Books http://online-books-reference.blogspot.com/2005/11/free-online-other-computer-science.html Other Computer Science Books Computer Vision Artificial Intelligence Networking Books http://online-books-reference.blogspot.com/2005/11/free-online-networking-books.html Networking Theory Books TCP/IP Validation Protocols Operating Systems Books http://online-books-reference.blogspot.com/2005/11/free-online-operating-systems-books.html Books on Operating Systems theory kernel methods BIOS exokernel NTFS plug and play --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Make database calls inside of component
I get it now!! Using 'products_id' will not work with Cake. You have to use 'id' as your field name. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Adding support for MS SQL Server
Hi Nate Thanks for the info. This post certainly wasn't a fishing trip to try to get you to do this work for me! Were you serious when you said you would do it? Regards, Langdon nate wrote: > Start by making a copy of dbo_mysql.php, and modifying the appropriate > MySQL-specific function calls. Luckily, there should be just about a > 1:1 correspondence between the MySQL functions and MS SQL functions. > > One thing to watch out for: on line 525, $column->table should be > $column->column_source. Everything else should be about the same, > other than the column mappings, which you'll find in the $columns > array, and the column( ) method. > > Aw hell, I'll just do it myself... --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Make database calls inside of component
Hi, I am not having succes getting my component to update a record. Insert works with this code if I don't pass a $product_id. How do I force an update? class CostsController extends AppController { var $name = 'costs'; var $components=array("Findcost"); function index() { $col=array(); $col['products_id']=1; $this->Findcost->calculate('Cost', $col); } } //end of index class FindcostComponent { var $controller; //gives access to controller function startup(& $controller) //gives access to controller { $this->controller =&$controller; } //startup function calculate( $mymodel, $othercols=null ) { //do some calculations $myarray=array(); $myarray['itemcost']=100; //merge product_id from othercols wth myarray to do the update if( isset( $othercols ) ) $result = array_merge($myarray, $othercols); else $result=$myarray; //I want to update the table here $this->controller->$mymodel->save($result); }//calculate } //end of component --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Opera /AJAX issues.
Arg I hate that you can't edit your posts :X. Sorry for spamming. In fact, this is a bug in Firefox and not on Opera (https://bugzilla.mozilla.org/show_bug.cgi?id=235441). The event should not be fired when the useCapture is true. It should be set to false to work. I searched on cakephp sources and didn't find where that true is coming from... should I write a ticket ? --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Opera /AJAX issues.
Made it works. Cake generate a script like this : Event.observe('submit31449', 'click', function(event){ new Ajax.Updater('tasks_todo','/cake/tasks/add', {asynchronous:true, evalScripts:true, parameters:Form.serialize(Event.element(event).form)})},true);. What doesn't seem to work in Opera is the useCapture to true at the end. I don't know if cake really need it for other things, but if not maybe you could remove it. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Performance issue: Apache eats a lots of memory
I am about to launch an application built with Cake and while testing it with with my host, we have discovered that Apache eats memory rapidly when loaded with severals hits per seconds. This doesn't occur with static pages served through pages_controller. It only occurs with dynamic pages. Since I use severals tables which has several associations, I thought this could be the problem so I removed all the associations I could, only using bindModel when necessary. But that didn't solved our problem. We have looked at a lot of things without being able to pinpoint the problem. Any suggestion on what to look for is welcomed. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Opera /AJAX issues.
Well, I dont want to start a browser war, but Opera has a lot more benefits than Firefox imho. I have to get 25 extensions to come close to have something as nice as Opera. In another note, i'm new to cake, so I tried to do an ajax some ajax and it's not working for me in Opera. I'm using $ajax->submit and the javascript it creates seems ok... but i'm still learning prototype. I will try a few more things to make it works. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
form select + AJAX
hi, Im newbie in framework things... I just learned cakephp, and I wonder how to create select tag with ajax ... you can see the example at http://www.4al.pl/phpAjaxTags/ .. thanks --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Global Variables and Arrays
Hello Everyone, Is there a way to register an array as global using Cake? Kind of like application wide settings array that I can load from a database. Something like $settings = array(); $this->register->settings($settings) Then you can access $this->settings anywhere? --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Opera /AJAX issues.
Almost all my clients have switched to Firefox after being educated on the benefits ;-) --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Adding support for MS SQL Server
Start by making a copy of dbo_mysql.php, and modifying the appropriate MySQL-specific function calls. Luckily, there should be just about a 1:1 correspondence between the MySQL functions and MS SQL functions. One thing to watch out for: on line 525, $column->table should be $column->column_source. Everything else should be about the same, other than the column mappings, which you'll find in the $columns array, and the column( ) method. Aw hell, I'll just do it myself... --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: component startup method problem
Hmm, After being so sure that I had tested all possibilities (including the most obvious one) I have to hold my hands up and say 'you got me' :o). Cheers RosSoft, AD7six. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: component startup method problem
maybe this can help (note the & ) $this->controller =& $controller; --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
component startup method problem
Hi All, I'm not entirely sure if this is a problem only for me, and before creating a ticket wanted to check with the collective knowledge of the group. A while ago I changed my components to use the startup method and got rid of any 'bespoke' beforeFilter calls I had written. However I then found that, effectively, the startup method wasn't doing anything. In the end I just reverted my methods, assuming that it was some error of my own. After a little prompting, I decided I should look a little deeper :). In all of my component startup methods, something was being set on the controller; Here's an example of a component startup method: function startup(&$controller) { echo "in startup"; $this->controller = $controller; $this->MenuItems = $this->checkGroup($this->MenuItems); $this->controller->set('MenuItems',$this->MenuItems); } What I have found is that the output from a page using this component and referring to the set variable is: >>> in startup Notice: Undefined variable: MenuItems in etc. <<< The echo is there purely to be certain the method is being run - it seems that the controller is passed by value rather than by reference (a PHP4 only prob?). Could this be resolved by something in my control? This was using V2370, PHP4.4.2, Windows. Thanks in advance for your comments, AD7six --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Make database calls inside of component
Thank you both for your assistance. Last night I was just trying to mock up what I could do. The reason why I want to work solely in my component is for reuse. I want to be able to use this component in more than 1 controller, but the controllers will use this component in different ways. I will get started now. Thanks again, Bill --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: $this->params['data'] vs. $this->data
Same thing. We just added support for $this->data in helpers, so you can use it instead of $this->params['data']. I like it better because it's less typing. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Make database calls inside of component
perhaps your cost calculation should be in the products model. it's not taboo to put custom methods into the model, as long as it is very closely related to the model data. if you absolutely have to call it from the controller then give your component a controller param, and in the calling controller do this $this->Findcost->controller = $this; then you have a reference back to the controller from in the component then when you call the method from the controller $this->Findcost->calculate your component can access the model $this->controller->MyModel->findAll() it can be done, and that's how you do it. but for the circumstance you give an example too, this is definitely the wrong way to do it it should either be controller method, which in this case seems best, or in other circumstances a model method --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: issues with php5 and cake 0.10 final
Unbelieveable, short tags are disabled by default in php5. Thanks mate, cakephp works now :) --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Opera /AJAX issues.
when the client asks why it doesn't work in opera, then i have to assume they use opera and wonder why it doesn't work. stupid clients, they should use what i tell them to use ;) --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: issues with php5 and cake 0.10 final
I tried using echo for the first time, then used short tags and it does not work anyway - as you can see --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
$this->params['data'] vs. $this->data
What is the difference between $this->params['data'] and $this->data in the controller. They look like they contain the same thing. Is one deprecated? Just wondering which I should be using. Thanks. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
controller-callbacks with scaffolding
hi there! i have implemented custom beforeFilter-methods in my controller. var $beforeFilter = array('checkAccess','createMetanav'); these are not called when scaffolding is active. i've also tried using the beforeScaffold-method, resulting in some other errors. function _beforeScaffold() { $this->checkAccess(); $this->createMetanav(); } is this a deliberate behaviour or a bug? the problem seems to be in /cake/dispatcher.php:222, where a new scaffold-object is returned instead of calling the _invoke-method (non-scaffold behaviour). if that's a bug, i'll submit it to trac. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Adding support for MS SQL Server
I am wondering if any of the development team can give me a quick summary of where to start to extend Cake to support a new database? I have a project that requires MS SQL server, so would like to get a feel for how much work will be involved in adding support for it to Cake, as I would really like to use Cake for this job. Regards, Langdon --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: issues with php5 and cake 0.10 final
Can you check in your php.ini that the short opening tag ( --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---