Re: Fuctions url?
Bigdog, Russ, If you only have a few pages, you could simply create a route for each one.. $Route-connect('/about', array('controller' = 'intros', 'action' = 'about')); Cheers, 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: TestSuite
What is the problem? Just download the test suite from http://cakeforge.org/projects/testsuite/ and copy the files in the correct directories. That's it. Please let us know if you think there is something we could improve :) -- Daniel Hofstetter http://cakebaker.wordpress.com --~--~-~--~~~---~--~~ 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: TestSuite
Should it be treated like a plugin, so the testSuite directory on same level as /app/app/testSuite /app /controllers /tests . .Or should it be placed inside cake dirs, so, placing the controller in the /app/controllers dir, the test dir under /app/tests etc. etc.? After the installation, I read somewhere the test files should be something like mytest.test.php, but I could not find where to place them and how to run them.I'm sorry to ask for basic help but I found very few informations about it and mostly not complete. I swear once I make it work I'll give my contribution with a dummy proof tutorial ( a.k.a. Repsah proof).Thanks for your help.On 6/20/06, Daniel Hofstetter [EMAIL PROTECTED] wrote: What is the problem?Just download the test suite from http://cakeforge.org/projects/testsuite/ and copy the files in thecorrect directories. That's it.Please let us know if you think there is something we could improve :)--Daniel Hofstetter http://cakebaker.wordpress.com --~--~-~--~~~---~--~~ 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: Understanding
You can access the POST data from your controller at$this-dataAs you can see from your pastes the $this-data array contains the values you posted from your form. I assume you have a Post model. So, if you wanted to access your data, all you need to do is access the $this-data array$this-data['Post']['id'] will hold the id of your post.If the submission already contains the values you want to use to update your DB row all you need to do is a call to $this-Post-save($this-data);On 6/20/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:Thanks to everyone in advance. I am trying to load a specific field from a table based upon a specific id # (primary key) into a text box.Upon submissions i want to update that specific field based upon thatspecific id#. What i am not understanding is how to get the data after the post. It seems like after post it creates a new array called[form]?? How do i access this and line up the data to save it?Thanks againBEFORE FORM POST([controller] = post [action] = edit[pass] = Array([0] = 1)[form] = Array()[url] = Array([url] = /post/edit/1 )[bare] = 0[webservices] =[data] = Array([Post] = Array([id] = 1[title] = [body] = [created] = 2006-06-15 21:54:22[modified] = 2006-06-19 23:56:42))) After FORM POST([controller] = post[action] = edit[form] = Array([data] = Array([Post] = Array ([id] = 1[title] = [body] = qqq) ))[data] = Array([Post] = Array([id] = 1[title] = [body] = qqq))[url] = Array([url] = /post/edit)[bare] = 0[webservices] = ) --~--~-~--~~~---~--~~ 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: TestSuite
I've done so, installed and working (except for img/css and js files which are not loaded in the default page, I guess because the path is incorrect, I've opened a ticket on the project).Now... where do I place my tests? In my app/controllers dir or under the tests/app/controllers dir? Or somewhere else? ThanksOn 6/20/06, Daniel Hofstetter [EMAIL PROTECTED] wrote: The files of the test suite should be within your app directory (thesecond option you described).The tests are placed in app/tests/app/...There are two possible ways to run the tests:1. by calling the tests controller like yourproject.localhost/tests/2. or by using the test folder in webroot:yourproject.localhost/test/index.php--Daniel Hofstetterhttp://cakebaker.wordpress.com --~--~-~--~~~---~--~~ 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: MySQL Question
I think that cake have SelectBySql() it's works at mssql I think that will work at mysql ... SELECT first_name + last_name as full_name from my table? Olivier Percebois-Garve escreveu: Well if it is mysql specific you could use DESCRIBE. With that you could then get the fieldname in the table and play with them in order to find first_ and last_ olivvv John Zimmerman [gmail] wrote: This is more of a MySQL question than a CakePHP question, but I thought I would ask here first. I did a little bit of searching on this but can't find any decent leads to the answer so far. I am hoping someone here just knows, as I don't know exactly how to refer to what I am trying to do. I am working with PHP 5, MySQL 5 and CakePHP 1.1.4.x. What I would like to know is this Is it possible to have a "virtual" or "composite" type field in MySQL that is basically two other fields put together? AND if this feature exists in MySQL is it useable with CakePHP? A simplistic example of this would be that in a table called 'users' I would have fields of 'first_name' and 'last_name'. What I would like to do is to be able to query for 'name' and get "first_name"."last_name". So basically... first_name = John last_name = Zimmerman when I query for 'name' I want to get "John Zimmerman" Any help is appreciated. --~--~-~--~~~---~--~~ 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: Command Line for CakePHP?
I'm not trying to do something like that, but I'm using something like that: I cron a script that call a cake url (and then a controller). Definitively it's not a solution. A ShellController would be a great stuff --~--~-~--~~~---~--~~ 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: Application bootstrap.php
AD7six wrote: ... Personally, I use the following (potentially flawed) upgrade approach backup app/config folder, replace the cake folder, replace the app/config folder replace the app/* folders overwrite the app/config folder with the backup (so that my version of the config files exist, but don´t miss any new files should there be any). Ok, you make upgrade as I do. For me it's a must to backup every evening and before any upgrade. :) regards Davide signature.asc Description: OpenPGP digital signature
Change all delete() of scaffolding
Hi, I would like to change the delete() action of the scaffold with my own action. I have a problem with running cake for my app, so when it uses the delete() action from the scaffold, it doesn't make what i want him to. So, the fastest answer for me is to change the delete() action in all my controllers. Where do i have to put my new delete() ? What code do i have to write to make it work everywhere ? Sorry for my bad english... :P --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
use ajax link with more div's
Hi everyone, I hope somebody can help me with my questions, i have looked in the wiki and google groups but haven't found an answer yet. I'm a newbie with very little php and some cakephp experience so maybe i have missed something. I'm trying to build my first web application in cakephp and i'm trying to get the following. I have my page divided in 3 div's (left, middle and right). In the left i want to have a menu with ajax links to update the middle div. The middle is update from the menu with data that can have ajax links to populate the right div. i have 2 problems problems. When i click on the ajax link in the middle div and some data appear in the right div this data won't dissappear when i click on another menu link with only data in the middle. is it possible to empty the content of the right div. second problem I use the authentication method of the wiki and the ajax render(in the controller) of graham's todo tutorial. when i use de redirect in the login controller to land on the first page, i only get the ajax view without the layout of the page. How can i use this redirect with ajax render within the layout i 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 -~--~~~~--~~--~--~---
checkbox and HBTM problem
Hi i'm new in cake programmin, sorry if my question is too noob but i don't find the answer on cake manual/wiki. I have to model the relation between a Menu associated to a Client. I've used an HBTM relation with an association table that have the client and the Menu's id. In the HTML page i want that when i select a client i can view in a box all the menus ( as checkboxes) and that the menus associated with that client is checket. I've tried to use checkbox html helper but i don't understand how to use it. the Cliente class is defined as: class Cliente extends AppModel { var $name = 'Cliente'; var $useTable = 'Anagrafe'; var $primaryKey = 'CODICE'; var $hasAndBelongsToMany = array('AssociatedMenus' = array('className' = 'Magart', 'joinTable' = 'clienti_menu', 'foreignKey' = 'id_cliente', 'associationForeignKey'= 'id_menu', 'conditions' = , 'order' = '', 'limit' = '', 'uniq' = true, 'finderSql' = '', 'deleteQuery'= '', ) ); } the Magart class contain the menu etries. In the controller i use the: $this-set('menus', $this-Magart-findAll(UNMISURA = 'Mn') ); to obtain the list of all the menus but i think is not the right way to do what i want to do. Can anyone explain me the right way to have in the view the list of all menus and the list of all the menus associated to a specified client id? and how have i to set the checkbox to insert a new record in the association table if i check a menu and submit the data? thx in advance for helpi hope this is possible in cake, i don't even understand how much powreful is it. Thxnk you Antonio --~--~-~--~~~---~--~~ 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: use ajax link with more div's
My first suggestion would be to read this: http://groups.google.com/group/cake-php/msg/cf10b929a33db24e And my second would be to just experiment with one thing at a time. These features can be a bit complex, and working with more than one in the same code can quickly lead to confusion if you're new at this. --~--~-~--~~~---~--~~ 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: Bake.php errors when generating models - connecting to mysql
Thanks to Carlos Mauricio Samour This solved the problem: I use Linux with php5 and had a similar problem. What I did to correct it is modified the file /etc/php5/cli/php.ini and uncommented : extension=mysql.so Hope that helps you. Good Luck! --~--~-~--~~~---~--~~ 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: Moo.fx problems
The head helper was exactly what I needed. 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 -~--~~~~--~~--~--~---
Re: use ajax link with more div's
Thanks Nate for the quick response, I know that i want things to fast, i like cakephp very much and get a bit too excited :) i had already seen your mail about the ajax link filling two div's but i'm not sure if this fits my needs. In your example i only see one controller action and i need 2 controller actions, see below an example. action for table in the middle action for detailview in the right left (menu) middle right click to see tabletable data, click to see detail see detail problem is when you click another menu item, the right panel is still filled with (old) data. I will try to fiddle with these things and (try) to do 1 thing at a time :) nate wrote: My first suggestion would be to read this: http://groups.google.com/group/cake-php/msg/cf10b929a33db24e And my second would be to just experiment with one thing at a time. These features can be a bit complex, and working with more than one in the same code can quickly lead to confusion if you're new at this. --~--~-~--~~~---~--~~ 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: Saving strings to database - problem, becouse the string is numeric
Don't you need $this-data for a save? $this-model-save($this-data); --~--~-~--~~~---~--~~ 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: HABTM involving 3 tables
? $this-query('sql string'); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
WEBROOT_DIR in Dispatcher::baseUrl()
Hi all, First of all, thank you very much for this marvellous cake :-) ! This is a great work which makes PHP more interesting IMHO. Now, I'm using the last version : 1.1.5.3148 My problem is that I want my installation of cakePHP like this : ROOT/ |- app/-- APP_DIR |- cake/ -- CAKE_INCLUDE_PATH |- www/-- WEBROOT_DIR |- index.php All this without mod_rewrite = with define ('BASE_URL', env('SCRIPT_NAME')); activated in my app/core.php. In addition, I have configured the paths in ROOT/index.php like this : define('APP_DIR', 'app'); define('DS', DIRECTORY_SEPARATOR); define('ROOT', dirname(__FILE__)); define('WEBROOT_DIR', 'www'); define('WWW_ROOT', ROOT . DS . WEBROOT_DIR . DS); My problem is when using Helpers like $html-css() which returns a path like APP_DIR.'/'.WEBROOT_DIR.'/' which should be WEBROOT_DIR.'/' After investigating a little bit, it appears that in Dispatcher::baseUrl(), the webroot is defined using something like APP_DIR.'/'.WEBROOT_DIR.'/' As a consequence, the controllers are found properly but each Helpers returned a bad URL for css, images etc... Am I missing something in configuration or is it a bug (or a limitation) ? Thanks a lot for any answers ! --~--~-~--~~~---~--~~ 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: Saving strings to database - problem, becouse the string is numeric
Yes I pass an array of data for the method. I was just making long story short there ;) Can I force single quotes around each value? I can't, for example, add +1 to the database becouse cake handles it as it were a number, not a string. That is quite an annoying feature. --~--~-~--~~~---~--~~ 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: HABTM involving 3 tables
Unless I'm misunderstanding that needs to be done each time I want to access the data, then. I was looking for a way to do the association so that it the data could then be accessed through the model, like you can with other associations. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Layout And View Problem
I'm confused on one thing. There are three basic parts in every page displayed 1. The navigation system - contains categories which are dynamically listed from db 2. The main content area 3. A small login area - displays input boxes if session variable is not found - displays Name of the user if session variable is found Since the navigation system must exists in all the pages, how'd i integrate a dynamic area inside a layout? Putting the code in controller and loading it in everyview is awkward since i just want the main content placed in the view? --~--~-~--~~~---~--~~ 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: Plural forms and user preferences
Hi bohtho, If you add your rule defenitions to /app/config/inflections.php (the code coments contain examples to get you going ) cake will take care of your plurals for you. See https://trac.cakephp.org/browser/trunk/cake/1.x.x.x/app/config/inflections.php, $pluralRules $irregularPlural are the interesting ones. I don´t think that you can use accented characters in your controller/method/model names, as they are used in the url (I think PHP would complain 2 but I'm not on my dev machine to check). I believe that MySQL permits accented characters in table names, but as the model cannot use accented characters it's probably better to be consistent. Hope that helps, and hope I´m not wrong ;) Cheers, 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 -~--~~~~--~~--~--~---
Radio Button Default Value?
I am trying to use the the html helper to render some radio buttons, but I cannot figure out how to make one of the values checked by default. The select tag helper function has a parameter to choose the selected value, but none exist for the radio function. Thanks, -- Rick --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Model Design Question
Hi there, I raised this question before but was told my explaination wasn't very clear. So hopefully this will be easier to understand. In a stock control system: I have two models, Item and Supplier. Item HABTM Supplier and Supplier HABTM Item. This uses the following tables: items: id|description|attribute1|attribute2| etc|etc.. suppliers: id|name|address|contact| phone_number|etc.. items_suppliers: item_id|supplier_id For each supplier I'd like to be able to keep track of how long it will take them to deliver a particular item. This way, when I select an item I can see which supplier will be able to deliver it the fastest. Therefore, I keep this information in the items_suppliers link table, along with item_id and supplier_id. I also include fields for the supplier price for the particular item and the amount of this item I have in stock from this particular supplier e.g.: item_id|supplier_id|supplier_price| delivery_time|num_in_stock However, there may be a situation where I already have e.g. 10 of item_id 1234 from supplier ABC at $5 each and I get 20 more of the same item from the same supplier at a different price. So my link table would now look like this: item_id|supplier_id|supplier_price| delivery_time|num_in_stock 1234 ABC$5.00 24 Hours 10 1234 ABC$5.75 24 Hours 20 I'm thinking I should do one of the following: (a) Extend the Primary Key of the link table to include the supplier_price as well as item_id and supplier_id {i.e. Primary Key = (item_id, supplier_id, supplier_price)}. However this will mean duplicating the delivery_time data every time a new supplier price is given. I'm also wondering if extending the Primary Key like this will affect Cake's understanding of the Model. OR (b) Create a third Model called Stock which has the following: item_id|supplier_id|supplier_price| num_in_stock leaving the items_suppliers link table as: item_id|supplier_id| delivery_time This avoids the duplicating the delivery_time data for every entry but adds the extra table, and therefore duplicates item_id and supplier_id. OR (c) I could just put 'supplier_id', 'supplier_price' and 'num_in_stock' back into the 'items' table and extend the Primary Key to include supplier_id and supplier_price giving me the following: {i.e. Primary Key = (id, supplier_id, supplier_price)} So the 'Items' table would now look like: items: id|description|attribute1|attribute2| supplier_id| supplier_price| num_in_stock |etc |etc.. However, again, I'm wondering if extending the Primary Key like this will affect Cake's understanding of the Models. Which method would be most efficient? Any thoughts would be greatly appreciated. Cheers, Sonic --~--~-~--~~~---~--~~ 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: Understanding
ok- so how does save() know to to save to the post table and save the title and body fields for a specific id? I dont understand the abstraction for getting data from a form into the database and then displaying whats in the database in the view again. One thing i should mention is- i am pulling specific rows based upon the id and updating a specific field in that row with data from a form. configuration_id | configuration_title | configuration_key | configuration_value - 1 | Store Name | STORE_NAME | osCommerce 2 | E-Mail Address | EMAILADDRESS | [EMAIL PROTECTED] 3 |Store Owner | STORE_OWNER |Harald Ponce de Leon I need to retrieve the configuration title information and config value for rows 1-3 and display them in the view- when the user posts the form i need to be able to update the update the config_values for rows 1-3. Is there a standard way of doing this? Thanks again --~--~-~--~~~---~--~~ 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: Understanding
Usually in your view file corresponding to the form you'll have something like: ?php echo $html-hidden('Post/id'); ? So the method knows what is the right id. If you wanna to change it u can use $this-Model-id = $someintegervalue; Does this answer your question ? olivvv [EMAIL PROTECTED] wrote: ok- so how does save() know to to save to the post table and save the title and body fields for a specific id? I dont understand the abstraction for getting data from a form into the database and then displaying whats in the database in the view again. One thing i should mention is- i am pulling specific rows based upon the id and updating a specific field in that row with data from a form. configuration_id | configuration_title | configuration_key | configuration_value - 1 | Store Name | STORE_NAME | osCommerce 2 | E-Mail Address | EMAILADDRESS | [EMAIL PROTECTED] 3 |Store Owner | STORE_OWNER |Harald Ponce de Leon I need to retrieve the configuration title information and config value for rows 1-3 and display them in the view- when the user posts the form i need to be able to update the update the config_values for rows 1-3. Is there a standard way of doing this? Thanks again --~--~-~--~~~---~--~~ 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: Never used a framework - interested in cake
This might help as well. http://h3rald.com/articles/ --~--~-~--~~~---~--~~ 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: Fuctions url?
that work excellent thank you --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Even prettier URLs tutorial
Hi, I've just created a simple tutorial to show how you can use words in your Cake URLs rather than IDs. For example, instead of: /articles/view/23435245 you can have /articles/view/rantaboutrails Here it is: http://www.grahambird.co.uk/cake/tutorials/slugs.php All feedback is welcome. Thanks, Graham --~--~-~--~~~---~--~~ 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: Understanding
Thanks in advance- Ok- i got that part, but what happens when you are displaying multiple records on one page? for instance how do i save to multiple specified rows in one post? --~--~-~--~~~---~--~~ 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: Never used a framework - interested in cake
That's what I thought... I was confused by that little tidbit... thanks. Marcelo de Moraes Serpa wrote: bontho, this table seems to be wrong... Cake supports templates and modules! On 6/20/06, Luke [EMAIL PROTECTED] wrote: Thank you both... very helpful. I'm going with cakePHP --=_Part_167857_9248639.1150839953082 Content-Type: text/html; charset=ISO-8859-1 X-Google-AttachSize: 456 bontho, this table seems to be wrong... Cake supports templates and modules!brbrdivspan class=gmail_quoteOn 6/20/06, b class=gmail_sendernameLuke/b lt;a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED] /agt; wrote:/spanblockquote class=gmail_quote style=border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;brThank you both... very helpful. I'm going with cakePHPbrbrbr --=_Part_167857_9248639.1150839953082-- --~--~-~--~~~---~--~~ 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: Never used a framework - interested in cake
Ohh Luke, this is the kind of thread we do like :-) IMHO, cake is much much more mature than zend framework. Most of what is in Zend framework (components) you can get it in cake. With cake you get an implementation of ActiveRecords which is I think now bug-free. You get the database abstraction layer, a cache, and nifty helpers. You get also a structured way of development, which will help you to develop complex system without to turn your code in a ugly unmaintainable thing. Also there is a very active community. that's my view. make yours. Olivvv Luke wrote: That's what I thought... I was confused by that little tidbit... thanks. Marcelo de Moraes Serpa wrote: bontho, this table seems to be wrong... Cake supports templates and modules! On 6/20/06, Luke [EMAIL PROTECTED] wrote: Thank you both... very helpful. I'm going with cakePHP --=_Part_167857_9248639.1150839953082 Content-Type: text/html; charset=ISO-8859-1 X-Google-AttachSize: 456 bontho, this table seems to be wrong... Cake supports templates and modules!brbrdivspan class="gmail_quote"On 6/20/06, b class="gmail_sendername"Luke/b lt;a href="" class="moz-txt-link-rfc2396E" href="mailto:[EMAIL PROTECTED]">"mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED] /agt; wrote:/spanblockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"brThank you both... very helpful. I'm going with cakePHPbrbrbr --=_Part_167857_9248639.1150839953082-- --~--~-~--~~~---~--~~ 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: FCK eventually sorted out - For AD7Six (and those interested)
Did you got file upload running in xinha ? Another one very promising is solometra. jeko wrote: I haven't used FCKeditor, but a great trick for preventing js/css files from caching is to throw a query string on the end of it. ex: script language=javascript src=webroot/js/fckconfig.js?a=1/script Otherwise, awesome help. I'm personally sticking with xinha for 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: Saving strings to database - problem, becouse the string is numeric
So far I have not had trouble doing this either, but if all else fails what happense if you cast that specific variable as a string in a beforeSave call.On 6/20/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm not having any problems with this... I can save any kind ofnumeric/whatever, and the quotes are there. Are you using the latestversion of cake? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---