Re: Taking advantage of Cake to build personal book database

2007-11-11 Thread maschoen
btw, When a book is reissued, it gets a new ISBN. I think just the last digit changes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Cookie With Multi Dimensional Array Cannot Be Read (Sometimes) Is This A Bug?

2007-11-11 Thread Baz
*Sigh*, So I've been pulling out my hair for a while until I figured, this thing just doesn't work the way it should. Here's my scenario very simplified with test data: Controller1: $arr['name']['1'] = '21'; $arr['name']['2'] = '21'; $arr['name1']['1'] = '21'; $this-Cookie-write('zilla', $arr,

String concatenation not working

2007-11-11 Thread technicaltitch
Hi I'm developing a hands-off website CMS in CakePHP, and I want it to email me a dump of the database every 6 months as a backup. I have bodged the model_php5.php and dbo_source.php so they return the insert statement of a model as a string, based on the save and create functions but not

Re: Installing cake on top of another cake application

2007-11-11 Thread Marcin Domanski aka kabturek
Hey Cake newbie here so I would very much appreciate it if you could help me out with my problem. just got a few questions. I'm running cake on a shared hosting site and I was just wondering if I can host another cake application on top of a working cake app. Do you have the possibility to

Re: Cookie With Multi Dimensional Array Cannot Be Read (Sometimes) Is This A Bug?

2007-11-11 Thread Ivolution
*Probably* the following will work: before writing your array to the cookie: $arr = serialize($arr); after reading it from your cookie (when $cookval is the value you read from your cookie): $arr = @unserialize($cookval); This way you should have your whole array back. Note however that I

Disabling cake on a subdomain for Joomla

2007-11-11 Thread chogi
Hey all, Got a quick question. I got cake running on my root folder of my shared host. I made a subdomain and i want to run joomla on it. But when I try to access the subdomain address, it shows missing controller Is there anyway to bypass cake or htaccess so that it doesnt look for the

Re: Installing cake on top of another cake application

2007-11-11 Thread chogi
Got it to work thanks, i just added the subdomain name infront of index.php on my htaccess file On Nov 11, 9:31 pm, Marcin Domanski aka kabturek [EMAIL PROTECTED] wrote: Hey Cake newbie here so I would very much appreciate it if you could help me out with my problem. just got a few

Re: String concatenation not working

2007-11-11 Thread AD7six
On Nov 11, 1:33 pm, technicaltitch [EMAIL PROTECTED] wrote: snip Why would you not use mysqldump and a cron job? AD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Sorting related object according to their related objects

2007-11-11 Thread Alex
Hi folks, I have a model like the following: Article hasMany Comment Comment hasOne User Now I want to fetch all comments from one article limited by ten. These ten should be the comments with the most popular users (User.popular). Is it possible to define the Article hasMany Comment

unbind a behavior / ActsAs

2007-11-11 Thread Zoltan
I'm doing a save on a model inside a controller to update one field, however it is triggering a behavior attached to that model. Is there a way to temporarily (like unbind) disable this ActAs so it isn't called. Zoltan www.yyztech.ca --~--~-~--~~~---~--~~ You

Re: Cookie With Multi Dimensional Array Cannot Be Read (Sometimes) Is This A Bug?

2007-11-11 Thread Baz
Thanks for the response, but here's a few FYIs. - What I posted before works fine with Sessions. That's actually how I determined the problem. I was building a remember me for a login. And I thought I could just dump the session variable in a cookie and retrieve later. So maybe if

Re: String concatenation not working

2007-11-11 Thread technicaltitch
because it's for a bolivian volunteer organization we're using incredibly cheap hosting which doesn't allow us cron jobs. i thought this would be trivial. On Nov 11, 5:21 pm, AD7six [EMAIL PROTECTED] wrote: On Nov 11, 1:33 pm, technicaltitch [EMAIL PROTECTED] wrote: snip Why would you not

Giving multiple objects in a view

2007-11-11 Thread Arne-Kolja Bachstein
Hi there, atm I am trying to implement a feature to upload multiple images with an article. Apart from the few tutorials I found covering this topic, I have a much more basic question about that: When I'm associating the Images model to my Article model (hasMany), I can simply use something

Re: unbind a behavior / ActsAs

2007-11-11 Thread AD7six
On Nov 11, 7:49 pm, Zoltan [EMAIL PROTECTED] wrote: I'm doing a save on a model inside a controller to update one field, however it is triggering a behavior attached to that model. Is there a way to temporarily (like unbind) disable this ActAs so it isn't called. Zoltanwww.yyztech.ca

Re: unbind a behavior / ActsAs

2007-11-11 Thread francky06l
There is also something about this there : http://www.sanisoft.com/blog/2007/06/26/attach-detach-behaviors-at-run-time-in-cakephp-models/ On Nov 11, 8:58 pm, AD7six [EMAIL PROTECTED] wrote: On Nov 11, 7:49 pm, Zoltan [EMAIL PROTECTED] wrote: I'm doing a save on a model inside a controller

Re: String concatenation not working

2007-11-11 Thread Steve Boyd
then changes your host. there is incredibly cheap hosting everywhere (well within the USA anyhow) that allows you cron jobs + all the other bells and whistles On Nov 12, 8:37 am, technicaltitch [EMAIL PROTECTED] wrote: because it's for a bolivian volunteer organization we're using

Re: $html-tagValue deprecated

2007-11-11 Thread Grant Cox
$html-value('Model.field'); On Nov 11, 4:17 pm, dm [EMAIL PROTECTED] wrote: $html-tagValue is deprecated in 1.2. What should I use instead ? $this-data[model][field] ? Thanks.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

get/put/delete/post HTTP requests in CakePHP 1.2

2007-11-11 Thread Aaron Shafovaloff
I saw the following at http://www.xml.com/pub/a/2007/01/24/whats-new-in-prototype-15.html --- The standard XMLHttpRequest object at the heart of Ajax functionality only allows HTTP GET and POST methods, but RESTfully-designed web applications often call for the lesser-used methods, like PUT

Re: get/put/delete/post HTTP requests in CakePHP 1.2

2007-11-11 Thread Aaron Shafovaloff
I just found this in dispatcher.php: if (isset($params['form']['_method'])) { if (isset($_SERVER) !empty($_SERVER)) { $_SERVER['REQUEST_METHOD'] = $params['form']['_method'];

Re: Cookie With Multi Dimensional Array Cannot Be Read (Sometimes) Is This A Bug?

2007-11-11 Thread Grant Cox
The reason it works in the first controller is because it is not reading from the cookie itself - it also saves the data to a local variable and it is reading back from that. Because there is no automatic serialization going on, only strings are written to the cookie - so a complex data type

Re: How to find comment count for each post?

2007-11-11 Thread Adam Royle
I would keep the comment count in a field of its own in the posts table (eg. comments_count), and update the value automatically whenever a comment is saved or deleted. The beauty of this code is that you don't need to change your controller code in any way (unless you are updating the table

[Jobs]: Seeking CakePHP/CSS/JS Programmer

2007-11-11 Thread Staple
Hi, I have a web app project I am seeking a contract programmer to build. It is a 6 screen application, relatively simple but like all these things has to work seamlessly and have a good data structure. I am in the process of developing the screen layouts and DB structure and am seeking

.htaccess problem

2007-11-11 Thread [EMAIL PROTECTED]
in my cakephp i want to do some url rewrite but whenever i put some url rule on my htaccess it gives (none)500 error my url is http://www.xaprio.com/Client/work/PHPcake/shop?sn=alb=harish and i want http://www.xaprio.com/Client/work/PHPcake/shop/a/lb/harish shop is my function in a