how to disable cakephp pass parameter using /
i have a function in my controller called search(id) . i want to pass a parameter id = abc/dce. when i type the url, http://localhost/search/abc/dce. error comes. anyone knows how to solve this problem --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
how do make all of views of the same style but one?
all of views are a log at the top right corner except one view. thx !` --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: how to update a certan cell in database table?
that is exactly what i want. thx a lot! On Aug 25, 3:52 pm, majna [EMAIL PROTECTED] wrote: $this-User-id = 532; $this-User-saveField('authenticated', '1'); On Aug 25, 9:47 am, Wimg [EMAIL PROTECTED] wrote: i know the row_id , colmun_id. anyone knows ? thx !!- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
ajax not working with IE7
with nested from. i saw there were some discussion about this kind of quesion, but never saw a way to solve this problem. anyone can help ? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
how to update a certan cell in database table?
i know the row_id , colmun_id. anyone knows ? thx !! --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: How to write my own ajax with cakephp
Thx a lot ! On Aug 21, 11:29 am, Grant Cox [EMAIL PROTECTED] wrote: CakePHP doesn't change the way you write your Ajax - just use whatever JS framework in its normal way. Cake does have an Ajax helper which can simplify the process of writing Prototype compatible ajax queries, but it's still just generating some javascript that is run on the client, there is no magic. Here's a snippet of Ajax from our application, using Prototype/ Scriptaculous. This is a core function of our ajax code, so it is very powerful. new Ajax.Request(url, options); On Aug 21, 12:29 pm, Wimg [EMAIL PROTECTED] wrote: can anyone give me a little example of ajax with cakephp?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
ajax problem with IE
i use a ajax-link () to update a div in a view. It works fine with firefox, but with IE it gets problem. anyone gets any ideas about what's with 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?hl=en -~--~~~~--~~--~--~---
edit in place with cakephp
who knows how to do this or have any examples ? thx a lot! ~ --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: edit in place with cakephp
Thx a lot! I am checking out these infor. On Aug 20, 11:33 pm, Mech7 [EMAIL PROTECTED] wrote: I have something like this in my controller: /** * Saves the title with inline edit form * */ public function admin_saveTitle() { // Check if the form has been submitted if (!empty($this-data)) { // Check if article has been saved if ($this-Article-save($this-data)) { $this-set('data', $this-data['Article']['title']); } } // Use ajax layout $this-layout = ajax; } And in my view: ?php foreach ($articles as $row = $article): ? tr ?php e(($row%2)?'class=altrow':'') ? td?php echo $article['Article']['id']; ?/td td ?php echo 'p id=title'.$article['Article']['id'] . '' . $article['Article']['title'] . '/p';? script type=text/javascriptnew Ajax.InPlaceEditor('title?php echo $article['Article']['id']; ?', '?php echo $this-webroot;?admin/articles/ saveTitle', {okButton:false, cancelLink:false, submitOnBlur:true, highlightcolor:#afcbd2, callback: function(form, value) {return 'data[Article][title]=' + escape(value) + 'data[Article][id]=?php echo $article['Article']['id']; ?'}, ajaxOptions:{asynchronous:true, evalScripts:true}}); /script /td /tr On Aug 20, 9:19 am, Wimg [EMAIL PROTECTED] wrote: who knows how to do this or have any examples ? thx a lot! ~- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
How to write my own ajax with cakephp
can anyone give me a little example of ajax with cakephp? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: how to pivot a table in a function in controller?
oh, man ,, thx a lot ! On Aug 16, 3:11 pm, starkey [EMAIL PROTECTED] wrote: Something like this should get you moving... $ii = count($a); $arrNew = array(); for ($jj = 0; $jj $ii; $jj++) { $arrNew[] = array($a[$jj], $b[$jj]);} pr($arrNew); Good luck! Shawn On Aug 15, 9:42 pm, Wimg [EMAIL PROTECTED] wrote: my problem is that I store my data as a b 1 2 3 4 5 6 in database , but in my view i want to display it in a table like c d e 1 3 5 2 4 6 On Aug 15, 10:26 pm, starkey [EMAIL PROTECTED] wrote: I'm guessing this has something to do with your earlier post about users and groups? If you could provide a little more detail on the problem maybe I can provide a little more detail on a solution. Shawn On Aug 15, 10:24 am, starkey [EMAIL PROTECTED] wrote: I do not see how the below two tables are related. A pivoted table would look like this: a b 1 2 3 4 5 6 a 1 3 5 b 2 4 6 If you are using Oracle you can pivot the table using sql*plus. If you are using MySQL then you'd need to load the table in an array (using Model-findall()) and then pivot the array using standard PHP. Shawn On Aug 14, 11:39 pm, Wimg [EMAIL PROTECTED] wrote: how to pivot a table ? change a b 1 2 3 4 5 6 to c d e 1 3 5 2 4 6 ?- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: how to pivot a table in a function in controller?
my problem is that I store my data as a b 1 2 3 4 5 6 in database , but in my view i want to display it in a table like c d e 1 3 5 2 4 6 On Aug 15, 10:26 pm, starkey [EMAIL PROTECTED] wrote: I'm guessing this has something to do with your earlier post about users and groups? If you could provide a little more detail on the problem maybe I can provide a little more detail on a solution. Shawn On Aug 15, 10:24 am, starkey [EMAIL PROTECTED] wrote: I do not see how the below two tables are related. A pivoted table would look like this: a b 1 2 3 4 5 6 a 1 3 5 b 2 4 6 If you are using Oracle you can pivot the table using sql*plus. If you are using MySQL then you'd need to load the table in an array (using Model-findall()) and then pivot the array using standard PHP. Shawn On Aug 14, 11:39 pm, Wimg [EMAIL PROTECTED] wrote: how to pivot a table ? change a b 1 2 3 4 5 6 to c d e 1 3 5 2 4 6 ?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Can I access database or execute some sql inside views ?
thx! --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
display data
i have problem with display data, for example , i have a database like this a b c 1 2 3 1 3 4 i wanna display result of select a, c where b = 2 in a table. how would my controller and view looks like ? i am a new at cakephp thx a lot! --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Can I access database or execute some sql inside views ?
The problem is like this, i have a database as below: user_id , group_id 1 1 2 1 3 2 4 2 i wanna display users in the same group as a row in a table group1 group2 12 34 i was thinking that I get group_id first, then use group_ id to get users belong to the same group_id. but i donot know how to do this in controller . any ideas ? thx in front --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: display data
thx man,, On Aug 14, 9:37 pm, starkey [EMAIL PROTECTED] wrote: I suggest you follow the excellent Blog tutorial in the manual. It will help you out a lot (it did for me!). Shawn On Aug 14, 5:40 am, Wimg [EMAIL PROTECTED] wrote: i have problem with display data, for example , i have a database like this a b c 1 2 3 1 3 4 i wanna display result of select a, c where b = 2 in a table. how would my controller and view looks like ? i am a new at cakephp thx a lot!- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Can I access database or execute some sql inside views ?
really helps me a lot , thx --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Can I access database or execute some sql inside views ?
how to pivot a table ? change a b 1 2 3 4 5 6 to c d e 1 3 5 2 4 6 ? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Can I access database or execute some sql inside views ?
one more question , how to pivot a table in controller? change this table a b 1 2 3 4 5 6 to c d f 1 3 5 2 4 6 --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
which IDE is better for cakephp develop
i am doing a project using cakephp,, try to find a better ide. thx --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Newbie Introduction Book ... reviews anyone?
i am working with cakephp and want to take a look at ur book . On Jul 30, 9:10 am, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 7/30/07, Dave [EMAIL PROTECTED] wrote: so I'm not worried about making anyone mad over there. Everything is proceeding carefully and with open channels of communication. WTG! and good show all around. Looking forward to seeing your book completed Tarique -- = Cheesecake-Photoblog:http://cheesecake-photoblog.org PHP for E-Biz:http://sanisoft.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?hl=en -~--~~~~--~~--~--~---
Re: Help for begginer.. problem with retrieving data from two models in one controller
maked On Jul 25, 5:37 pm, apadzik [EMAIL PROTECTED] wrote: Hi! I'm a beginner in Cake and can't understand one thing, maybe you more experienced people will know the solution:-) So, I have two tables in db: products (id,name) and productsizes (id,product_id,size); Two models: Product, Productsize; product.php: class Product extends AppModel { var $name = 'Product'; var $hasMany = array('Productsize' = array( 'className'='Productsize', 'foreignKey'='product_id') ); } productsize.php: class Productsize extends AppModel { var $name = 'Productsize'; var $belongsTo = 'Product'; } And products_controller looks like: class ProductsController extends AppController { var $name = 'Products'; var $uses = array('Product','Category','Productsize'); var $layout = 'default'; function display($c_name) { $this-set('category_name',$c_name); //this is just $c_id=$this-Category-find('name=\''.$c_name.'\'','id'); //for retrivieng category $this-set('products',$this-Product-findAllByCategoryId($c_id['Category']['id'])); //here i get all data about products $this-pageTitle = $c_name; } } And my question is: how do I retrieve data from productsizes? In action display I want to show all products from one category and I need to display the possible sizes for each one. How to do that in one action? Controller: products_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?hl=en -~--~~~~--~~--~--~---