# |
Oct 22nd 2009, 19:15 |
Doncode |
I mean mod_rewrite and SEOed urls/ |
# |
Oct 22nd 2009, 19:13 |
Doncode |
and is there any article to read about SEO in cakephp? |
# |
Oct 22nd 2009, 19:10 |
joeb |
No problem. |
# |
Oct 22nd 2009, 19:10 |
Doncode |
thanks again |
# |
Oct 22nd 2009, 19:10 |
Doncode |
it |
# |
Oct 22nd 2009, 19:10 |
Doncode |
I have done 't |
# |
Oct 22nd 2009, 19:10 |
Doncode |
himmss thanks alot |
# |
Oct 22nd 2009, 19:09 |
joeb |
You're already getting the data in the controller, why not just display it in the view? |
# |
Oct 22nd 2009, 19:08 |
Doncode |
is there any other way to get count in controller? |
# |
Oct 22nd 2009, 19:08 |
Doncode |
thanks |
# |
Oct 22nd 2009, 19:08 |
joeb |
Doncode: just do count($array['Hotel']); |
# |
Oct 22nd 2009, 19:07 |
Doncode |
http://bin.cakephp.org/view/806289711 |
# |
Oct 22nd 2009, 19:05 |
joeb |
k |
# |
Oct 22nd 2009, 19:05 |
Doncode |
just a min . will paste |
# |
Oct 22nd 2009, 19:04 |
joeb |
Oh, what's the array look like? |
# |
Oct 22nd 2009, 19:04 |
Doncode |
when I am showing all cities , I want to get hotel count of that city. |
# |
Oct 22nd 2009, 19:04 |
joeb |
cakenoob: No problem. |
# |
Oct 22nd 2009, 19:04 |
cakenoob |
joeb - thanks for your help - just had a typo... |
# |
Oct 22nd 2009, 19:04 |
Doncode |
2 models hotel , city, - has relations between them . |
# |
Oct 22nd 2009, 19:03 |
joeb |
$this->Model->find('count') ? |
# |
Oct 22nd 2009, 19:03 |
Doncode |
within the query |
# |
Oct 22nd 2009, 19:02 |
Doncode |
I dont know how to get count of other model |
# |
Oct 22nd 2009, 19:02 |
joeb |
Doncode: What's the problem |
# |
Oct 22nd 2009, 19:01 |
Doncode |
joeb : could you check this out .. http://bin.cakephp.org/view/812888311 |
# |
Oct 22nd 2009, 18:59 |
joeb |
cakenoob: Take a look at http://teknoid.wordpress.com/2008/07/11/notes-on-cakephp-habtm-part-2-saving-data/ |
# |
Oct 22nd 2009, 18:58 |
cakenoob |
http://bin.cakephp.org/view/1298880523 |
# |
Oct 22nd 2009, 18:56 |
joeb |
No problem. |
# |
Oct 22nd 2009, 18:56 |
cakenoob |
my bad - new to the irc scene... |
# |
Oct 22nd 2009, 18:55 |
joeb |
~tell cakenoob about bin |
# |
Oct 22nd 2009, 18:55 |
cakenoob |
?> |
# |
Oct 22nd 2009, 18:55 |
cakenoob |
echo $form->input('Users',array("multiple"=>"checkbox",'value'=>$activeUsers)); |
# |
Oct 22nd 2009, 18:55 |
cakenoob |
echo $form->input('Project.completed'); |
# |
Oct 22nd 2009, 18:55 |
cakenoob |
echo $form->input('Project.due_date',array('type'=>'text', 'class'=>'dateInput')); |
# |
Oct 22nd 2009, 18:55 |
cakenoob |
echo $form->input('Project.desc'); |
# |
Oct 22nd 2009, 18:55 |
cakenoob |
echo $form->input('Project.projectName'); |
# |
Oct 22nd 2009, 18:55 |
cakenoob |
echo $form->input('Project.id'); |
# |
Oct 22nd 2009, 18:55 |
cakenoob |
<?php |
# |
Oct 22nd 2009, 18:54 |
cakenoob |
my guess is that my form isn't setup right... |
# |
Oct 22nd 2009, 18:54 |
joeb |
Well, paste the code you're using and we'll check it out; |
# |
Oct 22nd 2009, 18:54 |
cakenoob |
I tried the saveAll() method, but I think I'm not quite doing it right |
# |
Oct 22nd 2009, 18:53 |
cakenoob |
I have - but it seemed to only reference a one to many relationship, not many to many |